Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
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): [#def2]
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): [#def3]
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): [#def4]
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): [#def5]
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;

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
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-29.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namewayland-utils-1.2.0-7.fc43
diffbase-store-results-to/tmp/tmpbxhjalce/wayland-utils-1.2.0-7.fc43.tar.xz
diffbase-time-created2026-01-08 22:03:51
diffbase-time-finished2026-01-08 22:05:33
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpbxhjalce/wayland-utils-1.2.0-7.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbxhjalce/wayland-utils-1.2.0-7.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
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
titleNewly introduced findings
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