Changeset 95638 in vbox for trunk/src/VBox/Runtime/common/ldr
- Timestamp:
- Jul 14, 2022 2:44:12 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r95635 r95638 2475 2475 for (uint32_t iPage = 0; iPage < cPagesInSection; iPage++) 2476 2476 { 2477 uint32_t const offPageInFile = offRawData + iPage * cbPage; 2478 uint32_t const cbPageInFile = RT_MIN(cbPage, offPageInFile - cbRawData); 2477 uint32_t const offPageInSect = iPage * cbPage; 2478 uint32_t const offPageInFile = offRawData + offPageInSect; 2479 uint32_t const cbPageInFile = RT_MIN(cbPage, cbRawData - offPageInSect); 2479 2480 offLastPage = offPageInFile; 2480 2481 … … 2578 2579 * Add the terminator entry. 2579 2580 */ 2580 *(uint32_t *)pbDst = offLastPage ;2581 *(uint32_t *)pbDst = offLastPage + cbPage; 2581 2582 RT_BZERO(&pbDst[sizeof(uint32_t)], cbHash); 2582 2583
Note:
See TracChangeset
for help on using the changeset viewer.