Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-457): [#def1]
gnome-control-center-50.0/panels/common/cc-number-row.c: scope_hint: In function ‘number_row_settings_changed_cb’
gnome-control-center-50.0/panels/common/cc-number-row.c:688:14: warning[-Wmaybe-uninitialized]: ‘value’ may be used uninitialized
#  688 |         if (!cc_number_row_has_value (self, value, &position))
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gnome-control-center-50.0/panels/common/cc-number-row.c:664:9: note: ‘value’ was declared here
#  664 |     int value;
#      |         ^~~~~
#  686|       g_signal_handler_block (self, self->number_row_selected_changed_id);
#  687|       if (position != GTK_INVALID_LIST_POSITION)
#  688|->         if (!cc_number_row_has_value (self, value, &position))
#  689|               position = cc_number_row_add_value (self, value);
#  690|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
gnome-control-center-50.0/panels/system/datetime/tz.c:486:11: warning[-Wanalyzer-null-argument]: use of NULL ‘real’ where non-null expected
gnome-control-center-50.0/panels/system/datetime/tz.c:456:15: branch_true: following ‘true’ branch...
gnome-control-center-50.0/panels/system/datetime/tz.c:462:11: branch_true: ...to here
gnome-control-center-50.0/panels/system/datetime/tz.c:482:10: branch_true: following ‘true’ branch...
gnome-control-center-50.0/panels/system/datetime/tz.c:483:9: branch_true: ...to here
gnome-control-center-50.0/panels/system/datetime/tz.c:486:11: danger: argument 1 (‘real’) NULL where non-null expected
#  484|   
#  485|         /* We don't need more than one name for it */
#  486|->       if (g_str_equal (real, "Etc/UTC") ||
#  487|             g_str_equal (real, "Etc/UCT"))
#  488|           real = "Etc/GMT";

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
gnome-control-center-50.0/panels/wellbeing/cc-screen-time-statistics-row.c:873:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘model_screen_time_per_day’
gnome-control-center-50.0/panels/wellbeing/cc-screen-time-statistics-row.c:1205:1: enter_function: entry to ‘history_file_update_timeout_cb’
gnome-control-center-50.0/panels/wellbeing/cc-screen-time-statistics-row.c:1211:3: call_function: calling ‘update_model’ from ‘history_file_update_timeout_cb’
#  871|      * index. This will automatically create the indices between, and initialise
#  872|      * them to zero, which is what we want. */
#  873|->   if (diff_days >= model_screen_time_per_day->len)
#  874|       {
#  875|         const double new_val = 0.0;

Error: CPPCHECK_WARNING (CWE-457): [#def4]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1278: error[legacyUninitvar]: Uninitialized variable: apn_name
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1278:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘apn_name’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1266:6: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1273:12: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1273:11: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1278:10: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1278:10: danger: use of uninitialized value ‘apn_name’ here
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: COMPILER_WARNING (CWE-457): [#def6]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_apn’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1278:10: warning[-Wmaybe-uninitialized]: ‘apn_name’ may be used uninitialized
# 1278 |   return apn_name;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1264:16: note: ‘apn_name’ was declared here
# 1264 |   const gchar *apn_name;
#      |                ^~~~~~~~
# 1276|       }
# 1277|   
# 1278|->   return apn_name;
# 1279|   }
# 1280|   

Error: CPPCHECK_WARNING (CWE-457): [#def7]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1341: error[legacyUninitvar]: Uninitialized variable: username
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1341:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘username’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1329:6: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1336:12: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1336:11: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1341:10: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1341:10: danger: use of uninitialized value ‘username’ here
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: COMPILER_WARNING (CWE-457): [#def9]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_username’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1341:10: warning[-Wmaybe-uninitialized]: ‘username’ may be used uninitialized
# 1341 |   return username;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1327:16: note: ‘username’ was declared here
# 1327 |   const gchar *username;
#      |                ^~~~~~~~
# 1339|       }
# 1340|   
# 1341|->   return username;
# 1342|   }
# 1343|   

Error: CPPCHECK_WARNING (CWE-457): [#def10]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1421: error[legacyUninitvar]: Uninitialized variable: password
# 1419|       }
# 1420|   
# 1421|->   return password;
# 1422|   }
# 1423|   

Error: COMPILER_WARNING (CWE-457): [#def11]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_password’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1421:10: warning[-Wmaybe-uninitialized]: ‘password’ may be used uninitialized
# 1421 |   return password;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1388:16: note: ‘password’ was declared here
# 1388 |   const gchar *password;
#      |                ^~~~~~~~
# 1419|       }
# 1420|   
# 1421|->   return password;
# 1422|   }
# 1423|   

Error: CPPCHECK_WARNING (CWE-457): [#def12]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1484: warning[uninitvar]: Uninitialized variable: apn_name
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1484:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘apn_name’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1470:6: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1484:10: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1484:10: danger: use of uninitialized value ‘apn_name’ here
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: COMPILER_WARNING (CWE-457): [#def14]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_apn’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1484:10: warning[-Wmaybe-uninitialized]: ‘apn_name’ may be used uninitialized
# 1484 |   return apn_name;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1468:16: note: ‘apn_name’ was declared here
# 1468 |   const gchar *apn_name;
#      |                ^~~~~~~~
# 1482|     */
# 1483|   
# 1484|->   return apn_name;
# 1485|   }
# 1486|   

Error: CPPCHECK_WARNING (CWE-457): [#def15]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1542: warning[uninitvar]: Uninitialized variable: username
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1542:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘username’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1534:6: branch_false: following ‘false’ branch...
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1542:10: branch_false: ...to here
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1542:10: danger: use of uninitialized value ‘username’ here
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: COMPILER_WARNING (CWE-457): [#def17]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_username’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1542:10: warning[-Wmaybe-uninitialized]: ‘username’ may be used uninitialized
# 1542 |   return username;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1532:16: note: ‘username’ was declared here
# 1532 |   const gchar *username;
#      |                ^~~~~~~~
# 1540|     }
# 1541|   
# 1542|->   return username;
# 1543|   }
# 1544|   

Error: CPPCHECK_WARNING (CWE-457): [#def18]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1624: warning[uninitvar]: Uninitialized variable: password
# 1622|     */
# 1623|   
# 1624|->   return password;
# 1625|   }
# 1626|   

Error: COMPILER_WARNING (CWE-457): [#def19]
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c: scope_hint: In function ‘cc_wwan_data_apn_get_initial_eps_password’
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1624:10: warning[-Wmaybe-uninitialized]: ‘password’ may be used uninitialized
# 1624 |   return password;
#      |          ^~~~~~~~
gnome-control-center-50.0/panels/wwan/cc-wwan-data.c:1589:16: note: ‘password’ was declared here
# 1589 |   const gchar *password;
#      |                ^~~~~~~~
# 1622|     */
# 1623|   
# 1624|->   return password;
# 1625|   }
# 1626|   

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.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-71.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegnome-control-center-51~alpha-2.fc45
diffbase-store-results-to/tmp/tmpbyck8iay/gnome-control-center-51~alpha-2.fc45.tar.xz
diffbase-time-created2026-08-03 14:40:33
diffbase-time-finished2026-08-03 14:50:53
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpbyck8iay/gnome-control-center-51~alpha-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbyck8iay/gnome-control-center-51~alpha-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-71.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegnome-control-center-50.0-1.fc44
store-results-to/tmp/tmpqy9dymaa/gnome-control-center-50.0-1.fc44.tar.xz
time-created2026-08-03 14:29:14
time-finished2026-08-03 14:40:13
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpqy9dymaa/gnome-control-center-50.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqy9dymaa/gnome-control-center-50.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9