Changeset 52575 in vbox for trunk/src/VBox/HostDrivers/Support/linux
- Timestamp:
- Sep 3, 2014 7:36:27 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r52192 r52575 719 719 return -E2BIG; 720 720 } 721 if (RT_UNLIKELY( cbBuf != _IOC_SIZE(uCmd) && _IOC_SIZE(uCmd)))721 if (RT_UNLIKELY(_IOC_SIZE(uCmd) ? cbBuf != _IOC_SIZE(uCmd) : Hdr.cbIn < sizeof(Hdr))) 722 722 { 723 723 Log(("VBoxDrvLinuxIOCtl: bad ioctl cbBuf=%#x _IOC_SIZE=%#x; uCmd=%#x.\n", cbBuf, _IOC_SIZE(uCmd), uCmd)); … … 736 736 return -EFAULT; 737 737 } 738 if (Hdr.cbIn < cbBuf) 739 RT_BZERO((uint8_t *)pHdr + Hdr.cbIn, cbBuf - Hdr.cbIn) 738 740 739 741 /* 740 742 * Process the IOCtl. 741 743 */ 742 rc = supdrvIOCtl(uCmd, &g_DevExt, pSession, pHdr );744 rc = supdrvIOCtl(uCmd, &g_DevExt, pSession, pHdr, cbBuf); 743 745 744 746 /*
Note:
See TracChangeset
for help on using the changeset viewer.