summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-08-17 13:26:00 -0700
committerJim Meyering <meyering@redhat.com>2012-08-18 07:39:29 +0200
commit574b7c7dbec8821d03a462796968847783d07c29 (patch)
tree25d956ae0f12851bfa2111dd533a705804a1f5c7 /tests
parenteb3f5b3b3de8c6ca005a701f09bff43d778aece7 (diff)
downloadcoreutils-574b7c7dbec8821d03a462796968847783d07c29.tar.xz
sort: simpler fix for sort -u data-loss bug, and for a FMR bug
This also fixes a free-memory-read (FMR) bug: when fillbuf's realloc of buf->buf frees the buffer into which saved_line.text points, the processing of that just-read longer line includes comparison against the saved line in freed memory. * src/sort.c (overlap): Remove. (fillbuf): Do not try to copy saved lines, as that is too risky in the presence of parallelism, reallocated buffers, etc. (sort): Invalidate any saved line before sorting a new batch.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions