numBytesToRead out of range when recover from large amounts of records

#946 · open · 0 comments

View on GitHub ↗

aiomind

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

Comments