Pádraig Brady
0a1a7f9022
cut: fix NUL termination of multi-byte field delimiter
...
* src/cut.c (delim_bytes): Add a spare byte so a maximum-length
multi-byte delimiter stays NUL terminated for the strstr needle in
find_field_delim. Note in 9.11 this buffer was larger (16 bytes)
and so didn't not have a buffer over-read issue.
(main): Ensure DELIM_BYTES is NUL terminated after each --delimeter.
Also explicitly writing the NUL allows for better testing by
triggering overflow issues in default builds, if the buffer
is not sized correctly.
* NEWS: Mention the bug fix.
* tests/cut/cut.pl: Add test cases.
Reported at https://github.com/coreutils/coreutils/pull/286
2026-06-10 13:50:04 +01:00
..
2026-04-15 15:08:27 +01:00
2026-04-07 12:20:10 +01:00
2026-01-01 10:56:16 -08:00
2026-04-16 21:16:08 -07:00
2026-06-02 11:43:06 +01:00
2026-06-02 11:43:06 +01:00
2026-01-01 10:56:16 -08:00
2026-05-30 21:29:19 +01:00
2026-04-22 19:12:44 -07:00
2026-06-06 11:46:43 +01:00
2026-02-18 18:31:49 +00:00
2026-06-10 13:50:04 +01:00
2026-06-09 13:42:00 +01:00
2026-05-20 13:09:28 +01:00
2026-04-15 12:56:16 +01:00
2026-02-28 18:36:34 -08:00
2026-03-27 21:15:18 +00:00
2026-04-15 15:08:27 +01:00
2026-04-06 18:22:56 +01:00
2026-02-25 14:52:57 +00:00
2026-02-18 18:31:49 +00:00
2026-06-07 19:45:30 -07:00
2026-01-01 10:56:16 -08:00
2026-05-25 16:07:05 +01:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-06-08 21:57:39 -07:00
2026-01-01 10:56:16 -08:00
2026-04-06 17:29:24 +01:00
2026-06-09 14:38:15 +01:00
2026-06-08 21:18:57 -07:00
2026-02-18 18:31:49 +00:00
2026-05-14 21:05:01 -07:00
2026-02-18 18:31:49 +00:00
2026-02-25 15:00:46 +00:00
2026-03-20 19:46:04 -07:00
2026-01-28 11:25:36 -08:00
2026-04-16 21:41:40 +01:00
2026-04-06 17:16:05 +01:00
2026-01-16 13:22:28 -08:00
2026-04-15 15:08:27 +01:00
2026-01-01 10:56:16 -08:00
2026-02-07 22:02:43 +00:00
2026-03-22 13:32:52 -07:00
2026-01-24 12:47:51 +00:00
2026-04-10 11:09:10 +01:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-06-04 13:13:27 +01:00
2026-05-07 23:32:52 -07:00
2026-06-09 14:08:02 +01:00
2026-06-09 14:22:09 +01:00
2026-06-04 13:48:05 +01:00
2026-01-24 12:49:52 +00:00
2026-03-04 17:57:54 +00:00
2026-05-26 11:58:47 +01:00
2026-05-19 19:06:13 +01:00
2026-01-21 13:51:39 +00:00
2026-03-13 20:37:10 -07:00
2026-04-10 11:09:10 +01:00
2026-03-23 12:11:35 +00:00
2026-03-24 19:02:21 -07:00
2026-04-09 21:25:27 +01:00
2026-06-09 18:20:39 -07:00
2026-04-28 11:25:41 -07:00
2026-02-28 18:36:34 -08:00
2026-02-18 18:31:49 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2015-11-06 16:40:42 +00:00
2026-01-01 10:56:16 -08:00
2012-09-14 10:20:03 +02:00
2026-05-25 16:07:05 +01:00
2015-11-10 13:03:33 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 20:50:59 -08:00
2021-05-12 22:14:11 +01:00