5 Star 0 Fork 7

src-openEuler/hikptool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0079-hikptool-nic-Fix-bad-usage-of-format-string.patch 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
From dd185f7120e3a55af2ef4fc061aa3a271a986a1d Mon Sep 17 00:00:00 2001
From: Jie Hai <haijie1@huawei.com>
Date: Thu, 29 Aug 2024 10:11:47 +0800
Subject: [PATCH 17/27] hikptool/nic: Fix bad usage of format string
The format string lacks parameters, which may cause
information leakage. This patch fixes it.
Fixes: 8244390e29a3 ("hikptool/nic: Fix the Code review comments")
Signed-off-by: Jie Hai <haijie1@huawei.com>
---
net/nic/nic_ppp/hikp_nic_ppp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/nic/nic_ppp/hikp_nic_ppp.c b/net/nic/nic_ppp/hikp_nic_ppp.c
index c070666..96f317b 100644
--- a/net/nic/nic_ppp/hikp_nic_ppp.c
+++ b/net/nic/nic_ppp/hikp_nic_ppp.c
@@ -1077,7 +1077,7 @@ static int hikp_nic_check_hw_res(struct hikp_nic_ppp_hw_resources *hw_res)
return -EINVAL;
}
if (hw_res->mng_tbl_size == 0) {
- HIKP_ERROR_PRINT("VF VLAN Table size (%u)is zero!\n");
+ HIKP_ERROR_PRINT("Manager Table size should not be zero!\n");
return -EINVAL;
}
if (hw_res->mac_id >= HIKP_PPP_MAX_MAC_ID_NUM) {
--
2.45.0.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/hikptool.git
git@gitee.com:src-openeuler/hikptool.git
src-openeuler
hikptool
hikptool
master

搜索帮助