Commit 4a301dcdc9 for openssl.org
commit 4a301dcdc9459131fc2122c8619a7eb868d2a92a
Author: Andrew Dinh <andrewd@openssl.org>
Date: Sat Sep 5 09:43:23 2026 -0400
Port script_63
Assisted-by: Claude:claude-sonnet-5
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
Merge-date: Tue Sep 15 09:39:48 2026
Merged-from: https://github.com/openssl/openssl/pull/32734
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 4513c612f9..0fed55749e 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2551,22 +2551,7 @@ static const struct script_op script_62[] = {
/* 63. Fault injection - STREAM frame exceeding stream limit */
static const struct script_op script_63[] = {
- OP_S_SET_INJECT_PLAIN(script_32_inject_plain),
- OP_C_SET_ALPN("ossltest"),
- OP_C_CONNECT_WAIT(),
- OP_C_SET_DEFAULT_STREAM_MODE(SSL_DEFAULT_STREAM_MODE_NONE),
-
- OP_C_NEW_STREAM_BIDI(a, C_BIDI_ID(0)),
- OP_C_WRITE(a, "apple", 5),
-
- OP_S_BIND_STREAM_ID(a, C_BIDI_ID(0)),
- OP_S_READ_EXPECT(a, "apple", 5),
-
- OP_SET_INJECT_WORD(S_BIDI_ID(5000) + 1, 4),
- OP_S_WRITE(a, "orange", 6),
-
- OP_C_EXPECT_CONN_CLOSE_INFO(OSSL_QUIC_ERR_STREAM_LIMIT_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 5edc99ef15..023676d7bd 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -3663,8 +3663,26 @@ DEF_SCRIPT(script_62, "Fault injection - STOP_SENDING with high ID")
OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_STREAM_STATE_ERROR, 0, 0);
}
-DEF_SCRIPT(script_63, "place holder for multistrem script_63")
+/* 63. Fault injection - STREAM frame exceeding stream limit */
+DEF_SCRIPT(script_63, "Fault injection - STREAM frame exceeding stream limit")
{
+ OP_SIMPLE_PAIR_CONN_ND();
+ OP_ACCEPT_CONN_WAIT_ND(L, S, 0);
+
+ OP_SET_INJECT_PLAIN(S, inject_stream_data_frame_plain);
+
+ OP_NEW_STREAM(C, Ca, 0 /* bidirectional */);
+ OP_WRITE(Ca, "apple", 5);
+
+ OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
+ OP_READ_EXPECT(Sa, "apple", 5);
+
+ OP_ENGINE_TICK_DISABLE(S);
+ OP_SET_INJECT_WORD(S_BIDI_ID(5000) + 1, 4);
+ OP_WRITE(Sa, "orange", 6);
+ OP_ENGINE_TICK_ENABLE(S);
+
+ OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_STREAM_LIMIT_ERROR, 0, 0);
}
DEF_SCRIPT(script_64, "place holder for multistrem script_64")