Commit 2f3e595529 for openssl.org
commit 2f3e5955299f7323976b3a514b96c9dd06ec5aba
Author: Andrew Dinh <andrewd@openssl.org>
Date: Mon Aug 3 10:00:21 2026 +0700
Port script_47
Assisted-by: Claude:claude-sonnet-5
Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Merge-date: Wed Sep 2 06:32:32 2026
Merged-from: https://github.com/openssl/openssl/pull/32335
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 75071bdd25..ca76184ab7 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2673,20 +2673,7 @@ static const struct script_op script_46[] = {
/* 47. Fault injection - ACK - malformed subsequent range */
static const struct script_op script_47[] = {
- OP_S_SET_INJECT_PLAIN(script_46_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(2, 0),
-
- OP_S_WRITE(a, "Strawberry", 10),
-
- 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 1ea3f63dfe..bbd409c499 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -3025,8 +3025,22 @@ DEF_SCRIPT(script_46, "Fault injection - ACK - malformed initial range")
OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
}
-DEF_SCRIPT(script_47, "place holder for multistrem script_47")
+DEF_SCRIPT(script_47, "Fault injection - ACK - malformed subsequent range")
{
+ OP_SIMPLE_PAIR_CONN();
+ OP_ACCEPT_CONN_WAIT(L, S, 0);
+
+ OP_SET_INJECT_PLAIN(S, inject_malformed_ack_plain);
+
+ OP_WRITE(C, "apple", 5);
+ OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
+ OP_READ_EXPECT(Sa, "apple", 5);
+
+ OP_SET_INJECT_WORD(2, 0);
+
+ OP_WRITE(Sa, "Strawberry", 10);
+
+ OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
}
DEF_SCRIPT(script_48, "place holder for multistrem script_48")