Commit 33d4125a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll: Potential buffer overwrite (Coverity).

parent a57b06c5
......@@ -3090,8 +3090,11 @@ NTSTATUS CDROM_DeviceIoControl(HANDLE hDevice,
sz = sizeof(DVD_REGION);
if (lpInBuffer != NULL || nInBufferSize != 0) status = STATUS_INVALID_PARAMETER;
else if (nOutBufferSize < sz) status = STATUS_BUFFER_TOO_SMALL;
TRACE("doing DVD_Get_REGION\n");
status = DVD_GetRegion(fd, lpOutBuffer);
else
{
TRACE("doing DVD_Get_REGION\n");
status = DVD_GetRegion(fd, lpOutBuffer);
}
break;
case IOCTL_DVD_READ_STRUCTURE:
sz = sizeof(DVD_LAYER_DESCRIPTOR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment