diff options
author | shridhar kalavagunta <coolshrid@hotmail.com> | 2024-01-26 21:10:32 -0600 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-03-01 10:51:04 +0100 |
commit | 0c78270e7bb1757348cbe23a132fcce34af1cdfe (patch) | |
tree | 8128437a8a0dc0ad2c4c71af4afa0fd41eaeaad8 | |
parent | 662d72c2aeac49d6fe06026e87cac45b28c60cf4 (diff) |
Fix off by one issue in buf2hexstr_sep()
Fixes #23363
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23404)
(cherry picked from commit c5cc9c419a0a8d97a44f01f95f0e213f56da4574)
-rw-r--r-- | crypto/o_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/o_str.c b/crypto/o_str.c index 3354ce0927..f9e04f22ed 100644 --- a/crypto/o_str.c +++ b/crypto/o_str.c @@ -251,7 +251,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; } |