14 Star 0 Fork 12

ocs-commit/openssl

forked from OpenCloudOS Stream/openssl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
d44aa28b0db3ba355fe68c5971c90c9a1414788f.patch 900 Bytes
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-12-26 16:05 . - Apply patches from rpm-tracker
From d44aa28b0db3ba355fe68c5971c90c9a1414788f Mon Sep 17 00:00:00 2001
From: shridhar kalavagunta <coolshrid@hotmail.com>
Date: Fri, 26 Jan 2024 21:10:32 -0600
Subject: [PATCH] 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)
---
crypto/o_str.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/o_str.c b/crypto/o_str.c
index 7fa487dd5fcde..bfbc2ca5e372c 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;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit/openssl.git
git@gitee.com:ocs-commit/openssl.git
ocs-commit
openssl
openssl
master

搜索帮助