Christopher Faulet
e0f8dc576f
BUG/MEDIUM: htx: Catch chunk_memcat() failures when HTX data are formatted to h1
...
In functions htx_*_to_h1(), most of time several calls to chunk_memcat() are
chained. The expected size is always compared to available room in the buffer to
be sure the full copy will succeed. But it is a bit risky because it relies on
the fact the function chunk_memcat() evaluates the available room in the buffer
in a same way than htx ones. And, unfortunately, it does not. A bug in
chunk_memcat() will always leave a byte unused in the buffer. So, for instance,
when a chunk is copied in an almost full buffer, the last CRLF may be skipped.
To fix the issue, we now rely on the result of chunk_memcat() only.
This patch must be backported to 2.0 and 1.9.
2019-10-14 16:42:46 +02:00
..
2019-07-19 09:24:12 +02:00
2019-09-13 10:08:44 +02:00
2019-08-07 10:32:31 +02:00
2019-08-09 11:26:10 +02:00
2019-10-11 16:05:57 +02:00
2019-06-07 19:32:02 +02:00
2019-09-08 12:20:13 +02:00
2019-09-23 18:16:08 +02:00
2019-01-14 19:32:15 +01:00
2018-11-26 19:50:32 +01:00
2019-10-07 14:21:30 +02:00
2019-08-22 20:21:00 +02:00
2019-07-16 15:23:09 +02:00
2019-10-10 11:30:07 +02:00
2019-10-10 11:30:07 +02:00
2019-01-02 20:12:44 +01:00
2019-09-24 10:59:55 +02:00
2019-06-07 15:37:47 +02:00
2019-09-23 18:16:08 +02:00
2019-05-20 21:14:14 +02:00
2019-09-06 17:50:36 +02:00
2019-07-19 09:24:12 +02:00
2019-10-11 16:37:41 +02:00
2019-06-11 09:54:12 +02:00
2019-10-01 15:50:50 +02:00
2019-09-06 19:09:56 +02:00
2019-09-23 19:08:39 +02:00
2019-09-06 19:09:56 +02:00
2019-09-06 19:09:56 +02:00
2019-09-06 19:09:56 +02:00
2019-09-27 22:48:27 +02:00
2019-09-17 10:18:54 +02:00
2019-09-05 09:31:18 +02:00
2019-09-10 10:29:54 +02:00
2019-09-17 10:18:54 +02:00
2019-09-26 16:51:02 +02:00
2019-07-19 09:24:12 +02:00
2017-10-31 18:01:18 +01:00
2019-07-19 13:50:09 +02:00
2019-10-09 11:05:31 +02:00
2019-09-04 10:30:11 +02:00
2019-10-09 11:10:19 +02:00
2019-09-24 14:58:45 +02:00
2018-03-21 05:04:01 +01:00
2019-06-10 09:42:43 +02:00
2019-10-10 11:30:07 +02:00
2019-09-30 04:11:36 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2018-11-26 19:50:32 +01:00
2019-07-19 09:24:12 +02:00
2019-10-10 11:30:07 +02:00
2018-11-26 19:50:32 +01:00
2019-09-17 10:18:54 +02:00
2019-10-09 11:05:31 +02:00
2019-07-19 09:24:12 +02:00
2019-10-09 11:05:31 +02:00
2019-10-14 16:42:46 +02:00
2019-08-01 11:35:29 +02:00
2019-07-05 14:26:15 +02:00
2019-09-06 17:13:44 +02:00
2019-05-27 10:29:59 +02:00
2019-03-11 17:02:38 +01:00
2019-09-24 06:57:32 +02:00
2019-09-17 10:18:54 +02:00
2016-01-11 07:31:35 +01:00
2015-02-03 00:24:16 +01:00
2019-08-09 11:26:10 +02:00
2019-07-09 10:40:33 +02:00
2019-10-08 16:28:30 +02:00
2019-10-08 16:28:30 +02:00
2019-10-11 17:00:04 +02:00
2019-08-16 16:11:56 +02:00
2019-07-15 16:43:16 +02:00
2019-06-22 07:57:56 +02:00
2019-09-25 23:33:52 +02:00
2019-06-16 18:40:33 +02:00
2019-07-19 09:24:12 +02:00
2019-08-09 11:26:10 +02:00
2019-04-15 21:55:48 +02:00
2019-07-24 16:45:02 +02:00
2019-09-06 17:50:36 +02:00
2016-04-14 11:18:22 +02:00
2019-09-06 17:50:36 +02:00
2019-07-24 16:45:02 +02:00
2019-09-23 18:16:08 +02:00
2019-07-30 14:02:06 +02:00
2019-09-06 17:50:36 +02:00
2019-05-07 06:58:15 +02:00
2019-08-30 15:07:25 +02:00
2019-09-13 04:43:33 +02:00
2019-09-23 18:16:08 +02:00
2019-07-31 14:12:55 +02:00
2019-04-01 07:44:56 +02:00
2018-12-02 18:40:29 +01:00
2018-12-02 18:39:52 +01:00
2019-09-26 08:13:38 +02:00
2019-10-14 15:07:44 +02:00
2019-08-27 17:14:19 +02:00
2019-10-11 16:39:00 +02:00
2019-09-13 15:46:46 +02:00
2019-09-24 10:04:19 +02:00
2019-09-27 08:48:21 +02:00
2019-10-11 16:37:41 +02:00
2019-07-19 09:24:12 +02:00
2019-09-26 08:13:38 +02:00
2019-08-30 07:39:59 +02:00
2019-10-10 11:30:07 +02:00
2019-07-19 09:24:12 +02:00
2019-01-04 18:20:32 +01:00
2019-07-31 19:35:31 +02:00
2019-07-19 09:24:12 +02:00
2019-06-14 14:42:29 +02:00
2019-04-01 07:44:56 +02:00