Willy Tarreau
07d47060e0
BUG/MINOR: cfgparse: report extraneous args *after* the string is allocated
...
The config parser change in commit 9e1758efb ("BUG/MEDIUM: cfgparse: use
parse_line() to expand/unquote/unescape config lines") is wrong when
displaying the last parsed word, because it doesn't verify that the output
string was properly allocated. This may fail in two cases:
- very first line (outline is NULL, as in oss-fuzz issue 23657)
- much longer line than previous ones, requiring a realloc(), in which
case the final 0 is out of the allocated space.
This patch moves the reporting after the allocation check to fix this.
No backport is needed, this is 2.2 only.
2020-06-25 09:43:27 +02:00
..
2020-06-11 10:18:59 +02:00
2020-06-11 16:49:37 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:56 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:56 +02:00
2020-06-19 11:37:30 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2020-06-25 09:43:27 +02:00
2020-06-11 10:18:58 +02:00
2020-06-12 16:18:02 +02:00
2020-06-11 10:18:59 +02:00
2020-06-23 10:04:54 +02:00
2020-06-14 08:00:19 +02:00
2020-06-17 17:00:51 +02:00
2020-06-11 10:18:59 +02:00
2020-06-24 12:21:26 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-11 09:31:11 +02:00
2020-06-16 11:30:33 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-23 10:04:54 +02:00
2020-06-11 10:18:59 +02:00
2020-06-22 11:35:55 +02:00
2020-06-11 10:18:59 +02:00
2020-06-23 10:04:54 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:58 +02:00
2020-06-22 11:52:04 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-06-24 09:57:18 +02:00
2020-06-11 10:18:56 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 16:49:37 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-23 05:58:20 +02:00
2020-06-11 10:18:59 +02:00
2020-06-15 18:16:19 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-16 17:41:32 +02:00
2020-06-11 10:18:57 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2016-01-11 07:31:35 +01:00
2020-06-11 10:18:59 +02:00
2020-06-19 16:57:51 +02:00
2020-06-11 10:18:59 +02:00
2020-06-19 17:42:42 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-19 16:57:51 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 16:49:37 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-12 16:15:44 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 11:22:44 +02:00
2020-06-11 10:18:58 +02:00
2019-04-01 07:44:56 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-24 16:52:22 +02:00
2020-06-24 01:00:52 +02:00
2020-06-11 10:18:59 +02:00
2020-06-24 09:57:18 +02:00
2020-06-11 10:18:58 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-19 17:42:42 +02:00
2020-06-17 20:52:29 +02:00
2020-06-24 12:21:26 +02:00
2020-06-15 18:16:20 +02:00
2020-06-11 16:49:37 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-25 09:43:27 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-15 18:51:11 +02:00
2020-06-16 23:36:04 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:59 +02:00
2020-06-11 10:18:58 +02:00
2019-04-01 07:44:56 +02:00