Skip to content

Commit

Permalink
Fix null dereference when logging enabled on 32-bit platforms in Host…
Browse files Browse the repository at this point in the history
…CodeHeap::InitializeHeapList() (#83875)
  • Loading branch information
k15tfu authored Mar 24, 2023
1 parent 51fcdf7 commit 605eb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/vm/dynamicmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ HeapList* HostCodeHeap::InitializeHeapList(CodeHeapRequestInfo *pInfo)
m_pHeapList = (PTR_HeapList)pHp;

LOG((LF_BCL, LL_INFO100, "Level2 - CodeHeap creation {0x%p} - size available 0x%p, private data ptr [0x%p, 0x%p]\n",
(HostCodeHeap*)this, m_TotalBytesAvailable, pTracker, pTracker->size));
(HostCodeHeap*)this, m_TotalBytesAvailable, pTracker, (pTracker ? pTracker->size : 0)));

// It is important to exclude the CLRPersonalityRoutine from the tracked range
pHp->startAddress = dac_cast<TADDR>(m_pBaseAddr) + (pTracker ? pTracker->size : 0);
Expand Down

0 comments on commit 605eb6e

Please sign in to comment.