summaryrefslogtreecommitdiffstats
path: root/tests/017/carray.tl
Commit message (Collapse)AuthorAgeFilesLines
* carray-replace: two overrun bugs.Kaz Kylheku2022-01-131-0/+16
* ffi.c (carray_replace): In the case when we replace a larger range by a smaller one, when the upper part of the aray shifts down, we are not correctly clearing to zeros the vacated part of the array. The variable whole is a displacement from the base of the array, not from ptr. Secondly, the copying loop must go rom fr to below sn, not below vn; sn is derived from vn but truncated not to go past the array. * tests/017/carray.tl: New file. Several cases here fail before this fix.