]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: fix risk of memory leak on malformated wrapped frames
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 16:30:05 +0000 (18:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 18:01:14 +0000 (20:01 +0200)
commita0d11b6fd5b6cec3af9a70e38895a665a666ae80
treec98ab7420dbef118bce95e3637d65e00f4cba3eb
parent590a0514f2d36e2e35704654a6588ff7c82871f6
BUG/MEDIUM: h2: fix risk of memory leak on malformated wrapped frames

While parsing a headers frame, if the frame is wrapped in the buffer
and needs to be unwrapped, it will be duplicated before being processed.
But if it contains certain combinations of invalid flags, the parser
returns without releasing the temporary buffer leading to a memory
leak.

This fix needs to be backported to 1.8.
src/mux_h2.c