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 Mar 5 2020, 8:53 PM
Parents
rGd8c51c6f74b6: [aacraid] Port driver to big-endian
Branches
Unknown
Tags
Unknown

Event Timeline