]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly NUL-terminate the on-stack buffer for reading /boot.config
authormarcel <marcel@FreeBSD.org>
Thu, 9 Oct 2014 01:54:32 +0000 (01:54 +0000)
committermarcel <marcel@FreeBSD.org>
Thu, 9 Oct 2014 01:54:32 +0000 (01:54 +0000)
commit878e8a27204e100ef8ba737f703c3688396b1413
treec345b03949c2efc0f34f8cfdb37cd0af5e985e9b
parent9cf2b42641723fc9186176c799339e4834f76bc4
Properly NUL-terminate the on-stack buffer for reading /boot.config
or /boot/config. In qemu, on a warm boot, the stack is not all zeroes
and we parse beyond the file's contents.

Obtained from: Juniper Networks, Inc.
sys/boot/i386/gptboot/gptboot.c