Page MenuHomeFreeBSD

readelf: return error in case of invalid file
ClosedPublic

Authored by emaste on Mar 22 2021, 1:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 18, 5:46 AM
Unknown Object (File)
Nov 4 2025, 4:51 AM
Unknown Object (File)
Oct 29 2025, 8:36 AM
Unknown Object (File)
Oct 29 2025, 8:35 AM
Unknown Object (File)
Oct 29 2025, 8:35 AM
Unknown Object (File)
Oct 29 2025, 8:16 AM
Unknown Object (File)
Oct 24 2025, 11:46 PM
Unknown Object (File)
Oct 24 2025, 7:02 AM
Subscribers
None

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

Seems ok. Some types of errors are ignored, in particular invalid files in an archive. I tried creating one and both our readelf -c and GNU readelf -c log a warning but exit with status 0. I suspect this change is sufficient to catch the most common cases.

This revision is now accepted and ready to land.Mar 22 2021, 2:33 PM
This revision was automatically updated to reflect the committed changes.