mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
Carlo Bramix
- Prevent possible out-of-bounds access. See issue #5505 for more details. svn path=/trunk/; revision=48495
This commit is contained in:
parent
9d1462a2b7
commit
07a6bcfb57
|
@ -73,7 +73,7 @@ CdfsGetPVDData(PUCHAR Buffer,
|
|||
/* Extract the volume label */
|
||||
pc = Pvd->VolumeId;
|
||||
pw = CdInfo->VolumeLabel;
|
||||
for (i = 0; i < MAXIMUM_VOLUME_LABEL_LENGTH / sizeof(WCHAR); i++)
|
||||
for (i = 0; i < (MAXIMUM_VOLUME_LABEL_LENGTH / sizeof(WCHAR)) - 1; i++)
|
||||
{
|
||||
*pw++ = (WCHAR)*pc++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue