- Timestamp:
- Jan 12, 2024 2:09:30 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp
r100965 r102859 454 454 uint8_t const *pbNeedle, size_t cbNeedle) 455 455 { 456 Assert(cbNeedle == 8); RT_NOREF(cbNeedle);456 Assert(cbNeedle >= 8); RT_NOREF(cbNeedle); 457 457 const uint64_t uNeedle = *(const uint64_t *)pbNeedle; 458 458 uint64_t const *puHaystack = (uint64_t const *)pbHaystack; … … 470 470 uint8_t const *pbNeedle, size_t cbNeedle) 471 471 { 472 Assert(cbNeedle == 4); RT_NOREF(cbNeedle);472 Assert(cbNeedle >= 4); RT_NOREF(cbNeedle); 473 473 const uint32_t uNeedle = *(const uint32_t *)pbNeedle; 474 474 uint32_t const *puHaystack = (uint32_t const *)pbHaystack; … … 486 486 uint8_t const *pbNeedle, size_t cbNeedle) 487 487 { 488 Assert(cbNeedle == 2); RT_NOREF(cbNeedle);488 Assert(cbNeedle >= 2); RT_NOREF(cbNeedle); 489 489 const uint16_t uNeedle = *(const uint16_t *)pbNeedle; 490 490 uint16_t const *puHaystack = (uint16_t const *)pbHaystack; … … 501 501 uint8_t const *pbNeedle, size_t cbNeedle) 502 502 { 503 Assert(cbNeedle == 1); RT_NOREF(cbNeedle);503 Assert(cbNeedle >= 1); RT_NOREF(cbNeedle); 504 504 const uint8_t bNeedle = *pbNeedle; 505 505 while (cbHaystack-- > 0) … … 515 515 uint8_t const *pbNeedle, size_t cbNeedle) 516 516 { 517 Assert(cbNeedle == 4); RT_NOREF(cbNeedle);517 Assert(cbNeedle >= 4); RT_NOREF(cbNeedle); 518 518 uint32_t const uNeedle = *(uint32_t const *)pbNeedle; 519 519 while (cbHaystack >= sizeof(uint32_t)) … … 539 539 uint8_t const *pbNeedle, size_t cbNeedle) 540 540 { 541 Assert(cbNeedle == 8); RT_NOREF(cbNeedle);541 Assert(cbNeedle >= 8); RT_NOREF(cbNeedle); 542 542 uint64_t const uNeedle = *(uint64_t const *)pbNeedle; 543 543 while (cbHaystack >= sizeof(uint64_t))
Note:
See TracChangeset
for help on using the changeset viewer.