This is an archive of the discontinued LLVM Phabricator instance.

[Object/ELF] - Do not crash on invalid sh_size value of REL[A] section.
AbandonedPublic

Authored by grimar on Oct 4 2016, 8:22 AM.

Details

Reviewers
davide
rafael
Summary

Previously code would access invalid memory and may crash,
patch fixes the issue.
Was noticed by Rafael Ávila de Espíndola in comments for D25187.

Diff Detail

Event Timeline

grimar updated this revision to Diff 73484.Oct 4 2016, 8:22 AM
grimar retitled this revision from to [Object/ELF] - Do not crash on invalid sh_size value of REL[A] section..
grimar updated this object.
grimar added reviewers: rafael, davide.
grimar added subscribers: llvm-commits, grimar, evgeny777.
grimar updated this revision to Diff 73614.Oct 5 2016, 3:31 AM
  • Fixed bug.
grimar abandoned this revision.Oct 6 2016, 5:20 AM

I suggest different solution: D25315

grimar reclaimed this revision.Oct 6 2016, 5:38 AM

Since generic approach from D25315 was rejected, reclaiming this one.

rafael edited edge metadata.Oct 6 2016, 11:38 AM

I think r283454 fixed this, no?

grimar abandoned this revision.Oct 7 2016, 2:33 AM

r283454 fixes that.