Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:239:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cursor’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:379:1: enter_function: entry to ‘wl_cursor_theme_load’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:384:12: branch_false: following ‘false’ branch (when ‘theme’ is non-NULL)... wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:387:12: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:394:23: call_function: calling ‘shm_pool_create’ from ‘wl_cursor_theme_load’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:394:23: return_function: returning to ‘wl_cursor_theme_load’ from ‘shm_pool_create’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:395:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:398:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:400:12: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:401:17: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:403:12: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:404:17: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:404:17: call_function: calling ‘load_fallback_theme’ from ‘wl_cursor_theme_load’ # 237| cursor_data + metadata->offset, size); # 238| # 239|-> return &cursor->cursor; # 240| # 241| err_free_image: Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:334:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cursor’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:338:1: enter_function: entry to ‘load_callback’ wayland-1.23.1/redhat-linux-build/../cursor/wayland-cursor.c:348:18: call_function: calling ‘wl_cursor_create_from_xcursor_images’ from ‘load_callback’ # 332| } # 333| # 334|-> return &cursor->cursor; # 335| } # 336| Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] wayland-1.23.1/redhat-linux-build/../cursor/xcursor.c:689:20: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected wayland-1.23.1/redhat-linux-build/../cursor/xcursor.c:821:1: enter_function: entry to ‘xcursor_load_theme’ wayland-1.23.1/redhat-linux-build/../cursor/xcursor.c:825:9: call_function: calling ‘xcursor_load_theme_protected’ from ‘xcursor_load_theme’ # 687| { # 688| FILE *f; # 689|-> DIR *dir = opendir(path); # 690| struct dirent *ent; # 691| char *full; Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] wayland-1.23.1/redhat-linux-build/../src/event-loop.c:369:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*loop.timers.data’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:830:1: enter_function: entry to ‘wl_event_source_remove’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:842:12: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../src/event-loop.c:843:13: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../src/event-loop.c:842:13: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../src/event-loop.c:846:17: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../src/event-loop.c:846:17: call_function: calling ‘wl_event_source_timer_update’ from ‘wl_event_source_remove’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:846:17: return_function: returning to ‘wl_event_source_remove’ from ‘wl_event_source_timer_update’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:847:17: call_function: calling ‘wl_timer_heap_unreserve’ from ‘wl_event_source_remove’ # 367| } # 368| timers->data = n; # 369|-> timers->space = timers->space / 2; # 370| } # 371| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] wayland-1.23.1/redhat-linux-build/../src/event-loop.c:736:16: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:714:1: enter_function: entry to ‘wl_event_loop_add_signal’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:722:18: call_function: inlined call to ‘zalloc’ from ‘wl_event_loop_add_signal’ wayland-1.23.1/redhat-linux-build/../src/event-loop.c:723:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/event-loop.c:726:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/event-loop.c:736:16: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) # 734| source->func = func; # 735| # 736|-> return add_source(loop, &source->base, WL_EVENT_READABLE, data); # 737| } # 738| Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] wayland-1.23.1/redhat-linux-build/../src/scanner.c:1040:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct parse_context)*(void *)data).description.text’ wayland-1.23.1/redhat-linux-build/../src/scanner.c:1036:19: branch_true: following ‘true’ branch (when the strings are equal)... wayland-1.23.1/redhat-linux-build/../src/scanner.c:1039:33: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../src/scanner.c:1038:25: acquire_memory: allocated here wayland-1.23.1/redhat-linux-build/../src/scanner.c:1040:17: danger: ‘*((struct parse_context)*(void *)data).description.text’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 1038| strndup(ctx->character_data, # 1039| ctx->character_data_length); # 1040|-> ctx->description = NULL; # 1041| } else if (strcmp(name, "request") == 0 || # 1042| strcmp(name, "event") == 0) { Error: GCC_ANALYZER_WARNING (CWE-775): [#def7] wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1749:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*s.fd’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1739:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1743:65: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1744:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1749:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1749:12: danger: ‘*s.fd’ leaks here # 1747| } # 1748| # 1749|-> if (listen(s->fd, 128) < 0) { # 1750| wl_log("listen() failed with error: %s\n", strerror(errno)); # 1751| return -1; Error: GCC_ANALYZER_WARNING (CWE-775): [#def8] wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1750:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1766:1: enter_function: entry to ‘wl_display_add_socket_auto’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1776:13: call_function: calling ‘wl_socket_alloc’ from ‘wl_display_add_socket_auto’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1776:13: return_function: returning to ‘wl_display_add_socket_auto’ from ‘wl_socket_alloc’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1777:12: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1782:21: call_function: calling ‘wl_socket_init_for_display_name’ from ‘wl_display_add_socket_auto’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1782:21: return_function: returning to ‘wl_display_add_socket_auto’ from ‘wl_socket_init_for_display_name’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1782:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1787:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1787:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1790:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1790:21: call_function: calling ‘_wl_display_add_socket’ from ‘wl_display_add_socket_auto’ # 1748| # 1749| if (listen(s->fd, 128) < 0) { # 1750|-> wl_log("listen() failed with error: %s\n", strerror(errno)); # 1751| return -1; # 1752| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1846:9: warning[-Wanalyzer-malloc-leak]: leak of ‘wl_socket_alloc()’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1820:1: enter_function: entry to ‘wl_display_add_socket_fd’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1826:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1830:13: call_function: calling ‘wl_socket_alloc’ from ‘wl_display_add_socket_fd’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1830:13: return_function: returning to ‘wl_display_add_socket_fd’ from ‘wl_socket_alloc’ wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1831:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1834:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1837:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1844:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-server.c:1846:9: danger: ‘wl_socket_alloc()’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6) # 1844| s->fd = sock_fd; # 1845| # 1846|-> wl_list_insert(display->socket_list.prev, &s->link); # 1847| # 1848| return 0; Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:665:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sigbus_data’ wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:642:1: enter_function: entry to ‘wl_shm_buffer_begin_access’ wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:647:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:650:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:653:12: branch_true: following ‘true’ branch (when ‘sigbus_data’ is NULL)... wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:654:31: call_function: inlined call to ‘zalloc’ from ‘wl_shm_buffer_begin_access’ wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:655:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:658:17: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:661:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:664:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../src/wayland-shm.c:665:9: danger: ‘sigbus_data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) # 663| # 664| sigbus_data->current_pool = pool; # 665|-> sigbus_data->access_count++; # 666| } # 667| Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:78:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 76| # 77| test_disable_coredumps(); # 78|-> *null = "Goodbye, world"; # 79| } # 80| Error: GCC_ANALYZER_WARNING (CWE-775): [#def12] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:99:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:92:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:95:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:95:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:98:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:99:1: danger: ‘fd[0]’ leaks here # 97| # 98| test_disable_coredumps(); # 99|-> } # 100| # 101| FAIL_TEST(sanity_fd_leak_exec) Error: GCC_ANALYZER_WARNING (CWE-775): [#def13] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:99:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:92:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:95:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:95:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:98:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:99:1: danger: ‘fd[1]’ leaks here # 97| # 98| test_disable_coredumps(); # 99|-> } # 100| # 101| FAIL_TEST(sanity_fd_leak_exec) Error: GCC_ANALYZER_WARNING (CWE-775): [#def14] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:112:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:107:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:110:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:112:1: danger: ‘fd[0]’ leaks here # 110| test_disable_coredumps(); # 111| exec_fd_leak_check(nr_fds); # 112|-> } # 113| # 114| TEST(sanity_fd_exec) Error: GCC_ANALYZER_WARNING (CWE-775): [#def15] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:112:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:107:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:110:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:112:1: danger: ‘fd[1]’ leaks here # 110| test_disable_coredumps(); # 111| exec_fd_leak_check(nr_fds); # 112|-> } # 113| # 114| TEST(sanity_fd_exec) Error: GCC_ANALYZER_WARNING (CWE-775): [#def16] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:123:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:120:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:122:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:123:1: danger: ‘fd[0]’ leaks here # 121| # 122| exec_fd_leak_check(nr_fds + 2); # 123|-> } # 124| # 125| static void Error: GCC_ANALYZER_WARNING (CWE-775): [#def17] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:123:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:120:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:122:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:123:1: danger: ‘fd[1]’ leaks here # 121| # 122| exec_fd_leak_check(nr_fds + 2); # 123|-> } # 124| # 125| static void Error: GCC_ANALYZER_WARNING (CWE-688): [#def18] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:221:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xdg_runtime_dir’ where non-null expected wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:199:1: enter_function: entry to ‘sanity_client_log’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:204:33: acquire_memory: this call could return NULL wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:211:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: call_function: calling ‘map_file’ from ‘sanity_client_log’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: return_function: returning to ‘sanity_client_log’ from ‘map_file’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:215:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:216:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:221:9: danger: argument 2 (‘xdg_runtime_dir’) from [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected # 219| * leak checker cares about the value of WAYLAND_SOCKET during teardown for # 220| * correct fd accounting. */ # 221|-> setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 0); # 222| setenv("WAYLAND_SOCKET", wayland_socket, 0); # 223| free(xdg_runtime_dir); Error: GCC_ANALYZER_WARNING (CWE-688): [#def19] wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:222:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘wayland_socket’ where non-null expected wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:199:1: enter_function: entry to ‘sanity_client_log’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:203:32: acquire_memory: this call could return NULL wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:211:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: call_function: calling ‘map_file’ from ‘sanity_client_log’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:214:15: return_function: returning to ‘sanity_client_log’ from ‘map_file’ wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:215:9: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:216:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/sanity-test.c:222:9: danger: argument 2 (‘wayland_socket’) from [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected # 220| * correct fd accounting. */ # 221| setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 0); # 222|-> setenv("WAYLAND_SOCKET", wayland_socket, 0); # 223| free(xdg_runtime_dir); # 224| free(wayland_socket); Error: GCC_ANALYZER_WARNING (CWE-126): [#def20] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:159:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_true: following ‘true’ branch (when ‘pid == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:366:25: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:366:25: call_function: calling ‘run_test’ from ‘main’ # 157| cur_fds = count_open_fds(); # 158| # 159|-> t->run(); # 160| # 161| /* turn off timeout (if any) after test completion */ Error: GCC_ANALYZER_WARNING (CWE-126): [#def21] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:379:44: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:28: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:379:44: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:379:44: danger: out-of-bounds read from byte 48 till byte 51 but ‘__start_test_section’ ends at byte 32 # 377| if (WIFEXITED(info)) { # 378| if (WEXITSTATUS(info) == EXIT_SUCCESS) # 379|-> success = !t->must_fail; # 380| else # 381| success = t->must_fail; Error: GCC_ANALYZER_WARNING (CWE-126): [#def22] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:381:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:28: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:381:33: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:381:33: danger: out-of-bounds read from byte 48 till byte 51 but ‘__start_test_section’ ends at byte 32 # 379| success = !t->must_fail; # 380| else # 381|-> success = t->must_fail; # 382| # 383| stderr_set_color(success ? GREEN : RED); Error: GCC_ANALYZER_WARNING (CWE-126): [#def23] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:385:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:378:28: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:379:44: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:385:33: danger: out-of-bounds read from byte 32 till byte 39 but ‘__start_test_section’ ends at byte 32 # 383| stderr_set_color(success ? GREEN : RED); # 384| fprintf(stderr, "test \"%s\":\texit status %d", # 385|-> t->name, WEXITSTATUS(info)); # 386| # 387| } else if (WIFSIGNALED(info)) { Error: GCC_ANALYZER_WARNING (CWE-126): [#def24] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: danger: out-of-bounds read from byte 48 till byte 51 but ‘__start_test_section’ ends at byte 32 # 386| # 387| } else if (WIFSIGNALED(info)) { # 388|-> if (t->must_fail) # 389| success = 1; # 390| Error: GCC_ANALYZER_WARNING (CWE-126): [#def25] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:393:33: warning[-Wanalyzer-out-of-bounds]: buffer over-read wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:396:20: branch_false: following ‘false’ branch (when ‘success == 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:400:25: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:359:41: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:362:23: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:363:17: branch_false: following ‘false’ branch (when ‘pid >= 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:365:20: branch_false: following ‘false’ branch (when ‘pid != 0’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:368:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:21: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:377:20: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:28: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:387:27: branch_true: following ‘true’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:29: branch_true: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:388:28: branch_false: following ‘false’ branch... branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:393:33: danger: out-of-bounds read from byte 32 till byte 39 but ‘__start_test_section’ ends at byte 32 # 391| stderr_set_color(success ? GREEN : RED); # 392| fprintf(stderr, "test \"%s\":\tsignal %d", # 393|-> t->name, WTERMSIG(info)); # 394| } # 395| Error: GCC_ANALYZER_WARNING (CWE-469): [#def26] wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:408:38: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:320:5: enter_function: entry to ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:327:12: branch_false: following ‘false’ branch... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: call_function: calling ‘is_debugger_attached’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:330:13: return_function: returning to ‘main’ from ‘is_debugger_attached’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:338:12: branch_false: following ‘false’ branch (when ‘argc != 2’)... wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: branch_false: ...to here wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: call_function: calling ‘set_xdg_runtime_dir’ from ‘main’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:356:9: return_function: returning to ‘main’ from ‘set_xdg_runtime_dir’ wayland-1.23.1/redhat-linux-build/../tests/test-runner.c:408:38: danger: subtraction of pointers has undefined behavior if they do not point into the same array object # 406| } # 407| # 408|-> total = &__stop_test_section - &__start_test_section; # 409| fprintf(stderr, "%d tests, %d pass, %d fail\n", # 410| total, pass, total - pass); Error: CPPCHECK_WARNING (CWE-476): [#def27] wayland-1.23.1/tests/sanity-test.c:78: warning[nullPointer]: Possible null pointer dereference: null # 76| # 77| test_disable_coredumps(); # 78|-> *null = "Goodbye, world"; # 79| } # 80| Error: CPPCHECK_WARNING (CWE-401): [#def28] wayland-1.23.1/tests/socket-test.c:216: error[memleak]: Memory leak: destroy_listener # 214| destroy_listener->listener.notify = client_destroy_notify; # 215| wl_client_add_destroy_listener(client, &destroy_listener->listener); # 216|-> } # 217| # 218| TEST(absolute_socket_path) Error: CPPCHECK_WARNING (CWE-401): [#def29] wayland-1.23.1/tests/test-compositor.c:332: error[memleak]: Memory leak: wfr # 330| if (d->wfr_num == num) # 331| wl_display_terminate(d->wl_display); # 332|-> } # 333| # 334| static void Error: CPPCHECK_WARNING (CWE-570): [#def30] wayland-1.23.1/tests/test-runner.c:73: error[comparePointers]: Comparing pointers that point to different objects # 71| const struct test *t; # 72| # 73|-> for (t = &__start_test_section; t < &__stop_test_section; t++) # 74| if (strcmp(t->name, name) == 0) # 75| return t; Error: CPPCHECK_WARNING (CWE-570): [#def31] wayland-1.23.1/tests/test-runner.c:90: error[comparePointers]: Comparing pointers that point to different objects # 88| name); # 89| # 90|-> for (t = &__start_test_section; t < &__stop_test_section; t++) # 91| fprintf(stderr, " %s\n", t->name); # 92| Error: COMPILER_WARNING (CWE-252): [#def32] wayland-1.23.1/tests/test-runner.c: scope_hint: In function ‘is_debugger_attached’ wayland-1.23.1/tests/test-runner.c:275:17: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ # 275 | read(pipefd[0], &buf, 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 273| /* Wait until parent is ready */ # 274| close(pipefd[1]); /* Close unused write end */ # 275|-> read(pipefd[0], &buf, 1); # 276| close(pipefd[0]); # 277| if (buf == '-') Error: COMPILER_WARNING (CWE-252): [#def33] wayland-1.23.1/tests/test-runner.c:298:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ # 298 | write(pipefd[1], "-", 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 296| */ # 297| perror("prctl"); # 298|-> write(pipefd[1], "-", 1); # 299| } else { # 300| /* Signal to client that parent is ready by passing '+' */ Error: COMPILER_WARNING (CWE-252): [#def34] wayland-1.23.1/tests/test-runner.c:301:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ # 301 | write(pipefd[1], "+", 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~ # 299| } else { # 300| /* Signal to client that parent is ready by passing '+' */ # 301|-> write(pipefd[1], "+", 1); # 302| } # 303| close(pipefd[1]); Error: CPPCHECK_WARNING (CWE-570): [#def35] wayland-1.23.1/tests/test-runner.c:359: error[comparePointers]: Comparing pointers that point to different objects # 357| # 358| pass = 0; # 359|-> for (t = &__start_test_section; t < &__stop_test_section; t++) { # 360| int success = 0; # 361| Error: CPPCHECK_WARNING (CWE-570): [#def36] wayland-1.23.1/tests/test-runner.c:408: error[subtractPointers]: Subtracting pointers that point to different objects # 406| } # 407| # 408|-> total = &__stop_test_section - &__start_test_section; # 409| fprintf(stderr, "%d tests, %d pass, %d fail\n", # 410| total, pass, total - pass);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-16.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | wayland-1.23.1-1.fc43 |
store-results-to | /tmp/tmpifjuhg9r/wayland-1.23.1-1.fc43.tar.xz |
time-created | 2025-04-25 15:57:06 |
time-finished | 2025-04-25 15:58:39 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpifjuhg9r/wayland-1.23.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpifjuhg9r/wayland-1.23.1-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |