HomeFreeBSD

libelf: rationalize error handling in ELF note conversion

Description

libelf: rationalize error handling in ELF note conversion

Previously _libelf_cvt_NOTE_tom (to host) returned false if a note's
namesz + descsz exceeded the buffer size, while _libelf_cvt_NOTE_tof
(to file) silently truncated. Return false in the latter case too.

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS358684: [aacraid] Port driver to big-endian
Branches
Unknown
Tags
Unknown