diff options
author | Jez Ng <jezng@fb.com> | 2021-04-23 18:05:34 -0400 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2021-04-23 18:05:49 -0400 |
commit | 3fe5c3b0189f51868493bbbc6768ef3afbdfb492 (patch) | |
tree | 8dd0a0af215b1a538137b55e67ee6714fc88fb7f /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | 035eb6d154a1f4827eabc29d02d17e69fc939202 (diff) | |
download | llvm-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