mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 20:02:17 -04:00
MINOR: mux_quic: do not crash on unhandled QMux frame reception
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
Completes qmux_parse_frm() to ensure every frames allowed by QMux protocol are listed. For now, nothing is implemented except a CHECK_IF() to report such events. This is necessary to prevent a crash on abort. Frames not supported by QMux should already have been rejected prior via qmux_is_frm_valid().
This commit is contained in:
parent
f9d4d659a4
commit
3fab21ea42
1 changed files with 9 additions and 0 deletions
|
|
@ -95,8 +95,17 @@ static int qmux_parse_frm(struct qcc *qcc, struct buffer *buf)
|
|||
frm.type == QUIC_FT_STREAMS_BLOCKED_BIDI ||
|
||||
frm.type == QUIC_FT_STREAMS_BLOCKED_UNI) {
|
||||
/* TODO */
|
||||
CHECK_IF("received flow control blocked frame not yet handled in QMux");
|
||||
}
|
||||
else if (frm.type == QUIC_FT_PADDING) {
|
||||
CHECK_IF("received padding frame not yet handled in QMux");
|
||||
}
|
||||
else if (frm.type == QUIC_FT_CONNECTION_CLOSE ||
|
||||
frm.type == QUIC_FT_CONNECTION_CLOSE_APP) {
|
||||
CHECK_IF("received connection_close frame not yet handled in QMux");
|
||||
}
|
||||
else {
|
||||
/* qmux_is_frm_valid() must prevent this */
|
||||
ABORT_NOW();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue