Error: COMPILER_WARNING (CWE-477): [#def1] zenity-4.2.1/src/calendar.c: scope_hint: In function ‘zenity_calendar’ zenity-4.2.1/src/calendar.c:88:25: warning[-Wdeprecated-declarations]: ‘gtk_calendar_select_day’ is deprecated: Use 'gtk_calendar_set_date' instead # 88 | gtk_calendar_select_day (GTK_CALENDAR(calendar), date); # | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtk-4.0/gtk/gtk.h:64: included_from: Included from here. /usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here. zenity-4.2.1/src/zenity.h:5: included_from: Included from here. zenity-4.2.1/src/util.h:38: included_from: Included from here. zenity-4.2.1/src/calendar.c:28: included_from: Included from here. /usr/include/gtk-4.0/gtk/gtkcalendar.h:53:15: note: declared here # 53 | void gtk_calendar_select_day (GtkCalendar *self, # | ^~~~~~~~~~~~~~~~~~~~~~~ # 86| # 87| if (date) # 88|-> gtk_calendar_select_day (GTK_CALENDAR(calendar), date); # 89| else # 90| g_printerr (_("Invalid date provided. Falling back to today's date.\n")); Error: COMPILER_WARNING (CWE-477): [#def2] zenity-4.2.1/src/calendar.c:88:25: warning[-Wdeprecated-declarations]: ‘gtk_calendar_select_day’ is deprecated: Use 'gtk_calendar_set_date' instead # 86| # 87| if (date) # 88|-> gtk_calendar_select_day (GTK_CALENDAR(calendar), date); # 89| else # 90| g_printerr (_("Invalid date provided. Falling back to today's date.\n")); Error: GCC_ANALYZER_WARNING (CWE-835): [#def3] zenity-4.2.1/src/notification.c:105:24: warning[-Wanalyzer-infinite-loop]: infinite loop zenity-4.2.1/src/notification.c:105:24: danger: infinite loop here zenity-4.2.1/src/notification.c:105:24: branch_true: if it ever follows ‘true’ branch, it will always do so... zenity-4.2.1/src/notification.c:105:24: branch_true: ...to here # 103| g_autoptr(GError) error = NULL; # 104| # 105|-> while (channel->is_readable == FALSE) # 106| ; # 107| Error: GCC_ANALYZER_WARNING (CWE-835): [#def4] zenity-4.2.1/src/progress.c:168:24: warning[-Wanalyzer-infinite-loop]: infinite loop zenity-4.2.1/src/progress.c:168:24: danger: infinite loop here zenity-4.2.1/src/progress.c:168:24: branch_true: if it ever follows ‘true’ branch, it will always do so... zenity-4.2.1/src/progress.c:168:24: branch_true: ...to here # 166| g_autoptr(GError) error = NULL; # 167| # 168|-> while (source->is_readable != TRUE) # 169| ; # 170| do { Error: GCC_ANALYZER_WARNING (CWE-835): [#def5] zenity-4.2.1/src/text.c:171:24: warning[-Wanalyzer-infinite-loop]: infinite loop zenity-4.2.1/src/text.c:171:24: danger: infinite loop here zenity-4.2.1/src/text.c:171:24: branch_true: if it ever follows ‘true’ branch, it will always do so... zenity-4.2.1/src/text.c:171:24: branch_true: ...to here # 169| int status; # 170| # 171|-> while (channel->is_readable != TRUE) # 172| ; # 173| Error: COMPILER_WARNING: [#def6] zenity-4.2.1/src/tree.c: scope_hint: In function ‘zenity_tree_handle_stdin’ zenity-4.2.1/src/tree.c:64:20: warning[-Wunused-but-set-variable=]: variable ‘row_count’ set but not used # 64 | static int row_count = 0; # | ^~~~~~~~~ # 62| { # 63| static int column_count = 0; # 64|-> static int row_count = 0; # 65| GIOStatus status = G_IO_STATUS_NORMAL; # 66| int n_columns = zenity_tree_column_view_get_n_columns (col_view); Error: GCC_ANALYZER_WARNING (CWE-775): [#def7] zenity-4.2.1/src/util.c:182:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_resource: opened here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:182:9: throw: if ‘gtk_text_buffer_get_iter_at_offset’ throws an exception... zenity-4.2.1/src/util.c:182:9: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) # 180| } # 181| # 182|-> gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0); # 183| # 184| while (!feof (f)) { Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] zenity-4.2.1/src/util.c:182:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_memory: allocated here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:182:9: throw: if ‘gtk_text_buffer_get_iter_at_offset’ throws an exception... zenity-4.2.1/src/util.c:182:9: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2) # 180| } # 181| # 182|-> gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0); # 183| # 184| while (!feof (f)) { Error: GCC_ANALYZER_WARNING (CWE-775): [#def9] zenity-4.2.1/src/util.c:184:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_resource: opened here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:184:16: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2) # 182| gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0); # 183| # 184|-> while (!feof (f)) { # 185| int count; # 186| const char *leftover; Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] zenity-4.2.1/src/util.c:184:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_memory: allocated here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:184:16: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2) # 182| gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0); # 183| # 184|-> while (!feof (f)) { # 185| int count; # 186| const char *leftover; Error: GCC_ANALYZER_WARNING (CWE-775): [#def11] zenity-4.2.1/src/util.c:189:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_resource: opened here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:184:16: branch_true: following ‘true’ branch... zenity-4.2.1/src/util.c:187:21: branch_true: ...to here zenity-4.2.1/src/util.c:192:17: throw: if ‘g_utf8_validate’ throws an exception... zenity-4.2.1/src/util.c:189:25: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2) # 187| int to_read = 2047 - remaining; # 188| # 189|-> count = fread (buf + remaining, 1, to_read, f); # 190| buf[count + remaining] = '\0'; # 191| Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] zenity-4.2.1/src/util.c:189:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’ zenity-4.2.1/src/util.c:172:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... zenity-4.2.1/src/util.c:175:13: branch_false: ...to here zenity-4.2.1/src/util.c:175:13: acquire_memory: allocated here zenity-4.2.1/src/util.c:177:12: branch_false: following ‘false’ branch... zenity-4.2.1/src/util.c:182:9: branch_false: ...to here zenity-4.2.1/src/util.c:184:16: branch_true: following ‘true’ branch... zenity-4.2.1/src/util.c:187:21: branch_true: ...to here zenity-4.2.1/src/util.c:192:17: throw: if ‘g_utf8_validate’ throws an exception... zenity-4.2.1/src/util.c:189:25: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2) # 187| int to_read = 2047 - remaining; # 188| # 189|-> count = fread (buf + remaining, 1, to_read, f); # 190| buf[count + remaining] = '\0'; # 191|
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-127.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | zenity-4.2.1-1.fc44 |
| store-results-to | /tmp/tmp6dhn5jer/zenity-4.2.1-1.fc44.tar.xz |
| time-created | 2026-01-08 22:17:38 |
| time-finished | 2026-01-08 22:19:54 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp6dhn5jer/zenity-4.2.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp6dhn5jer/zenity-4.2.1-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |