Skip to content

Commit

Permalink
Fix off by one issue in buf2hexstr_sep()
Browse files Browse the repository at this point in the history
Fixes #23363

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23404)
  • Loading branch information
coolshrid authored and t8m committed Mar 1, 2024
1 parent 2d70cc9 commit c5cc9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/o_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5cc9c4

Please sign in to comment.