aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorchbessonova <ch.bessonova@gmail.com>2023-09-13 19:39:03 +0200
committerGitHub <noreply@github.com>2023-09-13 19:39:03 +0200
commit745722862951ce029ac41bb490183e7fdef2b2e3 (patch)
tree559872b5fd1981fef1fa72cf875d523dda7e4616 /clang/lib/Frontend/CompilerInvocation.cpp
parent61757fbd048fc0eae0b61b7cb14001e27f0becd0 (diff)
downloadllvm-745722862951ce029ac41bb490183e7fdef2b2e3.zip
llvm-745722862951ce029ac41bb490183e7fdef2b2e3.tar.gz
llvm-745722862951ce029ac41bb490183e7fdef2b2e3.tar.bz2
[llvm-nm] Fix heap-use-after-free while executing 'llvm-nm -n --export-symbols' (#65668)
Use symbol's flags saved in `NMSymbol::SymFlags` inside `NMSymbol::isDefined()` since `BasicSymbolRef::getFlags()` requires the symbol's containing entity object to exist (which doesn't, causing llvm-nm to crash).
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions