Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
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|   

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-190.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibXcursor-1.2.2-1.fc41
diffbase-store-results-to/tmp/tmp_b6jeuad/libXcursor-1.2.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:33:32
diffbase-time-finished2024-07-03 14:34:34
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_b6jeuad/libXcursor-1.2.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_b6jeuad/libXcursor-1.2.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
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
titleFixed defects
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