[PATCH] D102592: [sanitizer] Caught global buffer underflow for first variable
Zhiwei Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 20 00:11:13 PDT 2021
condy added a comment.
In D102592#2769811 <https://reviews.llvm.org/D102592#2769811>, @eugenis wrote:
> 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.
Thanks for explanation, I will try your suggested approach.
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