summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-08-01 13:10:46 -0700
committerChristopher Ferris <cferris@google.com>2018-08-03 22:02:05 +0000
commitc541f04be7c7c5ff53580ae31b14db52e555b9a9 (patch)
treeb176803fb520678280300a7657abc712f9b7762b /libutils/Unicode.cpp
parent40bed2434ea821be17917bd212a888112eaae1d0 (diff)
Be permissive about badly formed elf files.
Here is the allowable issues with an elf file that will not result in an error: - The program headers/section headers offset points to unreadable memory. - Allow missing program header and/or section headers. - Allow a symbol table section header to point to invalid symbol table values. There is no real reason to require the elf file be perfect. Everything in the code has sane defaults, so any missing information won't cause any problems. This gets rid of the warning that occurs any time an elf is loaded from memory. In memory elf files never contain all of the section headers, and do not contain the symbol table data. Update tests to test these new cases. Test: Builds and unit tests all pass. Change-Id: Iaefe2cd6b6c965a01ed425a112d6afae339f3b78
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions