Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
git-2.44.0-build/git-2.44.0/reftable/reader.c:327:45: warning[core.NullDereference]: Access to field 'full_block_size' results in a dereference of a null pointer (loaded from field 'br')
#  325|   				 struct table_iter *src)
#  326|   {
#  327|-> 	uint64_t next_block_off = src->block_off + src->bi.br->full_block_size;
#  328|   	struct block_reader br = { 0 };
#  329|   	int err = 0;

Error: CLANG_WARNING: [#def2]
git-2.44.0-build/git-2.44.0/reftable/stack.c:1182:3: warning[deadcode.DeadStores]: Value stored to 'lock_file_fd' is never read
# 1180|   	if (lock_file_fd >= 0) {
# 1181|   		close(lock_file_fd);
# 1182|-> 		lock_file_fd = -1;
# 1183|   	}
# 1184|   	if (have_lock) {

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-230.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegit-2.45.2-1.fc41
diffbase-store-results-to/tmp/tmpr9qf5v57/git-2.45.2-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:53:30
diffbase-time-finished2024-07-03 13:01:40
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpr9qf5v57/git-2.45.2-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpr9qf5v57/git-2.45.2-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-230.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegit-2.44.0-1.fc40
store-results-to/tmp/tmph65d5ivp/git-2.44.0-1.fc40.tar.xz
time-created2024-07-03 12:44:35
time-finished2024-07-03 12:53:02
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmph65d5ivp/git-2.44.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmph65d5ivp/git-2.44.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9