Changeset 75169 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Oct 30, 2018 6:29:31 AM (6 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp
r75122 r75169 526 526 } 527 527 528 if (cbSrc > cbPacket) 529 cbSrc = cbPacket; 530 528 /* Handle the offset in the current (which is the first for us) MDL */ 531 529 if (uOffset) 532 530 { … … 539 537 else 540 538 { 541 uOffset -= cbSrc; 542 continue; 539 /* This is an invalid MDL chain */ 540 vboxNetAdpWinDestroySG(pSG); 541 return NULL; 543 542 } 544 543 } 544 545 /* Do not read the last MDL beyond packet's end */ 546 if (cbSrc > cbPacket) 547 cbSrc = cbPacket; 545 548 546 549 Assert(cSegs < pSG->cSegsAlloc); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp
r75122 r75169 1633 1633 } 1634 1634 1635 if (cbSrc > cbPacket) 1636 cbSrc = cbPacket; 1637 1635 /* Handle the offset in the current (which is the first for us) MDL */ 1638 1636 if (uOffset) 1639 1637 { … … 1646 1644 else 1647 1645 { 1648 uOffset -= cbSrc; 1649 continue; 1646 /* This is an invalid MDL chain */ 1647 vboxNetLwfWinDestroySG(pSG); 1648 return NULL; 1650 1649 } 1651 1650 } 1651 1652 /* Do not read the last MDL beyond packet's end */ 1653 if (cbSrc > cbPacket) 1654 cbSrc = cbPacket; 1652 1655 1653 1656 Assert(cSegs < pSG->cSegsAlloc);
Note:
See TracChangeset
for help on using the changeset viewer.