[PATCH] D44285: Fix computeSymbolSizes SEGFAULT on invalid file

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 03:09:03 PDT 2020


jhenderson added a comment.

It looks like the input needs to have no sections or symbols, but otherwise be a valid object file. I think the following YAML would do the trick, but I haven't verified it hits the appropriate code path:

  --- !ELF
  FileHeader:
    Class:   ELFCLASS64
    Data:    ELFDATA2LSB
    Type:    ET_REL
  SectionHeaderTable:
    NoHeaders: true


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D44285/new/

https://reviews.llvm.org/D44285



More information about the llvm-commits mailing list