]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: fix wrong potential NULL dereference
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 4 Aug 2023 13:34:34 +0000 (15:34 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 4 Aug 2023 13:42:34 +0000 (15:42 +0200)
commitf40a72a7fffe5a926d8a01547fa19a686fe591b5
treec0fa7b6d84a409dcc6a61c5c1572b37c3ed5e5f3
parentf59635c49513f0411e0e9a6f54c0034a91ab3adc
BUILD: quic: fix wrong potential NULL dereference

GCC warns about a possible NULL dereference when requeuing a datagram on
the connection socket. This happens due to a MT_LIST_POP to retrieve a
rxbuf instance.

In fact, this can never be NULL there is enough rxbuf allocated for each
thread. Once a thread has finished to work with it, it must always
reappend it.

This issue was introduced with the following patch :
  commit b34d353968db7f646e83871cb6b21a246af84ddc
  BUG/MEDIUM: quic: consume contig space on requeue datagram
As such, it must be backported in every version with the above commit.

This should fix the github CI compilation error.
src/quic_sock.c