HomeFreeBSD

MFC r315685: tighten buffer bounds in imgact_binmisc_populate_interp

Description

MFC r315685: tighten buffer bounds in imgact_binmisc_populate_interp

We must ensure there's space for the terminating null in the temporary
buffer in imgact_binmisc_populate_interp().

Note that there's no buffer overflow here because xbe->xbe_interpreter's
length and null termination is checked in imgact_binmisc_add_entry()
before imgact_binmisc_populate_interp() is called. However, the latter
should correctly enforce its own bounds.

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS318292: MFC r314054: Exclude -flto when building *genassym.o
Branches
Unknown
Tags
Unknown