Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c: scope_hint: In function 'strv_from_argv' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c:82:20: warning[-Wanalyzer-malloc-leak]: leak of 'safe_strdup(*<unknown>)' # 80| for (int i = 0; i < argc; i++) { # 81| char *copy = safe_strdup(argv[i]); # 82|-> if (!copy) { # 83| strv_free(strv); # 84| return NULL; Error: COMPILER_WARNING: [#def2] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c: scope_hint: In function 'strv_from_string' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c:113:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 113 | const char *s = in; # | ^~~~~ # 111| assert(in != NULL); # 112| # 113|-> const char *s = in; # 114| size_t l, nelems = 0; # 115| while (next_word(&s, &l, separators) != NULL) Error: COMPILER_WARNING: [#def3] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c:123:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 123 | size_t strv_len = nelems + 1; /* NULL-terminated */ # | ^~~~~~ # 121| } # 122| # 123|-> size_t strv_len = nelems + 1; /* NULL-terminated */ # 124| char **strv = zalloc(strv_len * sizeof *strv); # 125| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c:27: included_from: Included from here. xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h: scope_hint: In function 'strv_free.part.0' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:275:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:30: included_from: Included from here. xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h: scope_hint: In function 'strv_free.part.0' # 273| } # 274| # 275|-> free (strv); # 276| } # 277| Error: COMPILER_WARNING: [#def5] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.c:27: included_from: Included from here. xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h: scope_hint: In function 'double_array_from_string' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:295:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 295 | size_t nelem; # | ^~~~~~ # 293| *length = 0; # 294| # 295|-> size_t nelem; # 296| char **strv = strv_from_string(in, separator, &nelem); # 297| if(!strv) Error: COMPILER_WARNING: [#def6] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:300:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 300 | double *numv = zalloc(sizeof(double) * nelem); # | ^~~~~~ # 298| return result; # 299| # 300|-> double *numv = zalloc(sizeof(double) * nelem); # 301| for (size_t idx = 0; idx < nelem; idx++) { # 302| double val; Error: COMPILER_WARNING: [#def7] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h: scope_hint: In function 'kv_double_from_string' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:342:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 342 | size_t npairs; # | ^~~~~~ # 340| return -1; # 341| # 342|-> size_t npairs; # 343| char **pairs = strv_from_string(string, pair_separator, &npairs); # 344| if (!pairs || npairs == 0) Error: COMPILER_WARNING: [#def8] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h: scope_hint: In function 'str_sanitize' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/util-strings.h:451:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code # 451 | size_t slen = min(strlen(str), 512); # | ^~~~~~ # 449| return strdup(str); # 450| # 451|-> size_t slen = min(strlen(str), 512); # 452| char *sanitized = zalloc(2 * slen + 1); # 453| const char *src = str; Error: COMPILER_WARNING (CWE-694): [#def9] 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-1023): [#def10] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:2625:9: warning[-Wswitch]: enumeration value 'LIBINPUT_EVENT_GESTURE_HOLD_BEGIN' not handled in switch # 2623| driver_data = pInfo->private; # 2624| # 2625|-> switch (type) { # 2626| case LIBINPUT_EVENT_NONE: # 2627| case LIBINPUT_EVENT_DEVICE_ADDED: Error: COMPILER_WARNING (CWE-1023): [#def11] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:2625:9: warning[-Wswitch]: enumeration value 'LIBINPUT_EVENT_GESTURE_HOLD_END' not handled in switch # 2623| driver_data = pInfo->private; # 2624| # 2625|-> switch (type) { # 2626| case LIBINPUT_EVENT_NONE: # 2627| case LIBINPUT_EVENT_DEVICE_ADDED: Error: COMPILER_WARNING (CWE-1023): [#def12] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:2625:9: warning[-Wswitch]: enumeration value 'LIBINPUT_EVENT_TABLET_PAD_DIAL' not handled in switch # 2623| driver_data = pInfo->private; # 2624| # 2625|-> switch (type) { # 2626| case LIBINPUT_EVENT_NONE: # 2627| case LIBINPUT_EVENT_DEVICE_ADDED: Error: COMPILER_WARNING (CWE-1023): [#def13] xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c: scope_hint: In function 'xf86libinput_handle_event' xorg-x11-drv-libinput-1.5.0-build/xf86-input-libinput-1.5.0/src/xf86libinput.c:2625:9: warning[-Wswitch]: enumeration value 'LIBINPUT_EVENT_TABLET_PAD_KEY' not handled in switch # 2625 | switch (type) { # | ^~~~~~ # 2623| driver_data = pInfo->private; # 2624| # 2625|-> switch (type) { # 2626| case LIBINPUT_EVENT_NONE: # 2627| case LIBINPUT_EVENT_DEVICE_ADDED: Error: COMPILER_WARNING (CWE-694): [#def14] 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): [#def15] 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: [#def16] 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;
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-114.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | xorg-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-created | 2024-11-13 03:44:12 |
time-finished | 2024-11-13 03:45:43 |
tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |