[all-commits] [llvm/llvm-project] c15a57: [obj2yaml] - Don't crash when an object has an emp...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jan 12 03:16:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c15a57cc1a86bfb72f4fa0e7d265494babc3b412
      https://github.com/llvm/llvm-project/commit/c15a57cc1a86bfb72f4fa0e7d265494babc3b412
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M llvm/test/tools/obj2yaml/ELF/no-symtab.yaml
    M llvm/tools/obj2yaml/elf2yaml.cpp

  Log Message:
  -----------
  [obj2yaml] - Don't crash when an object has an empty symbol table.

Currently we crash when we have an object with SHT_SYMTAB/SHT_DYNSYM sections
of size 0.

With this patch instead of the crash we start to dump them properly.

Differential revision: https://reviews.llvm.org/D93697




More information about the All-commits mailing list