[all-commits] [llvm/llvm-project] 745722: [llvm-nm] Fix heap-use-after-free while executing ...
chbessonova via All-commits
all-commits at lists.llvm.org
Wed Sep 13 10:39:17 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 745722862951ce029ac41bb490183e7fdef2b2e3
https://github.com/llvm/llvm-project/commit/745722862951ce029ac41bb490183e7fdef2b2e3
Author: chbessonova <ch.bessonova at gmail.com>
Date: 2023-09-13 (Wed, 13 Sep 2023)
Changed paths:
M llvm/tools/llvm-nm/llvm-nm.cpp
Log Message:
-----------
[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).
More information about the All-commits
mailing list