aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2021-04-23 18:05:34 -0400
committerJez Ng <jezng@fb.com>2021-04-23 18:05:49 -0400
commit3fe5c3b0189f51868493bbbc6768ef3afbdfb492 (patch)
tree8dd0a0af215b1a538137b55e67ee6714fc88fb7f /llvm/lib/CodeGen/MachineCSE.cpp
parent035eb6d154a1f4827eabc29d02d17e69fc939202 (diff)
downloadllvm-3fe5c3b0189f51868493bbbc6768ef3afbdfb492.zip
llvm-3fe5c3b0189f51868493bbbc6768ef3afbdfb492.tar.gz
llvm-3fe5c3b0189f51868493bbbc6768ef3afbdfb492.tar.bz2
[lld-macho] Fix use-after-free in loadDylib()
We were taking a reference to a value in `loadedDylibs`, which in turn called `make<DylibFile>()`, which could then recursively call `loadDylibs`, which would then potentially resize `loadedDylibs` and invalidate that reference. Fixes PR50101. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D101175
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions