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, Apr 16, 8:09 PM
Unknown Object (File)
Sun, Apr 14, 5:28 PM
Unknown Object (File)
Mon, Apr 8, 1:56 PM
Unknown Object (File)
Sun, Apr 7, 7:44 PM
Unknown Object (File)
Sat, Mar 30, 6:40 AM
Unknown Object (File)
Feb 15 2024, 12:42 PM
Unknown Object (File)
Dec 20 2023, 3:36 AM
Unknown Object (File)
Dec 12 2023, 2:38 AM
Subscribers
None

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.