Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.5.0, 0.6.0, 0.7.0
-
None
-
None
-
Reviewed
Description
kvbuffer.length = 2146435072 (2047 MB) Corner case: bufIndex=2026133899, kvbidx=523629312. distkvi = mod - i + j = 2146435072 - 2026133899 + 523629312 = 643930485 newPos = (2026133899 + (max(.., min(643930485/2, 271128624))) (This would overflow)
Would be good to restrict the max allowed sort buffer to 1800 instead of 2047.