Changeset 85511 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jul 29, 2020 10:21:19 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLibLdr.cpp
r85507 r85511 594 594 return RTErrInfoSetF(pErrInfo, rc, "RTLdrEnumSegments #2 failed"); 595 595 } 596 SegArgs.uEndRva = cbImage; 596 SegArgs.uEndRva = (uint32_t)cbImage; 597 AssertReturn(SegArgs.uEndRva == cbImage, VERR_OUT_OF_RANGE); 597 598 if (SegArgs.uEndRva > SegArgs.uStartRva) 598 599 { … … 759 760 { 760 761 Assert(SegArgs.uEndRva <= RTLdrSize(hLdrMod)); 761 SegArgs.uEndRva = RTLdrSize(hLdrMod);762 SegArgs.uEndRva = (uint32_t)CalcArgs.cbImage; /* overflow is checked later */ 762 763 if (SegArgs.uEndRva > SegArgs.uStartRva) 763 764 SegArgs.iSegs++;
Note:
See TracChangeset
for help on using the changeset viewer.