#946·FASTER

numBytesToRead out of range when recover from large amounts of records

Author: aiomindCreated Sep 23, 2025Updated Sep 23, 2025

FASTERA\cs\src\core\Allocator\MallocFixedPageSize.cs Line 553

int numRecords = (int)numBytesToRead / RecordSize;

When numBytesToRead greater than int.Max() recover will stuck

My fix: int numRecords = (int)(numBytesToRead / (ulong)RecordSize);

Not sure if this will cause other problems