libXcursor-1.2.3-4.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libXcursor-1.2.3/src/cursor.c:34:23: warning[-Wanalyzer-malloc-leak]: leak of 'XcursorCursorsCreate(dpy, *images.nimage)'
libXcursor-1.2.3/src/cursor.c:759:1: enter_function: entry to 'XcursorFilenameLoadCursors'
libXcursor-1.2.3/src/cursor.c:767:8: branch_false: following 'false' branch...
libXcursor-1.2.3/src/cursor.c:769:15: branch_false: ...to here
libXcursor-1.2.3/src/cursor.c:769:15: call_function: calling 'XcursorImagesLoadCursors' from 'XcursorFilenameLoadCursors'
#   32|   
#   33|       cursors = malloc (sizeof (XcursorCursors) +
#   34|-> 		      (size_t) size * sizeof (Cursor));
#   35|       if (!cursors)
#   36|   	return NULL;

Error: COMPILER_WARNING (CWE-704): [#def2]
libXcursor-1.2.3/src/library.c: scope_hint: In function '_XcursorNextPath'
libXcursor-1.2.3/src/library.c:157:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  157 |     char    *colon = strchr (path, ':');
#      |                      ^~~~~~
#  155|   _XcursorNextPath (const char *path)
#  156|   {
#  157|->     char    *colon = strchr (path, ':');
#  158|   
#  159|       if (!colon)

Error: COMPILER_WARNING (CWE-704): [#def3]
libXcursor-1.2.3/src/library.c:157:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  155|   _XcursorNextPath (const char *path)
#  156|   {
#  157|->     char    *colon = strchr (path, ':');
#  158|   
#  159|       if (!colon)

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-248.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibXcursor-1.2.3-4.fc44
store-results-to/tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.tar.xz
time-created2026-08-03 16:46:57
time-finished2026-08-03 16:49:05
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9