]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h3: do not crash on invalid response status code
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Jan 2024 12:47:44 +0000 (13:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Jan 2024 14:38:51 +0000 (15:38 +0100)
commit5d2fe1871a1ec4ec68a8ed262f4526e02e8e9fc1
tree6ebdb62c784fd839586c8876db036785888ec9e5
parentdf5cf9123fff25eaa8693b97e5c219827bd45581
BUG/MEDIUM: h3: do not crash on invalid response status code

A crash occurs in h3_resp_headers_send() if an invalid response code is
received from the backend side. Fix this by properly flagging the
connection on error. This will cause a CONNECTION_CLOSE.

This should fix github issue #2422.

Big thanks to ygkim (@yokim-git) for his help and reactivity. Initially,
GDB reported an invalid code source location due to heavy functions
inlining inside h3_snd_buf(). The issue was found after using -Og flag.

This must be backported up to 2.6.
src/h3.c