Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
samba-4.20.0-build/samba-4.20.0rc4/source3/libsmb/unexpected.c: scope_hint: In function ‘nb_packet_server_create’
samba-4.20.0-build/samba-4.20.0rc4/source3/libsmb/unexpected.c:99:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘create_pipe_sock(nmbd_socket_dir(), "unexpected", 493)’
#   97|   	}
#   98|   	rc = listen(result->listen_sock, 5);
#   99|-> 	if (rc < 0) {
#  100|   		status = map_nt_error_from_unix(errno);
#  101|   		goto fail;

Error: CPPCHECK_WARNING: [#def2]
samba-4.20.0-build/samba-4.20.0rc4/source3/modules/getdate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
samba-4.20.0-build/samba-4.20.0rc4/source3/modules/vfs_fruit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
samba-4.20.0-build/samba-4.20.0rc4/source3/modules/vfs_full_audit.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-139.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namesamba-4.20.2-2.fc41
diffbase-store-results-to/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.tar.xz
diffbase-time-created2024-07-03 18:43:58
diffbase-time-finished2024-07-03 19:25:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdon5fhje/samba-4.20.2-2.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-139.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namesamba-4.20.0-0.5.rc4.fc40
store-results-to/tmp/tmpj69dj54e/samba-4.20.0-0.5.rc4.fc40.tar.xz
time-created2024-07-03 18:00:46
time-finished2024-07-03 18:43:24
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpj69dj54e/samba-4.20.0-0.5.rc4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpj69dj54e/samba-4.20.0-0.5.rc4.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9