commit | 5bd453506ce561c53751982618aabc14037ade3f | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris1000@users.noreply.github.com> | Thu Mar 28 17:35:46 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Mar 28 17:42:13 2024 -0700 |
tree | 51a16ff46617f1c81cbcf11d7cad971436e559ef | |
parent | 2a7116c927c51b928cfc2d10280beb27a744da03 [diff] |
[scudo] Fix stack depot validation. (#87024) In the StackDepot::isValid function, there is work to validate the TabMask variable. Unfortunately, if TabMask is set to the maximum allowed value, TabSize = TabMask + 1 becomes zero and validation passes. Disallow that case to prevent invalid reads into the Tab structure. GitOrigin-RevId: 7a87902684b5e15644f037401e88b1f0c2c5fc6f Change-Id: I7e197476666ab3d4d6f86240792de62dcab38b19