Fixed findings

List of Findings

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

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

Error: CPPCHECK_WARNING (CWE-758): [#def3]
libpipeline-1.5.7-build/libpipeline-1.5.7/gl/lib/xmalloc.c:254: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  252|   #endif
#  253|     idx_t adjusted_nbytes
#  254|->     = (INT_MULTIPLY_WRAPV (n, s, &nbytes)
#  255|          ? MIN (IDX_MAX, SIZE_MAX)
#  256|          : nbytes < DEFAULT_MXFAST ? DEFAULT_MXFAST : 0);

Error: CPPCHECK_WARNING (CWE-758): [#def4]
libpipeline-1.5.7-build/libpipeline-1.5.7/gl/lib/xmalloc.c:268: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  266|         && (INT_ADD_WRAPV (n0, n_incr_min, &n)
#  267|             || (0 <= n_max && n_max < n)
#  268|->           || INT_MULTIPLY_WRAPV (n, s, &nbytes)))
#  269|       xalloc_die ();
#  270|     pa = xrealloc (pa, nbytes);

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

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-171.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namelibpipeline-1.5.8-1.fc42
diffbase-store-results-to/tmp/tmpgajrfbvm/libpipeline-1.5.8-1.fc42.tar.xz
diffbase-time-created2024-11-13 01:35:42
diffbase-time-finished2024-11-13 01:37:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpgajrfbvm/libpipeline-1.5.8-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpgajrfbvm/libpipeline-1.5.8-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-171.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibpipeline-1.5.7-6.fc41
store-results-to/tmp/tmpksom5lsd/libpipeline-1.5.7-6.fc41.tar.xz
time-created2024-11-13 01:32:58
time-finished2024-11-13 01:35:18
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpksom5lsd/libpipeline-1.5.7-6.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpksom5lsd/libpipeline-1.5.7-6.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9