diff options
author | Jim Meyering <jim@meyering.net> | 2006-12-20 14:25:55 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-12-20 14:25:55 +0100 |
commit | d69fc66d81c7166fe689418f42b7cb900d2a1433 (patch) | |
tree | d5892567bd10b245328d8da36bef287a0d1ede41 /NEWS | |
parent | 4e48b4ce334cb601dbbe2562e3aa410dc3ef3fba (diff) | |
download | coreutils-d69fc66d81c7166fe689418f42b7cb900d2a1433.tar.xz |
"cut -f 2- A B" no longer triggers a double-free bug
* src/cut.c (cut_fields): Set file-scoped global to NULL after
freeing it. This avoids a double-free (and core dump on some systems)
for this usage: "echo 1>a; echo 2>b; cut -f2- a b". Reported by
James Hunt in <http://bugzilla.redhat.com/220312>.
* NEWS: List this bug fix.
* THANKS: Mention him.
* tests/misc/cut: New file.
* tests/misc/Makefile.am (TESTS): Add cut.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ GNU coreutils NEWS -*- outline -*- chmod no longer fails in an environment (e.g., a chroot) with openat support but with insufficient /proc support. + cut no longer dumps core for usage like "cut -f2- f1 f2" with two or + more file arguments. This was due to a double-free bug, introduced + in coreutils-5.3.0. + * Noteworthy changes in release 6.7 (2006-12-08) [stable] ** Bug fixes |