Commit 26d762a108 for openssl.org

commit 26d762a108e532bb0ca8d510e5d56ac9718dd02d
Author: Andrew Dinh <andrewd@openssl.org>
Date:   Thu Aug 20 17:02:48 2026 +0700

    Fix tick race in radix fault-injection scripts

    Guard any `OP_SET_INJECT_WORD`+`OP_WRITE` with 2 new functions `OP_ENGINE_TICK_ENABLE`/`OP_ENGINE_TICK_DISABLE` that enable/disable ticking in the QUIC engine. Otherwise, the radix test interpreter can tick between the 2 ops and cause the peer to close the connection prematurely

    Reviewed-by: Saša NedvÄ›dický <sashan@openssl.org>
    Reviewed-by: Norbert Pocs <norbertp@openssl.org>
    Merge-date: Wed Sep  2 06:32:35 2026
    Merged-from: https://github.com/openssl/openssl/pull/32335

diff --git a/test/radix/quic_tests.c b/test/radix/quic_tests.c
index b79121276f..928a65a6b2 100644
--- a/test/radix/quic_tests.c
+++ b/test/radix/quic_tests.c
@@ -3018,9 +3018,10 @@ DEF_SCRIPT(script_46, "Fault injection - ACK - malformed initial range")
     OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
     OP_READ_EXPECT(Sa, "apple", 5);

+    OP_ENGINE_TICK_DISABLE(S);
     OP_SET_INJECT_WORD(1, 0);
-
     OP_WRITE(Sa, "Strawberry", 10);
+    OP_ENGINE_TICK_ENABLE(S);

     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }
@@ -3036,9 +3037,10 @@ DEF_SCRIPT(script_47, "Fault injection - ACK - malformed subsequent range")
     OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
     OP_READ_EXPECT(Sa, "apple", 5);

+    OP_ENGINE_TICK_DISABLE(S);
     OP_SET_INJECT_WORD(2, 0);
-
     OP_WRITE(Sa, "Strawberry", 10);
+    OP_ENGINE_TICK_ENABLE(S);

     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }
@@ -3054,9 +3056,10 @@ DEF_SCRIPT(script_48, "Fault injection - ACK - malformed subsequent range")
     OP_ACCEPT_STREAM_WAIT(S, Sa, 0);
     OP_READ_EXPECT(Sa, "apple", 5);

+    OP_ENGINE_TICK_DISABLE(S);
     OP_SET_INJECT_WORD(3, 0);
-
     OP_WRITE(Sa, "Strawberry", 10);
+    OP_ENGINE_TICK_ENABLE(S);

     OP_EXPECT_CONN_CLOSE_INFO(C, OSSL_QUIC_ERR_FRAME_ENCODING_ERROR, 0, 0);
 }