Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lossy bitmask computation in OptimizationGuide UKM
This was caught by UBSan but also just computed the wrong value. 1 << ... is computing the shift as an int, which is 32-bit, but these values exceed 31. Not only is thus UB, but even if the compiler doesn't cause mishaps, we'd lose any values 32 and higher. Bug: 1394755 Change-Id: I3f39f580e09b3f7783996854ac299cd811cd95d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4986623 Auto-Submit: David Benjamin <davidben@chromium.org> Commit-Queue: Tarun Bansal <tbansal@chromium.org> Reviewed-by: Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216617}
- Loading branch information