Fix quic_multistream_test: correct more frame types

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)
This commit is contained in:
Bernd Edlinger 2025-03-25 16:57:32 +01:00 committed by Tomas Mraz
parent 7fa51041e4
commit 8ed3eee3b4
1 changed files with 3 additions and 0 deletions

View 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;