Open kees opened 9 months ago
As for bullet point 2: fix sanitizer to work at all on Clang: https://github.com/llvm/llvm-project/issues/66451
it looks like this sanitizer DOES work... just not for void*
😕
demo: https://godbolt.org/z/Ef3Kvqq1x
~What's going on here?~
Update: I triaged and nikic fixed here: https://github.com/llvm/llvm-project/pull/67772
Much like issue #26 and issue #27, we must mitigate pointer arithmetic wrap-around (overflow/underflow). This should be possible via
-fsanitize=pointer-overflow
but it has similar problems as the other issues, namely-fwrapv-pointer
.-fwrapv-pointer
(and-fno-strict-overflow
)