Changeset 82662 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB
- Timestamp:
- Jan 8, 2020 9:14:38 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135563
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/USBFilter.cpp
r76553 r82662 327 327 } 328 328 329 /* Validate that string value offsets are inside the string table. */ 330 for (uint32_t i = 0; i < RT_ELEMENTS(pFilter->aFields); i++) 331 { 332 if ( USBFilterIsMethodUsingStringValue((USBFILTERMATCH)pFilter->aFields[i].enmMatch) 333 && pFilter->aFields[i].u16Value > pFilter->offCurEnd) 334 { 335 Log(("USBFilter: %p - bad offset=%#x\n", pFilter->aFields[i].u16Value)); 336 return VERR_INVALID_PARAMETER; 337 } 338 } 339 329 340 /* 330 341 * Validate the string table. … … 350 361 unsigned i; 351 362 for (i = 0; i < RT_ELEMENTS(pFilter->aFields); i++) 352 if ( USBFilterIsMethod String((USBFILTERMATCH)pFilter->aFields[i].enmMatch)363 if ( USBFilterIsMethodUsingStringValue((USBFILTERMATCH)pFilter->aFields[i].enmMatch) 353 364 && pFilter->aFields[i].u16Value == off) 354 365 break; … … 1791 1802 1792 1803 /** 1793 * Checks if a matching method is for stringfields or not.1804 * Checks if a matching method is for numeric fields or not. 1794 1805 * 1795 1806 * @returns true / false.
Note:
See TracChangeset
for help on using the changeset viewer.