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
..
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-05-11 23:02:16 +01:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +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-14 12:20:32 +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-14 12:20:32 +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-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +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-07-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-06-06 14:27:54 +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-14 17:38:12 +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-14 12:20:32 +00:00
2015-07-02 19:15:08 +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-14 12:20:32 +00:00
2015-02-03 02:19:54 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-05-11 23:02:16 +01:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-07-03 13:02:21 +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-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-06-24 17:04: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-01-01 04:52:17 +00:00
2015-01-31 17:39:04 +01:00
2015-07-07 03:26:58 +01:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-10 21:18:33 +00:00
2015-01-01 04:52:17 +00:00
2015-07-03 13:02:21 +01:00
2015-07-03 13:02:21 +01:00
2015-07-03 13:02:21 +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-14 12:20:32 +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-05-11 23:02:16 +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-31 17:39:04 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +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-14 12:20:32 +00:00
2015-05-11 23:02:16 +01:00
2015-01-14 12:20:32 +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-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-06-25 14:10:47 +01:00
2015-01-01 04:52:17 +00:00
2015-05-11 23:02:16 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-03-04 13:24:21 +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-03 13:02:21 +01:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +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-14 12:20:32 +00:00
2015-01-01 04:52:17 +00:00
2015-01-14 12:20:32 +00:00
2015-01-14 12:20:32 +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-01 15:38:23 +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-06 14:27:54 +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-03-10 12:30:33 +00:00