dosfstools-4.2-11.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
dosfstools-4.2-build/dosfstools-4.2/src/boot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
dosfstools-4.2-build/dosfstools-4.2/src/charconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CLANG_WARNING: [#def4]
dosfstools-4.2-build/dosfstools-4.2/src/check.c:1337:13: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 1335|                   goto again;
# 1336|               write_volume_label(fs, fs->label);
# 1337|->             offset = find_volume_de(fs, &de);
# 1338|               /* NOTE: doslabel is not updated */
# 1339|               break;

Error: CPPCHECK_WARNING: [#def5]
dosfstools-4.2-build/dosfstools-4.2/src/common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
dosfstools-4.2-build/dosfstools-4.2/src/fat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
dosfstools-4.2-build/dosfstools-4.2/src/fat.c:98:55: warning[core.NullDereference]: Dereference of null pointer
#   96|       printf("Fixing first cluster in FAT.\n");
#   97|       if (fs->fat_bits == 12)
#   98|->         *(uint16_t *)first_cluster = htole16((le16toh(*(uint16_t *)first_cluster) & 0xf000) | FAT_EXTD(fs) | b.media);
#   99|       else if (fs->fat_bits == 16)
#  100|           *(uint16_t *)first_cluster = htole16(FAT_EXTD(fs) | b.media);

Error: CLANG_WARNING: [#def8]
dosfstools-4.2-build/dosfstools-4.2/src/fat.c:100:36: warning[core.NullDereference]: Dereference of null pointer
#   98|           *(uint16_t *)first_cluster = htole16((le16toh(*(uint16_t *)first_cluster) & 0xf000) | FAT_EXTD(fs) | b.media);
#   99|       else if (fs->fat_bits == 16)
#  100|->         *(uint16_t *)first_cluster = htole16(FAT_EXTD(fs) | b.media);
#  101|       else
#  102|           *(uint32_t *)first_cluster = htole32(FAT_EXTD(fs) | b.media);

Error: CLANG_WARNING: [#def9]
dosfstools-4.2-build/dosfstools-4.2/src/fat.c:102:36: warning[core.NullDereference]: Dereference of null pointer
#  100|           *(uint16_t *)first_cluster = htole16(FAT_EXTD(fs) | b.media);
#  101|       else
#  102|->         *(uint32_t *)first_cluster = htole32(FAT_EXTD(fs) | b.media);
#  103|   }
#  104|   

Error: CPPCHECK_WARNING: [#def10]
dosfstools-4.2-build/dosfstools-4.2/src/fatlabel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
dosfstools-4.2-build/dosfstools-4.2/src/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
dosfstools-4.2-build/dosfstools-4.2/src/fsck.fat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
dosfstools-4.2-build/dosfstools-4.2/src/lfn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
dosfstools-4.2-build/dosfstools-4.2/src/mkfs.fat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def15]
dosfstools-4.2-build/dosfstools-4.2/src/mkfs.fat.c:1863:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1861|       if (!create) {
# 1862|   	check_mount(device_name);	/* Is the device already mounted? */
# 1863|-> 	dev = open(device_name, O_EXCL | O_RDWR);	/* Is it a suitable device to build the FS on? */
# 1864|   	if (dev < 0) {
# 1865|   	    fprintf(stderr, "%s: unable to open %s: %s\n", program_name,

Error: CPPCHECK_WARNING: [#def16]
dosfstools-4.2-build/dosfstools-4.2/src/testdevinfo.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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-32.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedosfstools-4.2-11.fc41
store-results-to/tmp/tmpdg5ty3bu/dosfstools-4.2-11.fc41.tar.xz
time-created2024-07-03 12:29:39
time-finished2024-07-03 12:30:38
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdg5ty3bu/dosfstools-4.2-11.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdg5ty3bu/dosfstools-4.2-11.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9