https://sourceware.org/bugzilla/show_bug.cgi?id=33488
Aaron Merey <amerey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Aaron Merey <amerey at redhat dot com> ---
Fixed in the following commit:
commit b327696955e5e9ae6e26275d9459e9ddcb86229f
Author: Aaron Merey <[email protected]>
Date: Thu Oct 9 17:08:30 2025 -0400
elflint: Do not raise an error when note type is unrecognized
check_note_data compares the type of a given ELF note to a list of known
types. If the type is not recognized then an "unknown note" error is
raised.
Unknown note types do not necessarily indicate a gABI/psABI compliance
issue so an error should not be raised for this reason alone.
Additionally some common note types are missing from the list of known
types (NT_FILE for example).
Fix this by removing the "unknown note" error from check_note_data.
This patch preserves existing type-specific format checks and adds a
check for the presence of the null terminator in the note name, if
applicable. If one of these checks fails, a "malformed note" or
"missing null terminator" error is raised.
Since there are currently no type-specific checks for any ET_CORE
notes, these checks are only performed when the given binary does not
have e_type ET_CORE.
https://sourceware.org/bugzilla/show_bug.cgi?id=33488
Signed-off-by: Aaron Merey <[email protected]>
--
You are receiving this mail because:
You are on the CC list for the bug.