]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r355713:
authorToomas Soome <tsoome@FreeBSD.org>
Fri, 20 Dec 2019 07:40:28 +0000 (07:40 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Fri, 20 Dec 2019 07:40:28 +0000 (07:40 +0000)
commit54c33031e2cd89df45202b09e16adc96c1e0256a
tree02dc47f90f6318235b47be0685cba116a207f256
parent0155655486d277dc1f469f4aeb3b92b0810c51d6
MFC r355713:
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.
stand/libsa/cd9660.c
stand/libsa/cd9660read.c