1 Star 0 Fork 24

gwei3/strongswan

forked from src-openEuler/strongswan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-use-of-uninitialized-value.patch 765 Bytes
一键复制 编辑 原始数据 按行查看 历史
caodongxia 提交于 2021-09-01 15:27 . fix fuzz: use of uninitialized value
From 25fb99653f3f7c7ba5279beb00379089987cca50 Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Wed, 1 Sep 2021 15:13:18 +0800
Subject: [PATCH] fix use of uninitialized value
---
src/libstrongswan/bio/bio_reader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libstrongswan/bio/bio_reader.c b/src/libstrongswan/bio/bio_reader.c
index e6b459b..2ae629e 100644
--- a/src/libstrongswan/bio/bio_reader.c
+++ b/src/libstrongswan/bio/bio_reader.c
@@ -122,7 +122,7 @@ static bool read_uint16_internal(private_bio_reader_t *this, uint16_t *res,
static bool read_uint24_internal(private_bio_reader_t *this, uint32_t *res,
bool from_end)
{
- uint32_t tmp;
+ uint32_t tmp = 0;
if (this->buf.len < 3)
{
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gwei3/strongswan.git
git@gitee.com:gwei3/strongswan.git
gwei3
strongswan
strongswan
master

搜索帮助