xcb-util-cursor-0.1.5-1.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/load_cursor.c: scope_hint: In function 'xcb_cursor_load_cursor'
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/load_cursor.c:232:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  232 |     xcb_render_animcursorelt_t elements[nimg];
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  230|   
#  231|       /* create a cursor from it */
#  232|->     xcb_render_animcursorelt_t elements[nimg];
#  233|       xcb_render_picture_t pic = xcb_generate_id(c->conn);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/parse_cursor_file.c: scope_hint: In function 'find_best_size'
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/parse_cursor_file.c:70:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cf.tocs'
/usr/include/sys/types.h:176: included_from: Included from here.
/usr/include/stdlib.h:514: included_from: Included from here.
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/parse_cursor_file.c:29: included_from: Included from here.
#   68|       uint32_t nsizes = 0;
#   69|       for (int n = 0; n < cf->header.ntoc; n++) {
#   70|->         const uint32_t size = cf->tocs[n].subtype;
#   71|   
#   72|           if (cf->tocs[n].type != XCURSOR_IMAGE_TYPE)

Error: COMPILER_WARNING (CWE-758): [#def3]
xcb-util-cursor-0.1.5-build/xcb-util-cursor-0.1.5/cursor/shape_to_id.gperf:70:1: warning[-Wmissing-prototypes]: no previous prototype for 'in_word_set'
#   70 | top_left_arrow,66
#      | ^~~~~~~~~~~
#   68|   target,64
#   69|   tcross,65
#   70|-> top_left_arrow,66
#   71|   top_left_corner,67
#   72|   top_right_corner,68

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-130.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namexcb-util-cursor-0.1.5-1.fc42
store-results-to/tmp/tmpfnnpksh3/xcb-util-cursor-0.1.5-1.fc42.tar.xz
time-created2024-11-13 03:32:53
time-finished2024-11-13 03:34:03
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpfnnpksh3/xcb-util-cursor-0.1.5-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpfnnpksh3/xcb-util-cursor-0.1.5-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9