diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-01-13 07:33:14 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-01-13 07:33:14 -0800 |
commit | 387834636fe55bbda0ad7061f7a63077869dfd2a (patch) | |
tree | fc073d24a8131c0a2d7d30be6ea7eec0f8baf447 /tests/017/mmap.tl | |
parent | 6668d036e80755afb1edd6a8e9bfdbf02b9411f6 (diff) | |
download | txr-387834636fe55bbda0ad7061f7a63077869dfd2a.tar.gz txr-387834636fe55bbda0ad7061f7a63077869dfd2a.tar.bz2 txr-387834636fe55bbda0ad7061f7a63077869dfd2a.zip |
carray-replace: two overrun bugs.
* 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.
Diffstat (limited to 'tests/017/mmap.tl')
0 files changed, 0 insertions, 0 deletions