News for hackers. Stuff that matters.
Re:Reddit's photo albums broke due to Integer overflow of Si... by knodi123 on Wednesday December 14, 2022 @11:08AM (#33985516)
> stop letting developers trust numbers as being self-bound

Sorry, I thought I was following you, but I don't understand the last half of this quote. What does "trust as self-bound" mean?

Re:Reddit's photo albums broke due to Integer overflow of Si... by davidjfelix on Thursday December 15, 2022 @10:36AM (#34001141)
Sorry, I could have phrased that better. Bound and validated by their container. Since an int has natural boundaries while a string could easily overflow a varchar, it's much easier to assume that less validation is needed. But maintaining consistent numeric containers across serialization boundaries is often just as likely to overflow or have encoding difficulties as strings. My assertion is developers don't trust strings and validate them by default more often than integers or numbers.