mirror of https://github.com/openssl/openssl.git
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)
This commit is contained in:
parent
2d70cc9cec
commit
c5cc9c419a
|
@ -247,7 +247,7 @@ static int buf2hexstr_sep(char *str, size_t str_n, size_t *strlength,
|
||||||
*q = CH_ZERO;
|
*q = CH_ZERO;
|
||||||
|
|
||||||
#ifdef CHARSET_EBCDIC
|
#ifdef CHARSET_EBCDIC
|
||||||
ebcdic2ascii(str, str, q - str - 1);
|
ebcdic2ascii(str, str, q - str);
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue