News for hackers. Stuff that matters.
Re:Google patches second Chrome zero-day in two weeks by MauranKilom on Tuesday November 03, 2020 @05:32PM (#24984783)
> Having bounds checks on the destination buffer would have avoided the problem.

Since the access to the buffer happens inside libpng, this means libpng should have bounds checks compiled in according to your argument. (Hoping that the compiler can elide them by seeing through the library interface is but wishful thinking.)

Would you rather have a slower version of libpng that defends against screwups of the calling code, or a faster version that assumes the calling code is sane? Not an obvious choice to me.

Re:Google patches second Chrome zero-day in two weeks by pjmlp on Wednesday November 04, 2020 @03:45AM (#24987363)
Would you rather have a belt that limits movements that defends against crashes, or freedom of movements that assumes a car crash never happens? Not an obvious choice to me.