[llvm] [llvm-nm] Fix heap-use-after-free while executing 'llvm-nm -n --export-symbols' (PR #65668)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 12:20:50 PDT 2023


chbessonova wrote:

> Is there a test covering this case?
No. I'm not sure what would be a good test for this. I can add a test that just run `llvm-nm -n --export-symbols` to ensure it works fine, but it'd only check that this command line run w/o issues, and it wouldn't help to catch bugs where some properties of `BasicSymbolRef` requested when there is no valid OwningObject set.


https://github.com/llvm/llvm-project/pull/65668


More information about the llvm-commits mailing list