From: shridhar kalavagunta Date: Sat, 27 Jan 2024 03:10:32 +0000 (-0600) Subject: Fix off by one issue in buf2hexstr_sep() X-Git-Tag: openssl-3.3.0-alpha1~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5cc9c419a0a8d97a44f01f95f0e213f56da4574;p=thirdparty%2Fopenssl.git Fix off by one issue in buf2hexstr_sep() Fixes #23363 Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23404) --- diff --git a/crypto/o_str.c b/crypto/o_str.c index f1aacda5e35..ce60f3b95c0 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -247,7 +247,7 @@ static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlength, *q = CH_ZERO; #ifdef CHARSET_EBCDIC - ebcdic2ascii(str, str, q - str - 1); + ebcdic2ascii(str, str, q - str); #endif return 1; }