diff options
author | Jim Meyering <meyering@redhat.com> | 2010-08-28 17:45:29 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-08-28 19:28:20 +0200 |
commit | 777024889c0043004962834f4d9353cfa6847dd6 (patch) | |
tree | ab597978663b93ef1134cdcaa57ab921dd1d21f0 /NEWS | |
parent | c984948ff5db81b760a8a1d9d5d9512754fc30c2 (diff) | |
download | coreutils-777024889c0043004962834f4d9353cfa6847dd6.tar.xz |
tac: avoid double free
* src/tac.c (main): Reading a line longer than 16KiB would cause
tac to realloc its primary buffer. Then, just before exit, tac
would mistakenly free the original (now free'd) buffer.
This bug was introduced by commit be6c13e7, "maint: always free a
buffer, to avoid even semblance of a leak".
* NEWS (Bug fixes): Mention it.
* tests/misc/tac (double-free): New test, to exercise this.
Reported by Salvo Tomaselli in <http://bugs.debian.org/594666>.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -11,6 +11,9 @@ GNU coreutils NEWS -*- outline -*- du -H and -L now consistently count pointed-to files instead of symbolic links, and correctly diagnose dangling symlinks. + tac would perform a double-free when given an input line longer than 16KiB. + [bug introduced in coreutils-8.3] + ** New features cp now accepts the --attributes-only option to not copy file data, |