Commit 53767ab5de for openssl.org
commit 53767ab5de82cc7e0ff30abc2defbccf31215f48
Author: Andrew Dinh <andrewd@openssl.org>
Date: Mon Aug 3 10:12:00 2026 +0700
Port script_49
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:34 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 c5e0075405..e1995dfa6b 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -2685,24 +2685,7 @@ static const struct script_op script_48[] = {
/* 49. Fault injection - ACK - fictional PN */
static const struct script_op script_49[] = {
- 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(4, 0),
-
- OP_S_WRITE(a, "Strawberry", 10),
- /*
- * The injected ACK acknowledges a packet number we have not sent, which the
- * peer is expected to treat as a PROTOCOL_VIOLATION, so the connection is
- * closed rather than the stream data being delivered.
- */
- OP_C_EXPECT_CONN_CLOSE_INFO(OSSL_QUIC_ERR_PROTOCOL_VIOLATION, 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 4a16eae36b..b79121276f 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -3061,8 +3061,26 @@ DEF_SCRIPT(script_48, "Fault injection - ACK - malformed subsequent range")
OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
}
-DEF_SCRIPT(script_49, "place holder for multistrem script_49")
+DEF_SCRIPT(script_49, "Fault injection - ACK - fictional PN")
{
+ 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(4, 0);
+
+ OP_WRITE(Sa, "Strawberry", 10);
+ /*
+ * The injected ACK acknowledges a packet number we have not sent, which the
+ * peer is expected to treat as a PROTOCOL_VIOLATION, so the connection is
+ * closed rather than the stream data being delivered.
+ */
+ OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_PROTOCOL_VIOLATION, 0, 0);
}
DEF_SCRIPT(script_50, "place holder for multistrem script_50")