From: Andrew Dinh Date: Sat, 18 Jul 2026 11:56:23 +0000 (+0700) Subject: Port script_25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfd0160321a526fcbdf46174c75e1239af981c17;p=thirdparty%2Fopenssl.git Port script_25 Assisted-by: Claude:claude-sonnet-5 Reviewed-by: Neil Horman Reviewed-by: Saša Nedvědický MergeDate: Sat Aug 1 12:44:36 2026 (Merged from https://github.com/openssl/openssl/pull/32023) --- diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index 611ced15013..77890576c6f 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -2254,20 +2254,7 @@ static const struct script_op script_24[] = { /* 25. Fault injection - excess value of MAX_STREAMS_UNI */ static const struct script_op script_25[] = { - OP_S_SET_INJECT_PLAIN(script_24_inject_plain), - OP_C_SET_ALPN("ossltest"), - OP_C_CONNECT_WAIT(), - - OP_C_WRITE(DEFAULT, "apple", 5), - OP_S_BIND_STREAM_ID(a, C_BIDI_ID(0)), - OP_S_READ_EXPECT(a, "apple", 5), - - OP_SET_INJECT_WORD(1, OSSL_QUIC_FRAME_TYPE_MAX_STREAMS_UNI), - - OP_S_WRITE(a, "orange", 6), - - OP_C_EXPECT_CONN_CLOSE_INFO(OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0), - + /* test moved to test/radix/quic_tests.c */ OP_END }; diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c index 5d1cb62fb25..95f83714d12 100644 --- a/test/radix/quic_tests.c +++ b/test/radix/quic_tests.c @@ -1972,8 +1972,23 @@ DEF_SCRIPT(script_24, "Fault injection - excess value of MAX_STREAMS_BIDI") OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0); } -DEF_SCRIPT(script_25, "place holder for multistrem script_25") +/* 25. Fault injection - excess value of MAX_STREAMS_UNI */ +DEF_SCRIPT(script_25, "Fault injection - excess value of MAX_STREAMS_UNI") { + OP_SIMPLE_PAIR_CONN(); + OP_ACCEPT_CONN_WAIT(L, S, 0); + + OP_SET_INJECT_PLAIN(S, script_24_inject_plain); + + OP_WRITE(C, "apple", 5); + OP_ACCEPT_STREAM_WAIT(S, Sa, 0); + OP_READ_EXPECT(Sa, "apple", 5); + + OP_SET_INJECT_WORD(1, OSSL_QUIC_FRAME_TYPE_MAX_STREAMS_UNI); + + OP_WRITE(Sa, "orange", 6); + + OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0); } DEF_SCRIPT(script_26, "place holder for multistrem script_26")