]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Lift scope of buf[] to make it extend to a potential access via *basename
authorse <se@FreeBSD.org>
Thu, 10 Dec 2020 09:31:05 +0000 (09:31 +0000)
committerse <se@FreeBSD.org>
Thu, 10 Dec 2020 09:31:05 +0000 (09:31 +0000)
commit2179a75b380df4236be5bcce1d71aeb1a24dbd1d
treef452787e6b609646c7109f32f88717779f40a9b7
parentdef1f148d5b409809ce1c8ee7d193e88ac8daf83
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.

Reported by: Coverity Scan CID 1437697
MFC after: 3 days
usr.sbin/crunch/crunchgen/crunched_main.c