isomd5sum-1.2.5-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/checkisomd5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/libcheckisomd5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/libimplantisomd5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def4]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/md5.c:181:27: warning[-Warray-parameter=]: argument 1 of type ‘uint32[4]’ {aka ‘unsigned int[4]’} with mismatched bound
#  181 | void MD5_Transform(uint32 buf[4], uint32 const in[16])
#      |                    ~~~~~~~^~~~~~
isomd5sum-1.2.5-build/isomd5sum-1.2.5/md5.c:26:28: note: previously declared as ‘uint32 *’ {aka ‘unsigned int *’}
#   26 | void MD5_Transform(uint32 *buf, uint32 const *in);
#      |                    ~~~~~~~~^~~
#  179|    * the data and converts bytes into longwords for this routine.
#  180|    */
#  181|-> void MD5_Transform(uint32 buf[4], uint32 const in[16])
#  182|   {
#  183|           register uint32 a, b, c, d;

Error: COMPILER_WARNING: [#def5]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/md5.c:181:48: warning[-Warray-parameter=]: argument 2 of type ‘const uint32[16]’ {aka ‘const unsigned int[16]’} with mismatched bound
#  181 | void MD5_Transform(uint32 buf[4], uint32 const in[16])
#      |                                   ~~~~~~~~~~~~~^~~~~~
isomd5sum-1.2.5-build/isomd5sum-1.2.5/md5.c:26:47: note: previously declared as ‘const uint32 *’ {aka ‘const unsigned int *’}
#   26 | void MD5_Transform(uint32 *buf, uint32 const *in);
#      |                                 ~~~~~~~~~~~~~~^~
#  179|    * the data and converts bytes into longwords for this routine.
#  180|    */
#  181|-> void MD5_Transform(uint32 buf[4], uint32 const in[16])
#  182|   {
#  183|           register uint32 a, b, c, d;

Error: CPPCHECK_WARNING: [#def6]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c: scope_hint: In function ‘parsepvd’
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c:134:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
#  132|   
#  133|       struct volume_info *result = malloc(sizeof(struct volume_info));
#  134|->     result->skipsectors = SKIPSECTORS;
#  135|       result->supported = 0;
#  136|       result->fragmentcount = FRAGMENT_COUNT;

Error: COMPILER_WARNING: [#def8]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c: scope_hint: In function ‘validate_fragment’
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c:221:13: warning[-Wstringop-truncation]: ‘strncat’ output may be truncated copying 1 byte from a string of length 2
#  221 |             strncat(hashsums, tmp, 1);
#      |             ^
#  219|           snprintf(tmp, 3, "%01x", digest[i]);
#  220|           if (hashsums != NULL)
#  221|->             strncat(hashsums, tmp, 1);
#  222|           if (fragmentsums != NULL && tmp[0] != fragmentsums[j++])
#  223|               return false;

Error: COMPILER_WARNING: [#def9]
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c: scope_hint: In function ‘md5sum’
isomd5sum-1.2.5-build/isomd5sum-1.2.5/utilities.c:238:9: warning[-Wstringop-truncation]: ‘strncat’ output may be truncated copying 2 bytes from a string of length 2
#  238 |         strncat(hashsum, tmp, 2);
#      |         ^
#  236|           char tmp[3];
#  237|           snprintf(tmp, 3, "%02x", digest[i]);
#  238|->         strncat(hashsum, tmp, 2);
#  239|       }
#  240|   }

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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-97.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameisomd5sum-1.2.5-1.fc41
store-results-to/tmp/tmpy9rqgrdn/isomd5sum-1.2.5-1.fc41.tar.xz
time-created2024-07-03 13:22:45
time-finished2024-07-03 13:23:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpy9rqgrdn/isomd5sum-1.2.5-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpy9rqgrdn/isomd5sum-1.2.5-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9