Skip to content

Commit c2886ce

Browse files
author
Mike McLaughlin
committed
Code review feedback
1 parent b373fa5 commit c2886ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coreclr/vm/dacenumerablehash.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ DPTR(VALUE) DacEnumerableHashTable<DAC_ENUM_HASH_ARGS>::BaseFindFirstEntryByHash
345345
do
346346
{
347347
DWORD cBuckets = GetLength(curBuckets);
348+
// DAC hardening for invalid process state
349+
#ifdef DACCESS_COMPILE
348350
if (cBuckets > 0)
351+
#endif
349352
{
350353
// Compute which bucket the entry belongs in based on the hash.
351354
// +2 to skip "length" and "next" slots

0 commit comments

Comments
 (0)