Skip to content

Commit

Permalink
QUIC WIRE: Refuse integer transport params with trailing body bytes
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #22523)

(cherry picked from commit 05937a7)
  • Loading branch information
hlandau authored and t8m committed Nov 2, 2023
1 parent 3c7c486 commit cecc05c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssl/quic/quic_wire.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,9 @@ int ossl_quic_wire_decode_transport_param_int(PACKET *pkt,
if (!PACKET_get_quic_vlint(&sub, value))
return 0;

if (PACKET_remaining(&sub) > 0)
return 0;

return 1;
}

Expand Down

0 comments on commit cecc05c

Please sign in to comment.