This is an archive of the discontinued LLVM Phabricator instance.

[Object/ELF] - Avoid possible crash in getExtendedSymbolTableIndex().
ClosedPublic

Authored by grimar on Oct 3 2016, 7:42 AM.

Details

Summary

When using broken input object found using AFL,
getExtendedSymbolTableIndex() crashed because ShndxTable
was empty as object does not contain SHT_SYMTAB_SHNDX section.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 73280.Oct 3 2016, 7:42 AM
grimar retitled this revision from to [Object/ELF] - Avoid possible crash in getExtendedSymbolTableIndex()..
grimar updated this object.
grimar added reviewers: rafael, davide.
grimar added subscribers: llvm-commits, grimar, evgeny777.
rafael accepted this revision.Oct 3 2016, 9:22 AM
rafael edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 3 2016, 9:22 AM
This revision was automatically updated to reflect the committed changes.