From eb51b02b158c3ff71a1ec7eac8a211d1d464c1a5 Mon Sep 17 00:00:00 2001 From: Hyungju Lee Date: Mon, 21 Mar 2022 13:58:35 +0900 Subject: [PATCH] Fix ReplaceModuleMapping for 32bit binary on 64bit kernel (#66640) --- src/coreclr/debug/createdump/crashinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/debug/createdump/crashinfo.cpp b/src/coreclr/debug/createdump/crashinfo.cpp index 70e0007..3ed1cd8 100644 --- a/src/coreclr/debug/createdump/crashinfo.cpp +++ b/src/coreclr/debug/createdump/crashinfo.cpp @@ -412,8 +412,8 @@ CrashInfo::UnwindAllThreads() void CrashInfo::ReplaceModuleMapping(CLRDATA_ADDRESS baseAddress, ULONG64 size, const std::string& name) { - uint64_t start = (uint64_t)baseAddress; - uint64_t end = ((baseAddress + size) + (PAGE_SIZE - 1)) & PAGE_MASK; + ULONG_PTR start = (ULONG_PTR)baseAddress; + ULONG_PTR end = ((baseAddress + size) + (PAGE_SIZE - 1)) & PAGE_MASK; uint32_t flags = GetMemoryRegionFlags(start); // Make sure that the page containing the PE header for the managed asseblies is in the dump -- 2.7.4