diff options
author | Jim Meyering <meyering@redhat.com> | 2008-03-27 12:18:25 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-27 13:32:38 +0100 |
commit | b58a8b4ef588ec8a365b920d12e27fdd71aa48d1 (patch) | |
tree | 319fa5c7f3b3636f953271dca93f9a9b29c0b124 /tests/mkdir/writable-under-readonly | |
parent | 6743f8113658189cdc3d169616569e733403ee54 (diff) | |
download | coreutils-b58a8b4ef588ec8a365b920d12e27fdd71aa48d1.tar.xz |
paste -d\\: avoid heap overrun for backslash at end of delim list
* src/paste.c: Include "quotearg.h".
(collapse_escapes): Handle backslash-escaped backslash explicitly.
Handle unescaped backslash at end of string by returning nonzero,
rather than by overrunning memory.
(main): Diagnose an invalid delimiter list -- carefully.
Reported by Cristian Cadar, Daniel Dunbar and Dawson Engler.
* tests/misc/paste-no-nl (delim-bs): Add a test to demonstrate the
heap-smashing capability.
(delim-bs2): Prior to coreutils-5.1.2, this bug was a little harder
to demonstrate: it would corrupt a first-argument containing e.g., \b
* NEWS: Mention the bug fix.
* tests/misc/Makefile.am (TESTS): Reflect renaming.
* tests/misc/paste: Rename from paste-no-nl.
Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'tests/mkdir/writable-under-readonly')
0 files changed, 0 insertions, 0 deletions