summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-11-09 00:26:15 +0000
committerAdrian Prantl <aprantl@apple.com>2018-11-09 00:26:15 +0000
commit009cc9b7cadc81b50127f14ccdb8ff10fccc1f00 (patch)
tree30f94257999d4221b16f9040ed84ea9c30e0981a /clang/lib/Analysis/CFG.cpp
parentf5b6d11cf226cd62af2cdd1f28c8d3da6c4dbd59 (diff)
downloadbcm5719-llvm-009cc9b7cadc81b50127f14ccdb8ff10fccc1f00.tar.gz
bcm5719-llvm-009cc9b7cadc81b50127f14ccdb8ff10fccc1f00.zip
Fix a use-after-free introduced by r344915.
r344915 added a call to ApplyDebugLocation to the sanitizer check function emitter. Some of the sanitizers are emitted in the function epilogue though and the LexicalScopeStack is emptied out before. By detecting this situation and early-exiting from ApplyDebugLocation the fallback location is used, which is equivalent to the return location. rdar://problem/45859802 llvm-svn: 346454
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud