summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-04-18 11:01:25 +0000
committerTobias Grosser <tobias@grosser.es>2015-04-18 11:01:25 +0000
commit4b6aa6eb8efe45474f7eae211c1d64e2eff00e6e (patch)
tree97bd72945a684ed2e670d32d345f7d125ea921c4 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent5df7c1a4eb5fe06295ddfc7c4638017ac2c01d87 (diff)
downloadbcm5719-llvm-4b6aa6eb8efe45474f7eae211c1d64e2eff00e6e.tar.gz
bcm5719-llvm-4b6aa6eb8efe45474f7eae211c1d64e2eff00e6e.zip
Clear InsnToMemAcc map in ScopDetection after each runOnFunction
Otherwise, instructions in different functions that share the same pointer (due to earlier modifications), might get assigned incorrect memory access information (belonging to instructions in previous functions), which can result in arbitrary memory corruption and assertion failures. This fixes llvm.org/PR23160 and possibly also llvm.org/PR23167. Note: InsnToMemAcc is a global variable that should never have existed in the first place. We will clean this up in a subsequent patch. Reported-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Debugged-by: Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 235254
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud