Fixed defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-hkdf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-477): [#def2]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c: scope_hint: In function ‘egg_libgcrypt_initialize’
gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c:71:25: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated
gcr-4.2.1-build/gcr-4.2.1/egg/egg-libgcrypt.c:27: included_from: Included from here.
/usr/include/gcrypt.h:2025:6: note: declared here
#   69|   			gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
#   70|   			gcry_check_version (LIBGCRYPT_VERSION);
#   71|-> 			gcry_set_log_handler (log_handler, NULL);
#   72|   			gcry_set_outofcore_handler (no_mem_handler, NULL);
#   73|   			gcry_set_fatalerror_handler (fatal_handler, NULL);

Error: CPPCHECK_WARNING: [#def3]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-openssl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def5]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c:883:9: warning[deadcode.DeadStores]: Although the value stored to 'mode' is used in the enclosing expression, the value is never actually read from 'mode'
#  881|   		goto done;
#  882|   
#  883|-> 	algo = mode = 0;
#  884|   
#  885|   	/* Read in all the encryption type */

Error: CLANG_WARNING: [#def6]
gcr-4.2.1-build/gcr-4.2.1/egg/egg-symkey.c:1024:2: warning[unix.Malloc]: Attempt to free released memory
# 1022|   	if (salt != NULL)
# 1023|   		g_bytes_unref (salt);
# 1024|-> 	g_free (iv);
# 1025|   	egg_secure_free (key);
# 1026|   	egg_asn1x_destroy (asn);

Error: CPPCHECK_WARNING: [#def7]
gcr-4.2.1-build/gcr-4.2.1/egg/test-openssl.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
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-28.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegcr-4.3.0-2.fc41
diffbase-store-results-to/tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.tar.xz
diffbase-time-created2024-07-03 12:55:01
diffbase-time-finished2024-07-03 12:57:28
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp5cahhlh7/gcr-4.3.0-2.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-28.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegcr-4.2.1-1.fc40
store-results-to/tmp/tmpu8jd98ys/gcr-4.2.1-1.fc40.tar.xz
time-created2024-07-03 12:51:35
time-finished2024-07-03 12:54:29
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpu8jd98ys/gcr-4.2.1-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpu8jd98ys/gcr-4.2.1-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9