This is an archive of the discontinued LLVM Phabricator instance.

[Object/ELF] - Report error on incorrect sh_offset.
AbandonedPublic

Authored by grimar on Sep 28 2016, 4:04 AM.

Details

Reviewers
davide
rafael
Summary

It is related with PR30540, previously if sh_offset was incorrect (too large),
returned pointer could be wrong.

It is not possible to craft file with incorrect sh_offset using yaml2obj it seems,
so used precompiled one.

Diff Detail

Event Timeline

grimar updated this revision to Diff 72795.Sep 28 2016, 4:04 AM
grimar retitled this revision from to [Object/ELF] - Report error on incorrect sh_offset..
grimar updated this object.
grimar added reviewers: rafael, davide.
grimar added subscribers: llvm-commits, grimar, evgeny777.
davide edited edge metadata.Sep 28 2016, 7:42 AM

did you try to minimize this? afl has an utility for that (afl-min) you may want to check out.

did you try to minimize this? afl has an utility for that (afl-min) you may want to check out.

I tried. No reduce of file size for this testcase, so leaved it as is.

grimar updated this revision to Diff 73438.Oct 4 2016, 2:48 AM
grimar edited edge metadata.
  • Rebased.
grimar abandoned this revision.Oct 7 2016, 2:42 AM

r283454 fixed that.