Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libinput-1.29.1/src/evdev-fallback.c:1652:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32) + (long unsigned int)slot * 32’
libinput-1.29.1/src/evdev-fallback.c:1744:1: enter_function: entry to ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1749:20: call_function: calling ‘zalloc’ from ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1749:20: return_function: returning to ‘fallback_dispatch_create’ from ‘zalloc’
libinput-1.29.1/src/evdev-fallback.c:1757:9: call_function: calling ‘fallback_dispatch_init_abs’ from ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1757:9: return_function: returning to ‘fallback_dispatch_create’ from ‘fallback_dispatch_init_abs’
libinput-1.29.1/src/evdev-fallback.c:1758:13: call_function: calling ‘fallback_dispatch_init_slots’ from ‘fallback_dispatch_create’
# 1650|   		slots[slot].seat_slot = -1;
# 1651|   		slots[slot].point.x =
# 1652|-> 			libevdev_get_slot_value(evdev, slot, ABS_MT_POSITION_X);
# 1653|   		slots[slot].point.y =
# 1654|   			libevdev_get_slot_value(evdev, slot, ABS_MT_POSITION_Y);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libinput-1.29.1/src/evdev-fallback.c:1654:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc((long unsigned int)libevdev_get_num_slots(*device.evdev) * 32) + (long unsigned int)slot * 32’
libinput-1.29.1/src/evdev-fallback.c:1744:1: enter_function: entry to ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1749:20: call_function: calling ‘zalloc’ from ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1749:20: return_function: returning to ‘fallback_dispatch_create’ from ‘zalloc’
libinput-1.29.1/src/evdev-fallback.c:1757:9: call_function: calling ‘fallback_dispatch_init_abs’ from ‘fallback_dispatch_create’
libinput-1.29.1/src/evdev-fallback.c:1757:9: return_function: returning to ‘fallback_dispatch_create’ from ‘fallback_dispatch_init_abs’
libinput-1.29.1/src/evdev-fallback.c:1758:13: call_function: calling ‘fallback_dispatch_init_slots’ from ‘fallback_dispatch_create’
# 1652|   			libevdev_get_slot_value(evdev, slot, ABS_MT_POSITION_X);
# 1653|   		slots[slot].point.y =
# 1654|-> 			libevdev_get_slot_value(evdev, slot, ABS_MT_POSITION_Y);
# 1655|   	}
# 1656|   	dispatch->mt.slots = slots;

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
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-164.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-gcc-latest-x86_64
diffbase-project-namelibinput-1.29.2-1.fc44
diffbase-store-results-to/tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.tar.xz
diffbase-time-created2025-10-28 19:09:44
diffbase-time-finished2025-10-28 19:12:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpmkj5shp2/libinput-1.29.2-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-164.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-gcc-latest-x86_64
project-namelibinput-1.29.1-1.fc43
store-results-to/tmp/tmpbjgvpfci/libinput-1.29.1-1.fc43.tar.xz
time-created2025-10-28 19:06:18
time-finished2025-10-28 19:09:11
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpbjgvpfci/libinput-1.29.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpbjgvpfci/libinput-1.29.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9