summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_rx_depack.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-06-06 16:25:12 +0100
committerPauli <pauli@openssl.org>2023-07-17 08:17:57 +1000
commite26dc8e3d54a414ba9dc85f54e13112617e32556 (patch)
tree49b3ec5dad53c98231bd7265ef528ab530f7b026 /ssl/quic/quic_rx_depack.c
parent3ffb7d104f618262175283f26275b8be61e27467 (diff)
QUIC Conformance: Frame Handling Tests
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21135)
Diffstat (limited to 'ssl/quic/quic_rx_depack.c')
-rw-r--r--ssl/quic/quic_rx_depack.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ssl/quic/quic_rx_depack.c b/ssl/quic/quic_rx_depack.c
index 11404f3146..58d2fc4596 100644
--- a/ssl/quic/quic_rx_depack.c
+++ b/ssl/quic/quic_rx_depack.c
@@ -515,21 +515,6 @@ static int depack_do_frame_stream(PACKET *pkt, QUIC_CHANNEL *ch,
return 0;
}
- /*
- * RFC 9000 s. 19.8: "The largest offset delivered on a stream -- the sum of
- * the offset and data length -- cannot exceed 2**62 - 1, as it is not
- * possible to provide flow control credit for that data. Receipt of a frame
- * that exceeds this limit MUST be treated as a connection error of type
- * FRAME_ENCODING_ERROR or FLOW_CONTROL_ERROR."
- */
- if (frame_data.offset + frame_data.len > (((uint64_t)1) << 62) - 1) {
- ossl_quic_channel_raise_protocol_error(ch,
- QUIC_ERR_FRAME_ENCODING_ERROR,
- frame_type,
- "oversize stream");
- return 0;
- }
-
switch (stream->recv_state) {
case QUIC_RSTREAM_STATE_RECV:
case QUIC_RSTREAM_STATE_SIZE_KNOWN: