Fixed findings

List of Findings

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

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

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.3.0-2.fc44
diffbase-store-results-to/tmp/tmp914zed06/wayland-utils-1.3.0-2.fc44.tar.xz
diffbase-time-created2026-01-08 22:05:54
diffbase-time-finished2026-01-08 22:07:08
diffbase-toolcsmock
diffbase-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'
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.2.0-7.fc43
store-results-to/tmp/tmpbxhjalce/wayland-utils-1.2.0-7.fc43.tar.xz
time-created2026-01-08 22:03:51
time-finished2026-01-08 22:05:33
titleFixed findings
toolcsmock
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'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9