Page MenuHomeFreeBSD

readelf: avoid division by zero for files with invalid sh_entsize
ClosedPublic

Authored by emaste on Apr 20 2015, 8:43 PM.
Tags
None
Referenced Files
F137084839: D2338.id7069.diff
Fri, Nov 21, 2:55 AM
F137084797: D2338.id.diff
Fri, Nov 21, 2:55 AM
F137084621: D2338.id7269.diff
Fri, Nov 21, 2:55 AM
F137084604: D2338.id4930.diff
Fri, Nov 21, 2:55 AM
F137083131: D2338.diff
Fri, Nov 21, 2:52 AM
Unknown Object (File)
Fri, Nov 14, 1:20 PM
Unknown Object (File)
Fri, Nov 14, 1:20 PM
Unknown Object (File)
Fri, Nov 14, 1:20 PM

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to readelf: avoid division by zero for files with invalid sh_entsize.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a subscriber: Unknown Object (MLST).
brooks added a reviewer: brooks.
brooks added a subscriber: brooks.

Looks good to me.

This revision is now accepted and ready to land.Apr 20 2015, 8:50 PM
emaste edited edge metadata.

Add a get_ent_count helper to check for 0 entsize instead of expanding the check inline everywhere.

This revision now requires review to proceed.Jul 19 2015, 11:13 AM

Yes - sorry for the delay. I realized I had a newer implementation that factored the divide-by-zero checks into a helper function, and uploaded the new diff a few days ago.

brooks edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Jul 23 2015, 7:32 PM
This revision was automatically updated to reflect the committed changes.