mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: quic: Possible frame parsers array overrun
This should fix CID 1469663 for GH #1546.
This commit is contained in:
parent
59509b5187
commit
0c80e69470
@ -1094,7 +1094,7 @@ int qc_parse_frm(struct quic_frame *frm, struct quic_rx_packet *pkt,
|
||||
}
|
||||
|
||||
frm->type = *(*buf)++;
|
||||
if (frm->type > QUIC_FT_MAX) {
|
||||
if (frm->type >= QUIC_FT_MAX) {
|
||||
TRACE_DEVEL("wrong frame type", QUIC_EV_CONN_PRSFRM, qc, frm);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user