Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
zstd-1.5.5/programs/benchzstd.c:42: included_from: Included from here.
zstd-1.5.5/lib/common/xxhash.h:1457:76: warning[unix.cstring.NullArg]: Null pointer passed as 2nd argument to memory copy function
# 1455|   static void* XXH_malloc(size_t s) { return ZSTD_malloc(s); }
# 1456|   static void  XXH_free  (void* p)  { ZSTD_free(p); }
# 1457|-> static void* XXH_memcpy(void* dest, const void* src, size_t size) { return ZSTD_memcpy(dest,src,size); }
# 1458|   
# 1459|   

Error: CLANG_WARNING: [#def2]
zstd-1.5.5/programs/benchzstd.c:42: included_from: Included from here.
zstd-1.5.5/lib/common/xxhash.h:2450:16: warning[core.NullDereference]: Dereference of null pointer
# 2448|       }
# 2449|       while (len > 0) {
# 2450|->         h64 ^= (*ptr++) * XXH_PRIME64_5;
# 2451|           h64 = XXH_rotl64(h64, 11) * XXH_PRIME64_1;
# 2452|           --len;

Error: CLANG_WARNING: [#def3]
zstd-1.5.5/lib/compress/zstdmt_compress.c:251:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  249|       DEBUGLOG(5, "ZSTDMT_releaseBuffer");
#  250|       if (buf.start == NULL) return;   /* compatible with release on NULL */
#  251|->     ZSTD_pthread_mutex_lock(&bufPool->poolMutex);
#  252|       if (bufPool->nbBuffers < bufPool->totalBuffers) {
#  253|           bufPool->bTable[bufPool->nbBuffers++] = buf;  /* stored for later use */

Error: CLANG_WARNING: [#def4]
zstd-1.5.5/lib/compress/zstdmt_compress.c:982:44: warning[core.NullDereference]: Dereference of null pointer
#  980|       for (jobID=0; jobID <= mtctx->jobIDMask; jobID++) {
#  981|           /* Copy the mutex/cond out */
#  982|->         ZSTD_pthread_mutex_t const mutex = mtctx->jobs[jobID].job_mutex;
#  983|           ZSTD_pthread_cond_t const cond = mtctx->jobs[jobID].job_cond;
#  984|   

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-63.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namezstd-1.5.6-1.fc41
diffbase-store-results-to/tmp/tmp7oql940n/zstd-1.5.6-1.fc41.tar.xz
diffbase-time-created2024-04-22 11:28:00
diffbase-time-finished2024-04-22 11:34:02
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp7oql940n/zstd-1.5.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp7oql940n/zstd-1.5.6-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-63.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namezstd-1.5.5-5.fc40
store-results-to/tmp/tmp11u47pfj/zstd-1.5.5-5.fc40.tar.xz
time-created2024-04-22 11:21:40
time-finished2024-04-22 11:27:45
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp11u47pfj/zstd-1.5.5-5.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp11u47pfj/zstd-1.5.5-5.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9