ntdll: Potential buffer overwrite (Coverity).

This commit is contained in:
Marcus Meissner 2015-04-19 11:59:22 +02:00 committed by Alexandre Julliard
parent a57b06c5ac
commit 33d4125a8f
1 changed files with 5 additions and 2 deletions

View File

@ -3090,8 +3090,11 @@ NTSTATUS CDROM_DeviceIoControl(HANDLE hDevice,
sz = sizeof(DVD_REGION); sz = sizeof(DVD_REGION);
if (lpInBuffer != NULL || nInBufferSize != 0) status = STATUS_INVALID_PARAMETER; if (lpInBuffer != NULL || nInBufferSize != 0) status = STATUS_INVALID_PARAMETER;
else if (nOutBufferSize < sz) status = STATUS_BUFFER_TOO_SMALL; else if (nOutBufferSize < sz) status = STATUS_BUFFER_TOO_SMALL;
TRACE("doing DVD_Get_REGION\n"); else
status = DVD_GetRegion(fd, lpOutBuffer); {
TRACE("doing DVD_Get_REGION\n");
status = DVD_GetRegion(fd, lpOutBuffer);
}
break; break;
case IOCTL_DVD_READ_STRUCTURE: case IOCTL_DVD_READ_STRUCTURE:
sz = sizeof(DVD_LAYER_DESCRIPTOR); sz = sizeof(DVD_LAYER_DESCRIPTOR);