Jim Meyering
b58a8b4ef5
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 >
2008-03-27 13:32:38 +01:00
..
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-30 09:40:25 +02:00
2007-12-20 14:19:56 +01:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-03-01 10:39:12 +01:00
2008-03-19 23:52:16 +01:00
2007-09-15 08:40:39 +02:00
2008-03-27 13:32:38 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:39 +02:00
2008-02-09 10:30:33 +01:00
2008-03-27 13:32:38 +01:00
2007-09-15 08:40:39 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-11-01 23:40:21 +01:00
2008-03-21 20:58:15 +01:00
2008-02-23 23:25:17 +01:00
2008-02-09 10:30:33 +01:00
2007-11-16 11:04:31 +01:00
2007-10-09 15:49:00 +02:00
2008-02-09 10:30:33 +01:00
2008-02-19 15:41:16 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:39 +02:00
2007-09-15 08:40:39 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-02-07 08:26:48 +01:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:39 +02:00
2007-12-01 16:22:47 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:39 +02:00
2007-09-15 08:40:39 +02:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00
2007-09-15 08:40:38 +02:00
2008-02-09 10:30:33 +01:00
2008-02-09 10:30:33 +01:00