Task #131000 - added.err

back to task #131000
download
Error: GCC_ANALYZER_WARNING (CWE-688):
gnome-control-center-51.alpha/panels/system/datetime/tz.c:486:13: warning[-Wanalyzer-null-argument]: use of NULL ‘real’ where non-null expected
gnome-control-center-51.alpha/panels/system/datetime/tz.c:459:17: branch_true: following ‘true’ branch...
gnome-control-center-51.alpha/panels/system/datetime/tz.c:464:13: branch_true: ...to here
gnome-control-center-51.alpha/panels/system/datetime/tz.c:482:12: branch_true: following ‘true’ branch...
gnome-control-center-51.alpha/panels/system/datetime/tz.c:483:13: branch_true: ...to here
gnome-control-center-51.alpha/panels/system/datetime/tz.c:486:13: 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") || g_str_equal (real, "Etc/UCT"))
#  487|               real = "Etc/GMT";
#  488|   

Error: GCC_ANALYZER_WARNING (CWE-476):
gnome-control-center-51.alpha/panels/wellbeing/cc-screen-time-statistics-row.c:803:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘model_screen_time_per_day’
gnome-control-center-51.alpha/panels/wellbeing/cc-screen-time-statistics-row.c:1105:1: enter_function: entry to ‘history_file_update_timeout_cb’
gnome-control-center-51.alpha/panels/wellbeing/cc-screen-time-statistics-row.c:1111:5: call_function: calling ‘update_model’ from ‘history_file_update_timeout_cb’
#  801|        * index. This will automatically create the indices between, and initialise
#  802|        * them to zero, which is what we want. */
#  803|->     if (diff_days >= model_screen_time_per_day->len) {
#  804|           const double new_val = 0.0;
#  805|           g_array_insert_val (model_screen_time_per_day, diff_days, new_val);