News for hackers. Stuff that matters.
Re:Checked C by uecker on Friday December 23, 2022 @05:58PM (#34111580)
You need to use UBSan, then you get the bounds checking in GCC. I added this in 2015.

https://godbolt.org/z/8ncEK3K5b

Re:Checked C by uecker on Friday December 23, 2022 @06:02PM (#34111614)
If you add warnings, it will also tell you that the ARR_LEN macro is wrong...