]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: fix possible invalid dereference on htx parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Dec 2021 14:51:04 +0000 (15:51 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Dec 2021 14:52:59 +0000 (15:52 +0100)
commit7059ebc095a563536095028dd9889e5aaba6c2c6
tree5f527ab224516d444d8e265b358a072c14485b97
parenta842ca1fcab63405c4894c8973fef6885af3edb2
MINOR: h3: fix possible invalid dereference on htx parsing

The htx variable is only initialized if we have received a HTTP/3
HEADERS frame. Else it must not be dereferenced.

This should fix the compilation on CI with gcc.
  src/h3.c: In function ‘h3_decode_qcs’:
  src/h3.c:224:14: error: ‘htx’ may be used uninitialized in this function
  [-Werror=maybe-uninitialized]
    224 |   htx->flags |= HTX_FL_EOM
src/h3.c