Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:22: included_from: Included from here.
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
man-db-2.12.1-build/man-db-2.12.1/gl/lib/xmalloc.c: scope_hint: In function 'xcalloc'
#  296|   xcalloc (size_t n, size_t s)
#  297|   {
#  298|->   return nonnull (calloc (n, s));
#  299|   }
#  300|   

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
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-111.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameman-db-2.13.0-1.fc42
diffbase-store-results-to/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz
diffbase-time-created2024-11-13 02:04:42
diffbase-time-finished2024-11-13 02:08:02
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_qg63j94/man-db-2.13.0-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-111.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameman-db-2.12.1-2.fc41
store-results-to/tmp/tmpiofh6y1v/man-db-2.12.1-2.fc41.tar.xz
time-created2024-11-13 02:00:35
time-finished2024-11-13 02:04:18
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpiofh6y1v/man-db-2.12.1-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpiofh6y1v/man-db-2.12.1-2.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9