libXcursor-1.2.1-7.fc40

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/cursor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/cursor.c: scope_hint: In function 'XcursorCursorsDestroy'
libXcursor-1.2.1-build/libXcursor-1.2.1/src/cursor.c:33:23: warning[-Wanalyzer-malloc-leak]: leak of 'XcursorCursorsCreate(dpy, *images.nimage)'
#   31|   
#   32|       cursors = malloc (sizeof (XcursorCursors) +
#   33|-> 		      (size_t) size * sizeof (Cursor));
#   34|       if (!cursors)
#   35|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/cursor.c: scope_hint: In function '_XcursorFloydSteinberg'
libXcursor-1.2.1-build/libXcursor-1.2.1/src/cursor.c:452:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*iP'
#  450|   	{
#  451|   	    aR = *aP;
#  452|-> 	    iR = *iP;
#  453|   	    if (aR >= 0x80)
#  454|   	    {

Error: CPPCHECK_WARNING: [#def4]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/display.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/file.c: scope_hint: In function 'XcursorXcFileLoad'
libXcursor-1.2.1-build/libXcursor-1.2.1/src/file.c:160:9: warning[-Wanalyzer-malloc-leak]: leak of '_XcursorReadFileHeader(file)'
/usr/include/strings.h:23: included_from: Included from here.
/usr/include/string.h:462: included_from: Included from here.
libXcursor-1.2.1-build/libXcursor-1.2.1/src/file.c:25: included_from: Included from here.
#  158|       unsigned char   bytes[4];
#  159|   
#  160|->     if (!file || !u)
#  161|           return XcursorFalse;
#  162|   

Error: CLANG_WARNING: [#def7]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/file.c:304:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  302|       for (toc = 0; toc < fileHeader->ntoc; toc++)
#  303|       {
#  304|-> 	if (!_XcursorWriteUInt (file, fileHeader->tocs[toc].type))
#  305|   	    return XcursorFalse;
#  306|   	if (!_XcursorWriteUInt (file, fileHeader->tocs[toc].subtype))

Error: CPPCHECK_WARNING: [#def8]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/library.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libXcursor-1.2.1-build/libXcursor-1.2.1/src/xlib.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-190.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibXcursor-1.2.1-7.fc40
store-results-to/tmp/tmpj9l1s9sm/libXcursor-1.2.1-7.fc40.tar.xz
time-created2024-07-03 14:31:50
time-finished2024-07-03 14:33:15
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpj9l1s9sm/libXcursor-1.2.1-7.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpj9l1s9sm/libXcursor-1.2.1-7.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9