]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Crash from trace dumping SSL eary data status (AWS-LC)
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 2 Sep 2024 07:36:19 +0000 (09:36 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 2 Sep 2024 08:01:41 +0000 (10:01 +0200)
commitdb13df3d6e64e9993b90f048734538491082cbed
treeecc46a08625c68cc8cd8bb5eda25f53d0b3c546d
parent20efb856e113e3049a02db844f5498bca4bc382a
BUG/MINOR: quic: Crash from trace dumping SSL eary data status (AWS-LC)

This bug follows this patch:
     MINOR: quic: Add trace for QUIC_EV_CONN_IO_CB event.
where a new third variable was added to be dumped from QUIC_EV_CONN_IO_CB trace
event. The quic_trace() code did not reveal there was already another variable
passed as third argument but not dumped. This leaded to crash when dereferencing
a point to an int in place of a point to an SSL object.

This issue was reproduced only by handshakecorruption aws-lc interop test with
s2n-quic as client.

Note that this patch must be backported with this one:
     BUG/MEDIUM: quic: always validate sender address on 0-RTT
which depends on the commit mentionned above.
src/quic_ssl.c
src/quic_trace.c