Pádraig Brady
a39641cbb8
tac: fix mem corruption when failing to read non seekable inputs
...
This was detected with ASAN, but can also be seen without ASAN with:
$ tac - - <&-
tac: standard input: read error: Bad file descriptor
*** Error in `tac': malloc(): memory corruption: 0x...
* src/tac.c (copy_to_temp): Don't close our output stream on
(possibly transient) output error, or on input error.
(temp_stream): clearerr() on the stream about to be reused,
to ensure future stream use is not impacted by transient errors.
* tests/misc/tac-2-nonseekable.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/25041
2016-11-28 13:19:24 +00:00
..
2016-01-01 14:10:41 +00:00
2016-11-27 01:20:09 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-10 01:51:27 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-01-01 14:10:41 +00:00
2016-11-22 22:03:47 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:34:18 +01:00
2016-01-13 10:59:56 +00:00
2016-09-08 01:00:23 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-16 01:58:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-11-13 08:26:19 -08:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-18 18:29:47 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-01-13 10:59:55 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-15 14:14:06 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:24 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-10-26 20:42:30 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-11-13 17:09:57 -08:00
2016-05-14 12:41:43 +01:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-24 16:21:59 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-07-02 18:08:33 -04:00
2016-04-24 18:19:50 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-14 12:39:28 +02:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-19 16:08:59 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-26 15:38:08 -08:00
2016-04-21 19:41:58 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-05-31 21:29:52 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-15 21:29:10 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-11-07 17:12:39 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-06 15:20:49 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-11-28 13:19:24 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-02-23 01:05:10 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-09-19 12:48:32 -07:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:41:58 +01:00
2016-11-13 08:26:19 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-06-24 01:09:28 +01:00