mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +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:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user