diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 13:26:00 -0700 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2012-08-18 07:39:29 +0200 |
| commit | 574b7c7dbec8821d03a462796968847783d07c29 (patch) | |
| tree | 25d956ae0f12851bfa2111dd533a705804a1f5c7 /scripts/git-hooks/commit-msg | |
| parent | sort: sort --unique (-u) could cause data loss (diff) | |
| download | coreutils-574b7c7dbec8821d03a462796968847783d07c29.tar.gz coreutils-574b7c7dbec8821d03a462796968847783d07c29.zip | |
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 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
