Skip to content

Commit 1dad033

Browse files
committed
fixup! [scudo] Make local cache be agnostic to the type of node in freelist
1 parent ee31677 commit 1dad033

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler-rt/lib/scudo/standalone/primary32.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ template <typename Config> class SizeClassAllocator32 {
197197
return 0;
198198

199199
const u16 Count = B->getCount();
200+
DCHECK_GT(Count, 0U);
200201
B->moveToArray(ToArray);
201202

202203
if (ClassId != SizeClassMap::BatchClassId)

compiler-rt/lib/scudo/standalone/primary64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ template <typename Config> class SizeClassAllocator64 {
213213
return 0;
214214

215215
const u16 Count = B->getCount();
216+
DCHECK_GT(Count, 0U);
216217
B->moveToArray(ToArray);
217218

218219
if (ClassId != SizeClassMap::BatchClassId)

0 commit comments

Comments
 (0)