diff options
| author | Zachary Turner <zturner@google.com> | 2018-11-15 05:06:59 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-11-15 05:06:59 +0000 |
| commit | 95997f6110b27cf4caab5c5ae9eec36d38126fec (patch) | |
| tree | b7abd189a451b22ba21ea2a83f49b774824c4374 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 77b33c86f50a7516085f361f22f2aa908dcd8e62 (diff) | |
Fix a use-after-free of the ABI plugin.
This was introduced in r346775. Previously the ABI shared_ptr
was declared as a function local static meaning it would live
forever. After the change, someone has to create a strong
reference to it or it will go away. In this code, we were
calling ABI::FindPlugin(...).get(), so it was being immediately
destroyed and we were holding onto a dangling pointer.
llvm-svn: 346932
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
