Mark Johnston 409ab7e109 imgact_elf: Ensure that the return value in parse_notes is initialized
parse_notes relies on the caller-supplied callback to initialize "res".
Two callbacks are used in practice, brandnote_cb and note_fctl_cb, and
the latter fails to initialize res.  Fix it.

In the worst case, the bug would cause the inner loop of check_note to
examine more program headers than necessary, and the note header usually
comes last anyway.

Reviewed by:	kib
Reported by:	KMSAN
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D29986
2021-04-26 14:53:16 -04:00
..
2021-04-07 14:33:02 -04:00
2021-04-02 15:41:51 +03:00
2021-03-17 06:16:31 +11:00
2021-03-17 06:16:31 +11:00
2021-04-15 15:47:42 +03:00
2021-04-13 17:42:20 -04:00