Skip to content

Commit 9ddf979

Browse files
committed
We should use image size in memory instead of image size on disk for determining if a given instruction is in an address range.
1 parent 51c8f3c commit 9ddf979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/debug/daccess/request.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ HRESULT ClrDataAccess::GetTieredVersions(
12341234
{
12351235
PTR_PEImageLayout pImage = pModule->GetReadyToRunInfo()->GetImage();
12361236
r2rImageBase = dac_cast<TADDR>(pImage->GetBase());
1237-
r2rImageEnd = r2rImageBase + pImage->GetSize();
1237+
r2rImageEnd = r2rImageBase + pImage->GetVirtualSize();
12381238
}
12391239
}
12401240

0 commit comments

Comments
 (0)