Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GWP-ASan] Only pack frames that are stored.
Summary: Backtrace() returns the number of frames that are *available*, rather than the number of frames stored. When we pack, we supply the number of frames we have stored. The number of available frames can exceed the number of stored frames, leading to stack OOB read. Fix up this problem. Reviewers: eugenis Reviewed By: eugenis Subscribers: #sanitizers, morehouse, cferris, pcc Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D76722
- Loading branch information
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters