Pádraig Brady
5e5d454037
shred: fix pattern selection for certain iteration counts
...
This was detected in about 25% of runs with gcc -fsanitize=address
ERROR: AddressSanitizer: global-buffer-overflow on address ...
READ of size 4 at 0x000000416628 thread T0
#0 0x40479f in genpattern src/shred.c:782
#1 0x4050d9 in do_wipefd src/shred.c:921
#2 0x406203 in wipefile src/shred.c:1175
#3 0x406b84 in main src/shred.c:1316
#4 0x7f3454a1ef9f in __libc_start_main (/lib64/libc.so.6+0x1ff9f)
#5 0x4025d8 (/tmp/coreutils-8.23/src/shred+0x4025d8)
0x000000416628 is located 56 bytes to the left of
global variable '*.LC49' from 'src/shred.c' (0x416660) of size 17
0x000000416628 is located 12 bytes to the right of
global variable 'patterns' from 'src/shred.c' (0x416540) of size 220
SUMMARY: AddressSanitizer: global-buffer-overflow src/shred.c:782
* src/shred.c (gen_patterns): Restrict pattern selection
to the K available, which regressed due to v5.92-1462-g65533e1.
* tests/misc/shred-passes.sh: Add a deterministic test case.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/20998
2015-07-07 03:26:58 +01:00
..
2014-07-13 14:23:09 +01:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2009-08-25 09:21:00 +02:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-26 19:35:46 +01:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-05-28 01:42:15 +01:00
2015-01-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-28 23:48:30 +01:00
2015-01-01 04:52:17 +00:00
2008-11-20 10:21:52 +01:00
2015-01-31 17:39:04 +01:00
2015-04-30 18:25:01 +01:00
2015-04-30 18:25:01 +01:00
2015-03-26 08:40:31 +00:00
2015-01-01 04:52:17 +00:00
2015-05-30 00:41:09 +01:00
2015-06-28 03:56:41 +01:00
2015-01-01 04:52:17 +00:00
2015-04-17 23:51:32 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-02-17 08:50:34 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-01 12:27:29 +01:00
2015-01-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-05-30 00:41:09 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-04-27 10:55:26 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-04 12:16:04 -07:00
2015-01-01 04:52:17 +00:00
2015-04-22 11:11:26 +01:00
2015-05-30 00:41:09 +01:00
2012-01-09 21:51:59 +01:00
2015-06-25 02:46:07 +01:00
2015-04-30 18:25:01 +01:00
2015-05-23 02:04:24 +01:00
2015-01-01 04:52:17 +00:00
2015-04-22 11:11:19 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-03-27 15:02:35 -07:00
2015-01-01 04:52:17 +00:00
2015-07-01 12:29:59 +01:00
2015-05-30 00:41:09 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-02-17 08:50:34 +01:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-24 19:15:31 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-24 17:04:01 +01:00
2015-07-07 03:26:58 +01:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-07-02 03:53:59 +01:00
2015-06-06 00:46:13 -07:00
2015-06-29 14:18:59 -07:00
2015-02-17 03:03:23 +00:00
2015-04-30 18:25:01 +01:00
2015-06-06 00:46:13 -07:00
2015-05-26 02:16:48 +01:00
2015-01-01 04:52:17 +00:00
2015-05-30 00:41:09 +01:00
2015-06-09 11:46:29 +01:00
2015-03-04 13:24:21 +00:00
2015-01-01 04:52:17 +00:00
2015-05-13 13:48:56 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-04-30 18:25:01 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2012-01-09 21:51:59 +01:00
2015-04-30 18:25:01 +01:00
2015-03-24 10:25:48 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-02 03:53:59 +01:00
2015-02-17 08:50:34 +01:00
2015-01-01 04:52:17 +00:00
2015-04-28 23:07:13 +01:00