]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: cd9660_open() warn: is 'buf' large enough for 'struct iso_primary_descriptor'?
authortsoome <tsoome@FreeBSD.org>
Fri, 13 Dec 2019 12:36:16 +0000 (12:36 +0000)
committertsoome <tsoome@FreeBSD.org>
Fri, 13 Dec 2019 12:36:16 +0000 (12:36 +0000)
commit44536139bb53b1c9c87de046e484ae47a380ba43
tree293a52470e5f4f742d3f80bb77eabc8f879d842f
parent5d1408ea62965656d549041757c6ae2557ff54eb
loader: cd9660_open() warn: is 'buf' large enough for 'struct iso_primary_descriptor'?

We do allocate amount of memory (void * or char *), and then assign this
buffer to struct iso_primary_descriptor *vd. Make sure we do
allocate enough bytes.

In fact we do allocate enough, but it is good idea to make sure this really
is so.

MFC after: 1 week
stand/libsa/cd9660.c
stand/libsa/cd9660read.c