wayland-utils-1.3.0-2.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
wayland-utils-1.3.0/redhat-linux-build/wayland-info/drm-lease-v1-client-protocol.h:462:16: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2309:1: enter_function: entry to ‘drm_lease_device_connector’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2314:44: call_function: inlined call to ‘zalloc’ from ‘drm_lease_device_connector’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2314:44: call_function: inlined call to ‘fail_on_null’ from ‘drm_lease_device_connector’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2316:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2318:9: call_function: inlined call to ‘wp_drm_lease_connector_v1_add_listener’ from ‘drm_lease_device_connector’
#  460|   				       const struct wp_drm_lease_connector_v1_listener *listener, void *data)
#  461|   {
#  462|-> 	return wl_proxy_add_listener((struct wl_proxy *) wp_drm_lease_connector_v1,
#  463|   				     (void (**)(void)) listener, data);
#  464|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
wayland-utils-1.3.0/wayland-info/wayland-info.c:392:12: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1553:1: enter_function: entry to ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1557:44: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1557:44: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
#  390|   fail_on_null(void *p, size_t size, char *file, int32_t line)
#  391|   {
#  392|-> 	if (p == NULL) {
#  393|   		fprintf(stderr, "[wayland-info] ");
#  394|   		if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
wayland-utils-1.3.0/wayland-info/wayland-info.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3109:1: enter_function: entry to ‘add_global_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3112:38: call_function: inlined call to ‘fail_on_null’ from ‘add_global_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3114:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3114:9: call_function: calling ‘init_global_info’ from ‘add_global_info’
#  433|   	global->interface = xstrdup(interface);
#  434|   
#  435|-> 	wl_list_insert(info->infos.prev, &global->link);
#  436|   }
#  437|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
wayland-utils-1.3.0/wayland-info/wayland-info.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3109:1: enter_function: entry to ‘add_global_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3112:38: call_function: inlined call to ‘zalloc’ from ‘add_global_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3112:38: call_function: inlined call to ‘fail_on_null’ from ‘add_global_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3114:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3114:9: call_function: calling ‘init_global_info’ from ‘add_global_info’
#  433|   	global->interface = xstrdup(interface);
#  434|   
#  435|-> 	wl_list_insert(info->infos.prev, &global->link);
#  436|   }
#  437|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1360:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 56)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1352:13: enter_function: entry to ‘add_tablet_v2_tablet_tool_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1357:46: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_tablet_tool_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1357:46: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_tablet_tool_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1359:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1360:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1360:9: danger: ‘calloc(1, 56)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 1358|   
# 1359|   	tool_info->tool = tool;
# 1360|-> 	wl_list_insert(&tablet_seat->tools, &tool_info->link);
# 1361|   
# 1362|   	zwp_tablet_tool_v2_add_listener(tool, &tablet_tool_listener, tool_info);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def6]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1399:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
wayland-utils-1.3.0/wayland-info/wayland-info.c:1392:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_group_buttons’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1399:25: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_pad_group_buttons’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1399:25: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_group_buttons’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1399:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1399:9: danger: assigned to ‘int *’ here; ‘sizeof (int)’ is ‘4’
# 1397|   
# 1398|   	info->button_count = buttons->size / sizeof(int);
# 1399|-> 	info->buttons = xzalloc(buttons->size);
# 1400|   	memcpy(info->buttons, buttons->data, buttons->size);
# 1401|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1447:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1452:47: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1452:47: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_group’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 1452|   	struct tablet_pad_group_info *group = xzalloc(sizeof *group);
# 1453|   
# 1454|-> 	wl_list_insert(&pad_info->groups, &group->link);
# 1455|   	group->group = pad_group;
# 1456|   	zwp_tablet_pad_group_v2_add_listener(pad_group,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1468:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1461:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1465:44: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:27: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:27: acquire_memory: allocated here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:27: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1468:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1466|   	path_elem->path = xstrdup(path);
# 1467|   
# 1468|-> 	wl_list_insert(&pad_info->paths, &path_elem->link);
# 1469|   }
# 1470|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1468:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1461:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1465:44: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1465:44: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:27: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:27: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1466:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1468:9: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 1466|   	path_elem->path = xstrdup(path);
# 1467|   
# 1468|-> 	wl_list_insert(&pad_info->paths, &path_elem->link);
# 1469|   }
# 1470|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1536:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1529:13: enter_function: entry to ‘add_tablet_v2_tablet_pad_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1534:44: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_tablet_pad_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1534:44: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_tablet_pad_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1536:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1536:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1536:9: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1534|   	struct tablet_pad_info *pad_info = xzalloc(sizeof *pad_info);
# 1535|   
# 1536|-> 	wl_list_init(&pad_info->paths);
# 1537|   	wl_list_init(&pad_info->groups);
# 1538|   	pad_info->pad = pad;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1560:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1553:1: enter_function: entry to ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1557:44: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: acquire_memory: allocated here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1560:9: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 1558|   	path_elem->path = xstrdup(path);
# 1559|   
# 1560|-> 	wl_list_insert(&tablet_info->paths, &path_elem->link);
# 1561|   }
# 1562|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1560:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1553:1: enter_function: entry to ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1557:44: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1557:44: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:27: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_path’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1558:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1560:9: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
# 1558|   	path_elem->path = xstrdup(path);
# 1559|   
# 1560|-> 	wl_list_insert(&tablet_info->paths, &path_elem->link);
# 1561|   }
# 1562|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1607:1: enter_function: entry to ‘add_tablet_v2_tablet_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1611:43: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_tablet_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1611:43: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_tablet_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 1611|   	struct tablet_info *tablet_info = xzalloc(sizeof *tablet_info);
# 1612|   
# 1613|-> 	wl_list_init(&tablet_info->paths);
# 1614|   	tablet_info->tablet = tablet;
# 1615|   	wl_list_insert(&tablet_seat->tablets, &tablet_info->link);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1631:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1627:1: enter_function: entry to ‘add_tablet_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1629:48: call_function: inlined call to ‘zalloc’ from ‘add_tablet_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1629:48: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1631:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1631:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1631:9: danger: ‘calloc(1, 80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
# 1629|   	struct tablet_seat_info *tablet_seat = xzalloc(sizeof *tablet_seat);
# 1630|   
# 1631|-> 	wl_list_insert(&tablet_info->seats, &tablet_seat->link);
# 1632|   	tablet_seat->seat = zwp_tablet_manager_v2_get_tablet_seat(
# 1633|   		tablet_info->manager, seat->seat);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1651:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1646:1: enter_function: entry to ‘add_tablet_v2_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1649:41: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1649:41: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1651:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1651:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1651:9: danger: ‘calloc(1, 80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
# 1649|   	struct tablet_v2_info *tablet = xzalloc(sizeof *tablet);
# 1650|   
# 1651|-> 	wl_list_init(&tablet->seats);
# 1652|   	tablet->info = info;
# 1653|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1774:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1769:1: enter_function: entry to ‘add_xdg_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1772:49: call_function: inlined call to ‘zalloc’ from ‘add_xdg_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1772:49: call_function: inlined call to ‘fail_on_null’ from ‘add_xdg_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1774:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1774:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1774:9: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 1772|   	struct xdg_output_v1_info *xdg_output = xzalloc(sizeof *xdg_output);
# 1773|   
# 1774|-> 	wl_list_insert(&manager_info->outputs, &xdg_output->link);
# 1775|   	xdg_output->xdg_output = zxdg_output_manager_v1_get_xdg_output(
# 1776|   		manager_info->manager, output->output);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1792:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1786:1: enter_function: entry to ‘add_xdg_output_manager_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1790:54: call_function: inlined call to ‘zalloc’ from ‘add_xdg_output_manager_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1790:54: call_function: inlined call to ‘fail_on_null’ from ‘add_xdg_output_manager_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1792:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1792:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1792:9: danger: ‘calloc(1, 80)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 1790|   	struct xdg_output_manager_v1_info *manager = xzalloc(sizeof *manager);
# 1791|   
# 1792|-> 	wl_list_init(&manager->outputs);
# 1793|   	manager->info = info;
# 1794|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1818:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 112)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1810:1: enter_function: entry to ‘add_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1812:34: call_function: inlined call to ‘zalloc’ from ‘add_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1812:34: call_function: inlined call to ‘fail_on_null’ from ‘add_seat_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1816:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1818:9: call_function: calling ‘init_global_info’ from ‘add_seat_info’
# 1816|   	seat->info = info;
# 1817|   
# 1818|-> 	init_global_info(info, &seat->global, id, "wl_seat", version);
# 1819|   	seat->global.print = print_seat_info;
# 1820|   	seat->global.destroy = destroy_seat_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1842:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1837:1: enter_function: entry to ‘shm_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1840:41: call_function: inlined call to ‘zalloc’ from ‘shm_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1840:41: call_function: inlined call to ‘fail_on_null’ from ‘shm_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1842:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1842:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1842:9: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 1840|   	struct shm_format *shm_format = xzalloc(sizeof *shm_format);
# 1841|   
# 1842|-> 	wl_list_insert(&shm->formats, &shm_format->link);
# 1843|   	shm_format->format = format;
# 1844|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1869:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1865:1: enter_function: entry to ‘add_shm_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1867:32: call_function: inlined call to ‘zalloc’ from ‘add_shm_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1867:32: call_function: inlined call to ‘fail_on_null’ from ‘add_shm_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1869:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1869:9: call_function: calling ‘init_global_info’ from ‘add_shm_info’
# 1867|   	struct shm_info *shm = xzalloc(sizeof *shm);
# 1868|   
# 1869|-> 	init_global_info(info, &shm->global, id, "wl_shm", version);
# 1870|   	shm->global.print = print_shm_info;
# 1871|   	shm->global.destroy = destroy_shm_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1892:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1883:1: enter_function: entry to ‘linux_dmabuf_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1888:12: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1891:33: call_function: inlined call to ‘zalloc’ from ‘linux_dmabuf_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1891:33: call_function: inlined call to ‘fail_on_null’ from ‘linux_dmabuf_handle_format’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1892:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1892:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1892:9: danger: ‘calloc(1, 32)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 1890|   
# 1891|   	linux_dmabuf_modifier = xzalloc(sizeof *linux_dmabuf_modifier);
# 1892|-> 	wl_list_insert(&dmabuf->modifiers, &linux_dmabuf_modifier->link);
# 1893|   	linux_dmabuf_modifier->format = format;
# 1894|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1902:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1897:1: enter_function: entry to ‘linux_dmabuf_handle_modifier’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1900:63: call_function: inlined call to ‘zalloc’ from ‘linux_dmabuf_handle_modifier’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1900:63: call_function: inlined call to ‘fail_on_null’ from ‘linux_dmabuf_handle_modifier’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1902:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1902:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:1902:9: danger: ‘calloc(1, 32)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
# 1900|   	struct linux_dmabuf_modifier *linux_dmabuf_modifier = xzalloc(sizeof *linux_dmabuf_modifier);
# 1901|   
# 1902|-> 	wl_list_insert(&dmabuf->modifiers, &linux_dmabuf_modifier->link);
# 1903|   	linux_dmabuf_modifier->format = format;
# 1904|   	linux_dmabuf_modifier->modifier = ((uint64_t)modifier_hi) << 32 | modifier_lo;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
wayland-utils-1.3.0/wayland-info/wayland-info.c:1968:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 56)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1963:1: enter_function: entry to ‘linux_dmabuf_feedback_handle_tranche_done’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1966:48: call_function: inlined call to ‘zalloc’ from ‘linux_dmabuf_feedback_handle_tranche_done’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1966:48: call_function: inlined call to ‘fail_on_null’ from ‘linux_dmabuf_feedback_handle_tranche_done’
wayland-utils-1.3.0/wayland-info/wayland-info.c:1968:25: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:1968:25: danger: ‘calloc(1, 56)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1966|   	struct linux_dmabuf_tranche *tranche = xzalloc(sizeof(struct linux_dmabuf_tranche));
# 1967|   
# 1968|-> 	memcpy(tranche, &dmabuf->current_tranche, sizeof(struct linux_dmabuf_tranche));
# 1969|   	wl_list_insert(&dmabuf->tranches, &tranche->link);
# 1970|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2014:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 176)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2010:1: enter_function: entry to ‘add_linux_dmabuf_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2012:44: call_function: inlined call to ‘zalloc’ from ‘add_linux_dmabuf_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2012:44: call_function: inlined call to ‘fail_on_null’ from ‘add_linux_dmabuf_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2014:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2014:9: call_function: calling ‘init_global_info’ from ‘add_linux_dmabuf_info’
# 2012|   	struct linux_dmabuf_info *dmabuf = xzalloc(sizeof *dmabuf);
# 2013|   
# 2014|-> 	init_global_info(info, &dmabuf->global, id, "zwp_linux_dmabuf_v1", version);
# 2015|   	dmabuf->global.print = print_linux_dmabuf_info;
# 2016|   	dmabuf->global.destroy = destroy_linux_dmabuf_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2073:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2061:1: enter_function: entry to ‘output_handle_mode’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2066:36: acquire_memory: allocated here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2066:36: call_function: inlined call to ‘fail_on_null’ from ‘output_handle_mode’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2068:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2073:9: danger: ‘malloc(32)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
# 2071|   	mode->refresh = refresh;
# 2072|   
# 2073|-> 	wl_list_insert(output->modes.prev, &mode->link);
# 2074|   }
# 2075|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 160)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2142:1: enter_function: entry to ‘add_output_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2144:38: call_function: inlined call to ‘zalloc’ from ‘add_output_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2144:38: call_function: inlined call to ‘fail_on_null’ from ‘add_output_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2146:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2146:9: call_function: calling ‘init_global_info’ from ‘add_output_info’
# 2144|   	struct output_info *output = xzalloc(sizeof *output);
# 2145|   
# 2146|-> 	init_global_info(info, &output->global, id, "wl_output", version);
# 2147|   	output->global.print = print_output_info;
# 2148|   	output->global.destroy = destroy_output_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2236:26: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2231:1: enter_function: entry to ‘add_presentation_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2233:44: call_function: inlined call to ‘zalloc’ from ‘add_presentation_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2233:44: call_function: inlined call to ‘fail_on_null’ from ‘add_presentation_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2236:26: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2235:9: call_function: calling ‘init_global_info’ from ‘add_presentation_info’
# 2234|   
# 2235|   	init_global_info(info, &prinfo->global, id,
# 2236|-> 			 wp_presentation_interface.name, version);
# 2237|   	prinfo->global.print = print_presentation_info;
# 2238|   	prinfo->global.destroy = destroy_presentation_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 96)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2382:1: enter_function: entry to ‘add_drm_lease_device_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2385:45: call_function: inlined call to ‘zalloc’ from ‘add_drm_lease_device_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2385:45: call_function: inlined call to ‘fail_on_null’ from ‘add_drm_lease_device_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2388:17: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2387:9: call_function: calling ‘init_global_info’ from ‘add_drm_lease_device_v1_info’
# 2386|   
# 2387|   	init_global_info(info, &dev->global, id,
# 2388|-> 		wp_drm_lease_device_v1_interface.name, version);
# 2389|   	dev->global.print = print_drm_lease_device_info;
# 2390|   	dev->global.destroy = destroy_drm_lease_device_info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 200)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2735:1: enter_function: entry to ‘add_color_management_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2739:17: call_function: inlined call to ‘zalloc’ from ‘add_color_management_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2739:17: call_function: inlined call to ‘fail_on_null’ from ‘add_color_management_output_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: throw: if ‘wl_list_insert’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: danger: ‘calloc(1, 200)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
# 2739|   		xzalloc(sizeof(struct wp_color_management_output_v1_info));
# 2740|   
# 2741|-> 	wl_list_insert(&color->outputs, &output->link);
# 2742|   	output->color = color;
# 2743|   	output->output = wl_output;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
wayland-utils-1.3.0/wayland-info/wayland-info.c:2916:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 176)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2910:1: enter_function: entry to ‘add_color_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2913:53: call_function: inlined call to ‘zalloc’ from ‘add_color_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2913:53: call_function: inlined call to ‘fail_on_null’ from ‘add_color_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:2916:17: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:2915:9: call_function: calling ‘init_global_info’ from ‘add_color_management_v1_info’
# 2914|   
# 2915|   	init_global_info(info, &color->global, id,
# 2916|-> 		wp_color_manager_v1_interface.name, version);
# 2917|   
# 2918|   	color->wayland = info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
wayland-utils-1.3.0/wayland-info/wayland-info.c:3084:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 136)’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3077:1: enter_function: entry to ‘add_color_representation_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3081:17: call_function: inlined call to ‘zalloc’ from ‘add_color_representation_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3081:17: call_function: inlined call to ‘fail_on_null’ from ‘add_color_representation_management_v1_info’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3084:17: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3083:9: call_function: calling ‘init_global_info’ from ‘add_color_representation_management_v1_info’
# 3082|   
# 3083|   	init_global_info(info, &color_repr->global, id,
# 3084|-> 		wp_color_representation_manager_v1_interface.name, version);
# 3085|   
# 3086|   	color_repr->wayland = info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.interface’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3215:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3216:33: branch_true: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3216:20: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3219:28: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:55: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:43: acquire_memory: allocated here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3215:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3216:33: branch_true: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3216:20: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3219:28: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:55: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:25: danger: ‘*info.interface’ leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
# 3221|   				print_usage(argv[0], EXIT_FAILURE);
# 3222|   			}
# 3223|-> 			info->interface = strdup(argv[++i]);
# 3224|   		} else {
# 3225|   			fprintf(stderr, "Unknown option %s\n", argv[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
wayland-utils-1.3.0/wayland-info/wayland-info.c:3223:25: warning[-Wanalyzer-malloc-leak]: leak of ‘info.interface’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3232:1: enter_function: entry to ‘main’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3236:9: call_function: calling ‘parse_cmdline’ from ‘main’
# 3221|   				print_usage(argv[0], EXIT_FAILURE);
# 3222|   			}
# 3223|-> 			info->interface = strdup(argv[++i]);
# 3224|   		} else {
# 3225|   			fprintf(stderr, "Unknown option %s\n", argv[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
wayland-utils-1.3.0/wayland-info/wayland-info.c:3238:24: warning[-Wanalyzer-malloc-leak]: leak of ‘info.interface’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3232:1: enter_function: entry to ‘main’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3236:9: call_function: calling ‘parse_cmdline’ from ‘main’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3236:9: return_function: returning to ‘main’ from ‘parse_cmdline’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3238:24: throw: if ‘wl_display_connect’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3238:24: danger: ‘info.interface’ leaks here; was allocated at [(10)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/9)
# 3236|   	parse_cmdline(&info, argc, argv);
# 3237|   
# 3238|-> 	info.display = wl_display_connect(NULL);
# 3239|   	if (!info.display) {
# 3240|   		fprintf(stderr, "failed to create display: %s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
wayland-utils-1.3.0/wayland-info/wayland-info.c:3249:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info.interface’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3232:1: enter_function: entry to ‘main’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3236:9: call_function: calling ‘parse_cmdline’ from ‘main’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3236:9: return_function: returning to ‘main’ from ‘parse_cmdline’
wayland-utils-1.3.0/wayland-info/wayland-info.c:3239:12: branch_false: following ‘false’ branch...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3245:9: branch_false: ...to here
wayland-utils-1.3.0/wayland-info/wayland-info.c:3249:9: throw: if ‘wl_list_init’ throws an exception...
wayland-utils-1.3.0/wayland-info/wayland-info.c:3249:9: danger: ‘info.interface’ leaks here; was allocated at [(10)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/9)
# 3247|   	info.wp_color_management_v1_info = NULL;
# 3248|   	info.wp_color_representation_v1_info = NULL;
# 3249|-> 	wl_list_init(&info.infos);
# 3250|   	wl_list_init(&info.seats);
# 3251|   	wl_list_init(&info.outputs);

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-29.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-namewayland-utils-1.3.0-2.fc44
store-results-to/tmp/tmp914zed06/wayland-utils-1.3.0-2.fc44.tar.xz
time-created2026-01-08 22:05:54
time-finished2026-01-08 22:07:08
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp914zed06/wayland-utils-1.3.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp914zed06/wayland-utils-1.3.0-2.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9