[PATCH] D59518: [DwarfDebug] Skip entries to big for 16 bit size field in Dwarf < 5.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 07:22:57 PDT 2019


fhahn marked an inline comment as done.
fhahn added a comment.

In D59518#1434686 <https://reviews.llvm.org/D59518#1434686>, @probinson wrote:

> Generating the test on the fly with Python seems plausible.  Note you don't need 16K components, just enough components to make the location description exceed 16K bytes. If each component is (say) a 64-bit field with a max-int constant value, that's something like 11 bytes of description per field, so ~1500 fields ought to do it.
>
> - Duh, not 16K bytes. 64K bytes.  ~6000 fields.


Thanks! I've added a script that generates a crashing test case. 11K seemed to be the lowest threshold.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D59518





More information about the llvm-commits mailing list