News for hackers. Stuff that matters.
Re:C++ proposal: There are 8 bits in a byte by dullcrisp on Friday October 18, 2024 @12:00AM (#41876229)
You think no one checks if their arithmetic overflows?
Re:C++ proposal: There are 8 bits in a byte by Spivak on Friday October 18, 2024 @12:32AM (#41876357)
I'm sure it's not literally no one but I bet the percent of additions that have explicit checks for overflow is for all practical purposes indistinguishable from 0.
Re:C++ proposal: There are 8 bits in a byte by nox101 on Friday October 18, 2024 @02:06AM (#41876729)
Lots of secure code checks for overflow

    fillBufferWithData(buffer, data, offset, size)
You want to know that offset + size don't wrap past 32bits (or 64) and end up with nonsense and a security vulnerability.