Changeset 90804 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/solaris
- Timestamp:
- Aug 23, 2021 7:08:53 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146439
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/solaris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSB-solaris.c
r88264 r90804 1358 1358 #define CHECKRET_MIN_SIZE(mnemonic, cbMin) \ 1359 1359 do { \ 1360 if ( cbData < (cbMin)) \1360 if (RT_UNLIKELY(cbData < (cbMin))) \ 1361 1361 { \ 1362 1362 LogRel((DEVICE_NAME ": vboxUsbSolarisProcessIOCtl: " mnemonic ": cbData=%#zx (%zu) min is %#zx (%zu)\n", \ … … 1364 1364 return VERR_BUFFER_OVERFLOW; \ 1365 1365 } \ 1366 if ( (cbMin) != 0 && !VALID_PTR(pvBuf)) \1366 if (RT_UNLIKELY((cbMin) != 0 && !RT_VALID_PTR(pvBuf))) \ 1367 1367 { \ 1368 1368 LogRel((DEVICE_NAME ": vboxUsbSolarisProcessIOCtl: " mnemonic ": Invalid pointer %p\n", pvBuf)); \ -
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c
r82968 r90804 578 578 } 579 579 if (RT_UNLIKELY( ReqWrap.cbData != 0 580 && ! VALID_PTR(pvBuf)))580 && !RT_VALID_PTR(pvBuf))) 581 581 { 582 582 RTMemTmpFree(pvBuf); … … 658 658 #define CHECKRET_MIN_SIZE(mnemonic, cbMin) \ 659 659 do { \ 660 if ( cbData < (cbMin)) \660 if (RT_UNLIKELY(cbData < (cbMin))) \ 661 661 { \ 662 662 LogRel(("vboxUSBSolarisProcessIOCtl: " mnemonic ": cbData=%#zx (%zu) min is %#zx (%zu)\n", \ … … 664 664 return VERR_BUFFER_OVERFLOW; \ 665 665 } \ 666 if ( (cbMin) != 0 && !VALID_PTR(pvData)) \666 if (RT_UNLIKELY((cbMin) != 0 && !RT_VALID_PTR(pvData))) \ 667 667 { \ 668 668 LogRel(("vboxUSBSolarisProcessIOCtl: " mnemonic ": Invalid pointer %p\n", pvData)); \
Note:
See TracChangeset
for help on using the changeset viewer.