Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ DumpPagingInfo (
StringLength = 0;

// Calculate the string size of the Loaded Image Table
Status = LoadedImageTableDump (TRUE, &StringLength);
Status = LoadedImageTableDump (FALSE, &StringLength);

if (EFI_ERROR (Status) && (Status != EFI_NOT_STARTED)) {
DEBUG ((DEBUG_ERROR, "%a - Error tabulating required string size for the loaded image info in the memory info database\n", __func__));
Expand Down Expand Up @@ -1650,6 +1650,9 @@ DumpPagingInfo (
goto Cleanup;
}

// Prevent a stale, non-zero offset from writing past the beginning of the buffer.
mMemoryInfoDatabaseSize = 0;

if (mPteCounts[EntryGuard] > 0) {
// Calculate the string size of the guard page entries
Status = GuardPageDump (mPteEntries[EntryGuard], mPteCounts[EntryGuard], TRUE);
Expand Down
Loading