Pádraig Brady
5958bb44c4
maint: avoid a static analysis warning in csplit
...
The Canalyze static code analyzer correctly surmised
that there is a use-after-free bug in free_buffer()
at the line "struct line *n = l->next", if that
function is called multiple times.
This is not a runtime issue since a list of lines
will not be present in the !lines_found case.
* src/csplit.c (free_buffer): Set list head to NULL so
that this function can be called multiple times.
(load_buffer): Remove a redundant call to free_buffer().
Reported-by: Xu Zhongxing
2012-06-26 11:27:32 +01:00
..
2012-06-06 22:33:08 +02:00
2012-01-09 21:50:08 +01:00
2012-03-07 12:59:00 +00:00
2009-08-25 09:21:00 +02:00
2012-05-08 02:18:39 +01:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-04-16 15:12:02 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-28 02:50:11 +01:00
2012-05-08 02:18:39 +01:00
2012-05-07 13:39:48 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2008-11-20 10:21:52 +01:00
2012-01-27 11:35:24 +01:00
2012-06-26 11:27:32 +01:00
2012-05-02 10:31:47 +02:00
2012-01-09 21:51:59 +01:00
2012-01-27 11:35:24 +01:00
2012-06-22 12:16:04 +01:00
2012-01-27 11:35:24 +01:00
2012-01-11 09:27:50 +01:00
2012-05-21 17:01:20 +02:00
2012-03-10 19:53:06 +00:00
2012-01-27 11:35:24 +01:00
2012-05-10 11:02:42 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-05-02 10:31:47 +02:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2011-07-15 10:55:04 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-05-16 07:39:09 +02:00
2012-01-27 11:35:24 +01:00
2012-01-07 16:54:26 +01:00
2012-05-20 17:29:32 +02:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-06-05 22:41:06 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-20 17:29:32 +02:00
2012-05-02 10:31:47 +02:00
2012-05-02 10:31:53 +02:00
2012-05-02 10:31:47 +02:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-03-22 20:51:20 +00:00
2012-01-27 11:35:24 +01:00
2012-05-12 16:19:38 +02:00
2012-01-09 21:51:59 +01:00
2012-06-06 22:33:08 +02:00
2012-01-09 21:51:59 +01:00
2012-01-27 11:35:24 +01:00
2012-06-22 11:17:38 +01:00
2012-06-22 11:17:38 +01:00
2012-05-21 17:01:54 +02:00
2012-03-26 07:38:37 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-05-10 11:02:42 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-03-22 20:34:57 +00:00
2012-03-22 20:34:57 +00:00
2012-03-22 20:34:57 +00:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-02-16 14:54:49 +01:00
2012-01-27 11:35:24 +01:00
2012-05-02 10:31:53 +02:00
2012-01-11 09:27:50 +01:00
2012-01-07 16:54:26 +01:00
2012-01-09 21:51:59 +01:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-06-20 08:12:17 +02:00
2012-06-22 11:34:21 +01:00
2012-06-01 09:15:37 +02:00
2012-01-09 21:50:08 +01:00
2012-06-12 16:32:12 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-06-22 11:17:38 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-02-29 15:41:15 +00:00
2012-06-22 11:17:38 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-06-22 11:17:38 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:51:59 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-05-02 10:31:47 +02:00
2012-01-27 11:35:24 +01:00
2012-05-02 10:31:47 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00