Commit 6cd8b6860a for openssl.org
commit 6cd8b6860a3ede721cd609961ee011579d8b93e8
Author: Andrew Dinh <andrewd@openssl.org>
Date: Sun Jul 19 21:14:19 2026 +0700
Port script_33
Assisted-by: Claude:claude-sonnet-5
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Wed Aug 5 03:14:22 2026
(Merged from https://github.com/openssl/openssl/pull/32107)
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index a65a48f753..69a6c76109 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2371,22 +2371,7 @@ err:
/* 33. Fault injection - STREAM frame with illegal offset */
static const struct script_op script_33[] = {
- 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(C_BIDI_ID(0) + 1, 2),
- 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 2879884742..aa7a8ddadc 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -2272,8 +2272,24 @@ DEF_SCRIPT(script_32, "Fault injection - STREAM frame for nonexistent stream")
OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_STREAM_STATE_ERROR, 0, 0);
}
-DEF_SCRIPT(script_33, "place holder for multistrem script_33")
+/* 33. Fault injection - STREAM frame with illegal offset */
+DEF_SCRIPT(script_33, "Fault injection - STREAM frame with illegal offset")
{
+ 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_SET_INJECT_WORD(C_BIDI_ID(0) + 1, 2);
+ OP_WRITE(Sa, "orange", 6);
+
+ OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
}
DEF_SCRIPT(script_34, "place holder for multistrem script_34")