[PATCH] D102592: [sanitizer] Caught global buffer underflow for first variable
Evgenii Stepanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 19 15:00:23 PDT 2021
eugenis added a comment.
I think it is too hit-and-miss to add even under a flag. It's just not the right approach - but I also don't know what the right approach would be.
Perhaps adding a small left redzone for all globals and reducing the right redzone to keep the total size under control? This way when most globals are instrumented we get approximately the same amount of redzone between any 2 of them, but also a little on the left of the first one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102592/new/
https://reviews.llvm.org/D102592
More information about the cfe-commits
mailing list