diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2018-06-12 21:19:33 +0000 |
|---|---|---|
| committer | Shoaib Meenai <smeenai@fb.com> | 2018-06-12 21:19:33 +0000 |
| commit | 02c43442625bf4af65684996c6be81c44123e4c1 (patch) | |
| tree | 341c157f623f653246e793c27acd2d67c578e7cd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 04920989a2727393c56147ed11fed0654dc4c7ca (diff) | |
[COFF] Fix crash when emitting symbol tables with GC
When running with linker GC (`-opt:ref`), defined imported symbols that
are referenced but then dropped by GC end up with their `Location`
member being nullptr, which means `getChunk()` returns nullptr for them
and attempting to call `getChunk()->getOutputSection()` causes a crash
from the nullptr dereference. Check for `getChunk()` being nullptr and
bail out early to avoid the crash.
Differential Revision: https://reviews.llvm.org/D48092
llvm-svn: 334548
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
