]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix quic_multistream_test: correct more frame types
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 25 Mar 2025 15:57:32 +0000 (16:57 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 27 Mar 2025 11:16:13 +0000 (12:16 +0100)
There are a few more critical frame injections that
previously created an out-of-diskspace problem
and now only a CI test failure.  The pattern
in the qlog files is always similar to this:

{"frame_type":"stop_sending","stream_id":6,"error_code":1152,"length":4},
{"frame_type":"path_challenge","length":9},...{}

Note: The stream_id 6 is a OSSL_QUIC_FRAME_TYPE_CRYPTO.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27170)

test/quic_multistream_test.c

index b9a09460903b487bd46c7157d0c384c4cc243e1e..cd7584fd7405424be784b6b144fa1dbc413dd3a4 100644 (file)
@@ -2842,9 +2842,12 @@ static int script_21_inject_plain(struct helper *h, QUIC_PKT_HDR *hdr,
 
     switch (h->inject_word1) {
     case OSSL_QUIC_FRAME_TYPE_PATH_CHALLENGE:
+    case OSSL_QUIC_FRAME_TYPE_PATH_RESPONSE:
         if (!TEST_true(WPACKET_put_bytes_u64(&wpkt, (uint64_t)0)))
             goto err;
         break;
+    case OSSL_QUIC_FRAME_TYPE_STOP_SENDING:
+    case OSSL_QUIC_FRAME_TYPE_MAX_STREAM_DATA:
     case OSSL_QUIC_FRAME_TYPE_STREAM_DATA_BLOCKED:
         if (!TEST_true(WPACKET_quic_write_vlint(&wpkt, (uint64_t)0)))
             goto err;