]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h1: Don't parse chunks CRLF if not enough data are available
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 12:12:27 +0000 (14:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Apr 2019 13:53:23 +0000 (15:53 +0200)
commit22c57bef56f7261c57d68e330e82f5de43f1de5b
treeae772e04b4833a38ff28737e3866eef5bd234599
parente1afd4fec6643685eb318da4a929ceae6c8599f8
BUG/MEDIUM: h1: Don't parse chunks CRLF if not enough data are available

As specified in the function comment, the function h1_skip_chunk_crlf() must not
change anything and return zero if not enough data are available. This must
include the case where there is no data at all. On this point, it must do the
same that other h1 parsing functions. This bug is made visible since the commit
91f77d599 ("BUG/MINOR: mux-h1: Process input even if the input buffer is
empty").

This patch must be backported to 1.9.
include/common/h1.h