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-17 12:20:17 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2008-03-21 21:01:10 +01:00
2007-12-04 00:42:18 +01:00
2008-01-30 19:29:11 +01:00
2007-07-23 14:35:58 +02:00
2008-01-30 19:29:11 +01:00
2008-02-28 19:53:07 +01:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-19 13:38:27 +01:00
2008-02-28 19:53:07 +01:00
2008-02-28 19:53:07 +01:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2008-03-07 12:21:37 +01:00
2007-10-27 09:42:27 +02:00
2008-02-17 11:16:18 +01:00
2008-02-17 11:16:18 +01:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-10-25 08:59:30 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-16 19:04:29 +01:00
2008-02-28 19:53:07 +01:00
2008-03-05 11:38:26 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2008-03-25 22:47:15 +01:00
2008-03-10 19:47:15 +01:00
2008-03-26 01:17:15 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-23 14:00:35 +02:00
2007-08-30 17:12:56 +02:00
2008-02-17 11:16:18 +01:00
2008-03-10 19:47:15 +01:00
2007-08-22 16:59:40 +02:00
2008-03-26 00:57:29 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-19 16:48:32 +01:00
2007-12-01 10:09:57 +01:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-24 14:51:55 +02:00
2008-03-27 13:32:38 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-19 16:48:32 +01:00
2008-03-19 16:48:32 +01:00
2008-03-16 19:04:29 +01:00
2008-03-10 19:47:15 +01:00
2008-03-10 19:47:15 +01:00
2008-03-21 20:58:15 +01:00
2007-08-30 17:12:56 +02:00
2007-08-28 11:23:27 +02:00
2008-03-21 16:01:29 +01:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2008-03-10 19:47:15 +01:00
2007-11-23 09:03:23 +01:00
2008-03-21 15:59:41 +01:00
2008-01-26 10:04:17 +01:00
2007-12-04 00:42:18 +01:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2008-02-20 08:41:29 +01:00
2008-02-07 08:26:48 +01:00
2008-02-28 19:53:07 +01:00
2007-07-23 14:35:58 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-01-30 19:29:11 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2008-03-19 16:48:32 +01:00
2008-03-19 16:48:32 +01:00
2008-01-06 00:09:29 +01:00
2007-08-30 17:12:56 +02:00
2007-10-07 18:16:07 +02:00
2007-08-29 00:14:23 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-12-19 10:01:57 +01:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00