fix out of range access in test on platforms which are actually shrinking the buffer

(0) -1000 -300 -100 -30 -10 -1 +1 +10 +30 tip

mercurial