]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix off-by-one overflow in the AST resubmit
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 11:55:31 +0000 (19:55 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:02:26 +0000 (19:02 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28811)

apps/lib/vms_term_sock.c

index 219a978966c767c8557c0dae68b2c57e275715fb..36a851a7e54622074315b8d227cb8c3ffb188b96 100644 (file)
@@ -529,7 +529,7 @@ static int TerminalDeviceAst (int astparm)
                       TerminalDeviceAst,
                       0,
                       TerminalDeviceBuff,
-                      sizeof(TerminalDeviceBuff) - 1,
+                      sizeof(TerminalDeviceBuff) - 2,
                       0, 0, 0, 0);
 
     /*