HomeFreeBSD

ELF note parser: provide more info on failure

Description

ELF note parser: provide more info on failure

Print reasons when parser declined to parse notes, due to mis-alignment,
invalid length, or too many notes (the later typically means that there
is a loop). Also increase the loop limit to 4096, which gives enough
iterations for notes to fill whole notes' page.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Details

Provenance
kibAuthored on Feb 10 2024, 1:36 AM
Parents
rGa67edb5616c1: imgact_elf.c: remove sys/cdefs.h include
Branches
Unknown
Tags
Unknown