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
Unknown Object (File)
Wed, Aug 6, 10:15 AM
Unknown Object (File)
Sun, Jul 20, 7:07 AM
Unknown Object (File)
Fri, Jul 18, 9:29 AM
Unknown Object (File)
Fri, Jul 18, 2:21 AM
Unknown Object (File)
Wed, Jul 16, 6:39 AM
Unknown Object (File)
Jul 10 2025, 1:41 AM
Unknown Object (File)
Jul 1 2025, 1:48 PM
Unknown Object (File)
Jun 30 2025, 2:48 AM

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.