This eliminates a one error untested and
also introduces a error for one more possible case
which lead to crash previously.
Depends on https://reviews.llvm.org/D64913
Differential D64987
[Object/ELF.h] - Improve testing of the fields in ELFFile<ELFT>::sections(). grimar on Jul 19 2019, 5:42 AM. Authored by
Details
This eliminates a one error untested and Depends on https://reviews.llvm.org/D64913
Diff Detail Event Timeline
Comment Actions LGTM, with the one suggestion.
|
I think this error might be easier to understand with some rewording. How about:
"Invalid section header table offset (e_shoff = 0x1234) or invalid number of sections specified in the first section header's sh_size field (0x4321)."