10 Star 2 Fork 64

src-openEuler/curl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-CVE-2024-11053-post1.patch 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
sherlock2010 提交于 2025-01-07 16:12 +08:00 . fix CVE-2024-11053
From 4b07b7ebadfbff1d26622719b9048673a78f0bf0 Mon Sep 17 00:00:00 2001
From: Viktor Szakats <commit@vsz.me>
Date: Sun, 17 Nov 2024 12:46:25 +0100
Subject: [PATCH] netrc: fix pointer to bool conversion
with MSVC 2008 and 2010:
```
lib/netrc.c(107): error C2440: 'initializing' : cannot convert from 'char *' to 'bool'
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51002792/job/jtoxd4mk984oi6fd#L164
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51002792/job/0wxlw9a8g04e56vt#L177
Follow-up to e9b9bbac22c26cf67316fa8e6c6b9e831af31949 #15586
Closes #15601
Conflict:NA
Reference:https://github.com/curl/curl/commit/4b07b7ebadfbff1d26622719b9048673a78f0bf0
---
lib/netrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/netrc.c b/lib/netrc.c
index e787a6ffc..d5ee3c0fd 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -104,7 +104,7 @@ static int parsenetrc(struct store_netrc *store,
int retcode = NETRC_FILE_MISSING;
char *login = *loginp;
char *password = NULL;
- bool specific_login = login; /* points to something */
+ bool specific_login = !!login; /* points to something */
enum host_lookup_state state = NOTHING;
enum found_state keyword = NONE;
unsigned char found = 0; /* login + password found bits, as they can come in
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/curl.git
git@gitee.com:src-openeuler/curl.git
src-openeuler
curl
curl
master

搜索帮助