]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Lift scope of buf[] to make it extend to a potential access via *basename
authorStefan Eßer <se@FreeBSD.org>
Thu, 10 Dec 2020 09:31:05 +0000 (09:31 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 29 Dec 2020 16:37:32 +0000 (10:37 -0600)
commit929eb23231d5e5b19b57b7a514c7ff99d79967dc
tree43c67fece551e5db4b2f161fe0e0d04de4081dac
parent7e436c56ca3814a899d0ad04433fa1b1ed7f5570
Lift scope of buf[] to make it extend to a potential access via *basename

It can be assumed that the contents of the buffer was still allocated and
valid at the point of the out-of-scope access, so there was no security
issue in practice.

(cherry picked from commit 7483b9e4dcfb4c444f8b5d54117fb6c8c48c20e9)
usr.sbin/crunch/crunchgen/crunched_main.c