1 Star 0 Fork 9

twtlpl/corosync-qdevice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-qnetd-Add-note-about-coverity-false-positive-err.patch 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
From f6642ec5c726ba8cf6c3b5e01f861125d910ee6a Mon Sep 17 00:00:00 2001
From: Jan Friesse <jfriesse@redhat.com>
Date: Mon, 5 Aug 2024 17:58:45 +0200
Subject: [PATCH 3/3] qnetd: Add note about coverity false positive err
Not too keen to add coverity specific comment as described in
https://community.synopsys.com/s/article/
Suppressing-False-Positive-Intentional-defects but it's handy to have
note in code.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
---
qdevices/qnetd-cluster-list.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/qdevices/qnetd-cluster-list.c b/qdevices/qnetd-cluster-list.c
index 69e4f91..6d4aa6c 100644
--- a/qdevices/qnetd-cluster-list.c
+++ b/qdevices/qnetd-cluster-list.c
@@ -111,6 +111,9 @@ qnetd_cluster_list_add_client(struct qnetd_cluster_list *list, struct qnetd_clie
}
if (entry == NULL) {
+ /*
+ * Coverity reports false positive var_deref_op error on following line
+ */
TAILQ_INSERT_TAIL(&cluster->client_list, client, cluster_entries);
}
--
2.33.1.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/twtlpl/corosync-qdevice.git
git@gitee.com:twtlpl/corosync-qdevice.git
twtlpl
corosync-qdevice
corosync-qdevice
master

搜索帮助