[compiler-rt] [scudo] Fix stack depot validation. (PR #87024)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 17:45:13 PDT 2024
================
@@ -112,7 +112,7 @@ class alignas(atomic_u64) StackDepot {
if (TabMask == 0)
return false;
uptr TabSize = TabMask + 1;
- if (!isPowerOfTwo(TabSize))
+ if (TabSize == 0 || !isPowerOfTwo(TabSize))
return false;
----------------
ChiaHungDuan wrote:
I did a quick review and it seems to be fine (there's no additional zero check will be introduced). And yes, it's fine to track it later
https://github.com/llvm/llvm-project/pull/87024
More information about the llvm-commits
mailing list