4 ms·
There are quite a few GNU C extensions with unspecified behavior for edge cases. Source: have implemented and debugged/fixed some in Clang.
by ndesaulniers 7y ago
There are quite a few GNU C extensions with unspecified behavior for edge cases. Source: have implemented and debugged/fixed some in Clang.
- kazinator 7y agoBy the way I compiled and ran the program (Ubuntu 18.04, x86_64 with various optimization options and whatnot, such as -fstack-protector. It runs cleanly under Valgrind.
- iforgotpassword 7y agoValgrind is pretty bad at detecting stack corruption, or at least was a couple years ago. Did you try -fsanitize=address too?