Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
exfatprogs-1.2.2-build/exfatprogs-1.2.2/exfat2img/exfat2img.c:895:2: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
#  893|   	fsync(ei->out_fd);
#  894|   	exfat_free_buffer(ei->dump_bdesc, 2);
#  895|-> 	return ret;
#  896|   }
#  897|   

Error: CLANG_WARNING: [#def2]
exfatprogs-1.2.2-build/exfatprogs-1.2.2/fsck/fsck.c:1251:2: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 1249|   	if (err && err != EOF)
# 1250|   		exfat_err("failed to read volume label\n");
# 1251|-> 	err = 0;
# 1252|   
# 1253|   	err = read_bitmap(exfat);

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-118.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameexfatprogs-1.2.4-1.fc41
diffbase-store-results-to/tmp/tmp3nu7b85z/exfatprogs-1.2.4-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:31:07
diffbase-time-finished2024-07-03 12:32:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3nu7b85z/exfatprogs-1.2.4-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp3nu7b85z/exfatprogs-1.2.4-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-118.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameexfatprogs-1.2.2-3.fc40
store-results-to/tmp/tmpo_y0rn48/exfatprogs-1.2.2-3.fc40.tar.xz
time-created2024-07-03 12:29:24
time-finished2024-07-03 12:30:51
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpo_y0rn48/exfatprogs-1.2.2-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpo_y0rn48/exfatprogs-1.2.2-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9