aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2020-03-24 14:37:07 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2020-03-24 14:37:09 -0700
commita4e8d89704d2584d5c56cb27745beab25c7b9b36 (patch)
tree75fc98fd03f1d4d50be3f9f0ce0fa7411a471b63 /clang/lib/Frontend/CompilerInvocation.cpp
parent3f1defa6e2dfdea2a5980083de2b04068f640023 (diff)
downloadllvm-a4e8d89704d2584d5c56cb27745beab25c7b9b36.zip
llvm-a4e8d89704d2584d5c56cb27745beab25c7b9b36.tar.gz
llvm-a4e8d89704d2584d5c56cb27745beab25c7b9b36.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions