From: Olivier Houchard Date: Fri, 7 Dec 2018 23:18:31 +0000 (+0100) Subject: BUG/MEDIUM: h2: Don't try to chunk data when using HTX. X-Git-Tag: v1.9-dev10~4 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=50d660c54599db6ef05b267ac1e062d3718b035f;p=haproxy.git BUG/MEDIUM: h2: Don't try to chunk data when using HTX. When we're using HTX, we don't have to generate chunk header/trailers, and that ultimately leads to a crash when we try to access a buffer that contains just chunk trailers. This should not be backported. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 2c8d1cc96..b0b891a07 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3101,7 +3101,7 @@ static int h2s_decode_headers(struct h2s *h2s) /* a payload is present */ if (msgf & H2_MSGF_BODY_CL) h2s->flags |= H2_SF_DATA_CLEN; - else if (!(msgf & H2_MSGF_BODY_TUNNEL)) + else if (!(msgf & H2_MSGF_BODY_TUNNEL) && !htx) h2s->flags |= H2_SF_DATA_CHNK; }