News for hackers. Stuff that matters.
Re:Checked integer arithmetic in the prospect of C23 by olliej on Monday December 19, 2022 @03:12PM (#34057002)
This is simply standard using the builtins that the major c++ compilers already have. It does not remove the absurd “overflow is UB” semantics that introduces security bugs.
Re:Checked integer arithmetic in the prospect of C23 by gustedt on Monday December 19, 2022 @04:10PM (#34057762)
Only that here we are talking about C. But yes, most C compilers already seem to have this as builtins.
Re:Checked integer arithmetic in the prospect of C23 by olliej on Monday December 19, 2022 @04:12PM (#34057790)
haha, I'm so used to reading C++2x I assumed C++ - however the problem exists in both :-/