4 Star 0 Fork 5

OpenCloudOS Stream/libxcrypt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
59d79640160fd8e1f62ab799d971e236063bb979.patch 712 Bytes
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2025-06-03 20:05 +08:00 . - [Type] bugfix
From 59d79640160fd8e1f62ab799d971e236063bb979 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Tue, 7 Jan 2025 14:48:56 +0100
Subject: [PATCH] crypt: Initialize internal_rbytes array with \0-string.
---
lib/crypt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/crypt.c b/lib/crypt.c
index ac54e853..b923c864 100644
--- a/lib/crypt.c
+++ b/lib/crypt.c
@@ -289,7 +289,7 @@ crypt_gensalt_rn (const char *prefix, unsigned long count,
return 0;
}
- char internal_rbytes[UCHAR_MAX];
+ char internal_rbytes[UCHAR_MAX] = "\0";
/* typeof (internal_nrbytes) == typeof (h->nrbytes). */
unsigned char internal_nrbytes = 0;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/libxcrypt.git
git@gitee.com:opencloudos-stream/libxcrypt.git
opencloudos-stream
libxcrypt
libxcrypt
master

搜索帮助