2 ms·
You need to use UBSan, then you get the bounds checking in GCC. I added this in 2015. https://godbolt.org/z/8ncEK3K5b https://godbolt.org/z/8ncEK3K5b
by uecker 4y ago
You need to use UBSan, then you get the bounds checking in GCC. I added this in 2015.
https://godbolt.org/z/8ncEK3K5b https://godbolt.org/z/8ncEK3K5b
- uecker 4y agoIf you add warnings, it will also tell you that the ARR_LEN macro is wrong...