diff options
author | Jim Meyering <meyering@redhat.com> | 2009-04-22 08:45:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-04-23 21:03:14 +0200 |
commit | 25eb4c69097ca4f5665b050cfa4247a19ffd8c55 (patch) | |
tree | 0b17c83b2d096a6c3a0fd9bb15322fdbf25af46e /NEWS | |
parent | f41f926aab38d52734b3908eeb0496ebf1285cbd (diff) | |
download | coreutils-25eb4c69097ca4f5665b050cfa4247a19ffd8c55.tar.xz |
sort -m: don't segfault when output file is also an input file
* src/sort.c (avoid_trashing_input): Fix an off-by-one error and
guard the use of memmove.
* NEWS (Bug fixes): Mention it.
* tests/misc/sort: Add tests to exercise the offending code.
* THANKS: Update.
Reported by Otavio Salvador in http://bugs.debian.org/525048.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,9 +1,13 @@ GNU coreutils NEWS -*- outline -*- -* Noteworthy changes in release ?.? (????-??-??) [?] +* Noteworthy changes in release 7.3 (????-??-??) [?] ** Bug fixes + sort -m no longer segfaults when its output file is also an input file. + E.g., with this, touch 1; sort -m -o 1 1, sort would segfault. + [introduced in coreutils-7.2] + ls now aligns output correctly in the presence of abbreviated month names from the locale database that have differing widths. |