[all-commits] [llvm/llvm-project] 0e8b61: llvm-objdump/ELF: fix crash when reading dyn str t...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Sat Apr 6 04:22:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e8b61f8e0bd37e99f3de06e4e8885844f904eba
      https://github.com/llvm/llvm-project/commit/0e8b61f8e0bd37e99f3de06e4e8885844f904eba
  Author: Ramkumar Ramachandra <ram.ramachandra at arm.com>
  Date:   2024-04-06 (Sat, 06 Apr 2024)

  Changed paths:
    M llvm/test/tools/llvm-objdump/ELF/dynamic-malformed.test
    M llvm/tools/llvm-objdump/ELFDump.cpp

  Log Message:
  -----------
  llvm-objdump/ELF: fix crash when reading dyn str table (#87519)

When reading the dynamic string table, llvm-objdump used to crash if the
ELF was malformed, due to an erroneous consumption of error status.
Instead, propogate the error status to the caller, fixing the crash, and
printing a warning.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list