ntdll: Potential buffer overwrite (Coverity).
This commit is contained in:
parent
a57b06c5ac
commit
33d4125a8f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue