Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-670): [#def1]
gtk-4.20.2/demos/gtk-demo/main.c: scope_hint: In function ‘activate_about’
gtk-4.20.2/demos/gtk-demo/main.c:198:74: warning[-Wduplicated-branches]: this condition has identical branches
#  198 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  196|                                PACKAGE_VERSION,
#  197|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  198|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  199|                                gtk_get_major_version (),
#  200|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def2]
gtk-4.20.2/demos/gtk-demo/main.c: scope_hint: In function ‘main’
gtk-4.20.2/demos/gtk-demo/main.c:1144:59: warning[-Wduplicated-branches]: this condition has identical branches
# 1144 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
# 1142|                 PACKAGE_VERSION,
# 1143|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 1144|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 1145|   
# 1146|     g_application_set_version (G_APPLICATION (app), version);

Error: COMPILER_WARNING (CWE-670): [#def3]
gtk-4.20.2/demos/node-editor/node-editor-application.c: scope_hint: In function ‘activate_about’
gtk-4.20.2/demos/node-editor/node-editor-application.c:106:74: warning[-Wduplicated-branches]: this condition has identical branches
#  106 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  104|                                PACKAGE_VERSION,
#  105|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  106|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  107|                                gtk_get_major_version (),
#  108|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def4]
gtk-4.20.2/demos/node-editor/node-editor-application.c: scope_hint: In function ‘node_editor_application_new’
gtk-4.20.2/demos/node-editor/node-editor-application.c:303:59: warning[-Wduplicated-branches]: this condition has identical branches
#  303 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
#  301|                 PACKAGE_VERSION,
#  302|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  303|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#  304|   
#  305|     app = g_object_new (NODE_EDITOR_APPLICATION_TYPE,

Error: COMPILER_WARNING (CWE-670): [#def5]
gtk-4.20.2/demos/print-editor/print-editor.c: scope_hint: In function ‘activate_about’
gtk-4.20.2/demos/print-editor/print-editor.c:614:74: warning[-Wduplicated-branches]: this condition has identical branches
#  614 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  612|                                PACKAGE_VERSION,
#  613|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  614|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  615|                                gtk_get_major_version (),
#  616|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def6]
gtk-4.20.2/demos/print-editor/print-editor.c: scope_hint: In function ‘main’
gtk-4.20.2/demos/print-editor/print-editor.c:903:59: warning[-Wduplicated-branches]: this condition has identical branches
#  903 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
#  901|                 PACKAGE_VERSION,
#  902|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  903|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#  904|   
#  905|     g_application_set_version (G_APPLICATION (app), version);

Error: COMPILER_WARNING (CWE-670): [#def7]
gtk-4.20.2/demos/widget-factory/widget-factory.c: scope_hint: In function ‘activate_about’
gtk-4.20.2/demos/widget-factory/widget-factory.c:344:74: warning[-Wduplicated-branches]: this condition has identical branches
#  344 |                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#      |                                                                          ^
#  342|                                PACKAGE_VERSION,
#  343|                                g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
#  344|->                              g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "",
#  345|                                gtk_get_major_version (),
#  346|                                gtk_get_minor_version (),

Error: COMPILER_WARNING (CWE-670): [#def8]
gtk-4.20.2/demos/widget-factory/widget-factory.c: scope_hint: In function ‘main’
gtk-4.20.2/demos/widget-factory/widget-factory.c:2702:59: warning[-Wduplicated-branches]: this condition has identical branches
# 2702 |               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
#      |                                                           ^
# 2700|                 PACKAGE_VERSION,
# 2701|                 g_strcmp0 (PROFILE, "devel") == 0 ? "-" : "",
# 2702|->               g_strcmp0 (PROFILE, "devel") == 0 ? VCS_TAG : "");
# 2703|     g_application_set_version (G_APPLICATION (app), version);
# 2704|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
gtk-4.20.2/gtk/gtkbuilder.c:992:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘construct_parameters.names’
gtk-4.20.2/gtk/gtkbuilder.c:917:1: enter_function: entry to ‘_gtk_builder_construct’
gtk-4.20.2/gtk/gtkbuilder.c:961:3: call_function: inlined call to ‘object_properties_init’ from ‘_gtk_builder_construct’
gtk-4.20.2/gtk/gtkbuilder.c:962:3: call_function: inlined call to ‘object_properties_init’ from ‘_gtk_builder_construct’
gtk-4.20.2/gtk/gtkbuilder.c:971:6: branch_true: following ‘true’ branch...
gtk-4.20.2/gtk/gtkbuilder.c:975:21: branch_true: ...to here
gtk-4.20.2/gtk/gtkbuilder.c:976:10: branch_false: following ‘false’ branch...
gtk-4.20.2/gtk/gtkbuilder.c:990:44: branch_false: ...to here
gtk-4.20.2/gtk/gtkbuilder.c:992:11: release_memory: ‘construct_parameters.names’ is NULL
gtk-4.20.2/gtk/gtkbuilder.c:992:11: danger: dereference of NULL ‘construct_parameters.names’
#  990|                                              info->id);
#  991|         g_assert (obj != NULL);
#  992|->       if (construct_parameters.names->len > 0)
#  993|           g_warning ("Can't pass in construct-only parameters to %s", info->id);
#  994|       }

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
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-74.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegtk4-4.21.1-1.fc44
diffbase-store-results-to/tmp/tmpu2zmyq0s/gtk4-4.21.1-1.fc44.tar.xz
diffbase-time-created2026-01-08 17:24:31
diffbase-time-finished2026-01-08 17:47:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpu2zmyq0s/gtk4-4.21.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpu2zmyq0s/gtk4-4.21.1-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-74.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegtk4-4.20.2-1.fc43
store-results-to/tmp/tmp4in9uprr/gtk4-4.20.2-1.fc43.tar.xz
time-created2026-01-08 17:00:31
time-finished2026-01-08 17:23:36
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp4in9uprr/gtk4-4.20.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp4in9uprr/gtk4-4.20.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9