Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
389-ds-base-3.2.0.202603270526gitab503a463/ldap/servers/plugins/sync/sync_persist.c:981:28: warning[-Wunused-variable]: unused variable 'qnodenext'
#  981 |     SyncQueueNode *qnode, *qnodenext;
#      |                            ^~~~~~~~~
#  979|       slapi_set_thread_name("sync-send");
#  980|       SyncRequest *req = (SyncRequest *)arg;
#  981|->     SyncQueueNode *qnode, *qnodenext;
#  982|       int conn_acq_flag = 0;
#  983|       Slapi_Connection *conn = NULL;

Error: COMPILER_WARNING (CWE-563): [#def2]
389-ds-base-3.2.0.202603270526gitab503a463/ldap/servers/plugins/sync/sync_persist.c:985:19: warning[-Wunused-variable]: unused variable 'ctrls'
#  985 |     LDAPControl **ctrls = NULL;
#      |                   ^~~~~
#  983|       Slapi_Connection *conn = NULL;
#  984|       Slapi_Operation *op = req->req_orig_op;
#  985|->     LDAPControl **ctrls = NULL;
#  986|       int rc;
#  987|       PRUint64 connid;

Error: COMPILER_WARNING (CWE-563): [#def3]
389-ds-base-3.2.0.202603270526gitab503a463/ldap/servers/plugins/sync/sync_persist.c:989:12: warning[-Wunused-variable]: unused variable 'attrs_dup'
#  989 |     char **attrs_dup;
#      |            ^~~~~~~~~
#  987|       PRUint64 connid;
#  988|       int opid;
#  989|->     char **attrs_dup;
#  990|       char *strFilter;
#  991|   

Error: COMPILER_WARNING (CWE-563): [#def4]
389-ds-base-3.2.0.202603270526gitab503a463/ldap/servers/plugins/sync/sync_persist.c: scope_hint: In function 'sync_send_results'
389-ds-base-3.2.0.202603270526gitab503a463/ldap/servers/plugins/sync/sync_persist.c:990:11: warning[-Wunused-variable]: unused variable 'strFilter'
#  990 |     char *strFilter;
#      |           ^~~~~~~~~
#  988|       int opid;
#  989|       char **attrs_dup;
#  990|->     char *strFilter;
#  991|   
#  992|       slapi_pblock_get(req->req_pblock, SLAPI_CONN_ID, &connid);

Scan Properties

analyzer-version-clippy1.94.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.94.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-95.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-name389-ds-base-3.2.0.202603261932gitb4201811a-main
diffbase-store-results-to/tmp/tmpn26au806/389-ds-base-3.2.0.202603261932gitb4201811a-main.tar.xz
diffbase-time-created2026-03-27 05:44:10
diffbase-time-finished2026-03-27 05:58:48
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpn26au806/389-ds-base-3.2.0.202603261932gitb4201811a-main.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpn26au806/389-ds-base-3.2.0.202603261932gitb4201811a-main.src.rpm'
diffbase-tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-95.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-name389-ds-base-3.2.0.202603270526gitab503a463-pr7367
store-results-to/tmp/tmpeii76o2x/389-ds-base-3.2.0.202603270526gitab503a463-pr7367.tar.xz
time-created2026-03-27 05:59:15
time-finished2026-03-27 06:13:10
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpeii76o2x/389-ds-base-3.2.0.202603270526gitab503a463-pr7367.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpeii76o2x/389-ds-base-3.2.0.202603270526gitab503a463-pr7367.src.rpm'
tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9