Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-694): [#def1]
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c: scope_hint: In function 'xf86libinput_set_pressure_range'
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:468:53: warning[-Wshadow]: declaration of 'range' shadows a global declaration
#  468 |                                 const struct range *range)
#      |                                 ~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/xorg/xf86.h:44: included_from: Included from here.
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:36: included_from: Included from here.
/usr/include/xorg/xf86str.h:110:3: note: shadowed declaration is here
#  110 | } range;
#      |   ^~~~~
#  466|   static inline bool
#  467|   xf86libinput_set_pressure_range(struct xf86libinput *driver_data,
#  468|-> 				const struct range *range)
#  469|   {
#  470|   #if HAVE_LIBINPUT_PRESSURE_RANGE

Error: COMPILER_WARNING (CWE-694): [#def2]
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c: scope_hint: In function 'xf86libinput_parse_pressure_range_option'
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:3674:56: warning[-Wshadow]: declaration of 'range' shadows a global declaration
# 3674 |                                          struct range *range)
#      |                                          ~~~~~~~~~~~~~~^~~~~
/usr/include/xorg/xf86str.h:110:3: note: shadowed declaration is here
#  110 | } range;
#      |   ^~~~~
# 3672|   xf86libinput_parse_pressure_range_option(InputInfoPtr pInfo,
# 3673|   					 struct xf86libinput *driver_data,
# 3674|-> 					 struct range *range)
# 3675|   {
# 3676|   #if HAVE_LIBINPUT_PRESSURE_RANGE

Error: COMPILER_WARNING (CWE-694): [#def3]
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c: scope_hint: In function 'LibinputSetPropertyPressureRange'
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:5361:22: warning[-Wshadow]: declaration of 'range' shadows a global declaration
# 5361 |         struct range range = { 0.0, 1.0 };
#      |                      ^~~~~
/usr/include/xorg/xf86str.h:110:3: note: shadowed declaration is here
#  110 | } range;
#      |   ^~~~~
# 5359|   	struct xf86libinput *driver_data = pInfo->private;
# 5360|   	float *vals;
# 5361|-> 	struct range range = { 0.0, 1.0 };
# 5362|   
# 5363|   	if (val->format != 32 || val->size != 2 || val->type != prop_float)

Error: COMPILER_WARNING: [#def4]
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c: scope_hint: In function 'LibinputInitClickfingerButtonmapProperty'
xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:6267:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 6267 |         uint32_t click_methods = libinput_device_config_click_get_methods(device);
#      |         ^~~~~~~~
# 6265|   		return;
# 6266|   
# 6267|-> 	uint32_t click_methods = libinput_device_config_click_get_methods(device);
# 6268|   	if ((click_methods & LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER) == 0)
# 6269|   		return;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-114.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namexorg-x11-drv-libinput-1.4.0-3.fc41
diffbase-store-results-to/tmp/tmp01ax7gs8/xorg-x11-drv-libinput-1.4.0-3.fc41.tar.xz
diffbase-time-created2024-11-13 03:42:10
diffbase-time-finished2024-11-13 03:44:04
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp01ax7gs8/xorg-x11-drv-libinput-1.4.0-3.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp01ax7gs8/xorg-x11-drv-libinput-1.4.0-3.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-114.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namexorg-x11-drv-libinput-1.5.0-1.fc42
store-results-to/tmp/tmpqgn1tnlj/xorg-x11-drv-libinput-1.5.0-1.fc42.tar.xz
time-created2024-11-13 03:44:12
time-finished2024-11-13 03:45:43
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpqgn1tnlj/xorg-x11-drv-libinput-1.5.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpqgn1tnlj/xorg-x11-drv-libinput-1.5.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9