libassuan-2.5.7-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-buffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-handler.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-inquire.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-logging.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-pipe-connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-pipe-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-socket-connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def8]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-socket-connect.c:242: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
# 240| return _assuan_error (ctx, gpg_err_code_from_syserror ());
# 241|
# 242|-> len = SUN_LEN (&srvr_addr_un);
# 243| srvr_addr = (struct sockaddr *)&srvr_addr_un;
# 244| }
Error: CPPCHECK_WARNING: [#def9]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-socket-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def11]
libassuan-2.5.7-build/libassuan-2.5.7/src/assuan-socket.c:1081: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
# 1079| {
# 1080| res = _assuan_connect (ctx, sockfd, (struct sockaddr *)unaddr,
# 1081|-> SUN_LEN (unaddr));
# 1082| free (unaddr);
# 1083| return res;
Error: CPPCHECK_WARNING: [#def12]
libassuan-2.5.7-build/libassuan-2.5.7/src/client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
libassuan-2.5.7-build/libassuan-2.5.7/src/debug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
libassuan-2.5.7-build/libassuan-2.5.7/src/mkheader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c: scope_hint: In function '__assuan_spawn'
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:305:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(<unknown>, 1)'
# 303| if (fd_out != STDOUT_FILENO)
# 304| {
# 305|-> if (dup2 (fd_out == ASSUAN_INVALID_FD ? fdnul : fd_out,
# 306| STDOUT_FILENO) == -1)
# 307| {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:305:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 1)'
# 303| if (fd_out != STDOUT_FILENO)
# 304| {
# 305|-> if (dup2 (fd_out == ASSUAN_INVALID_FD ? fdnul : fd_out,
# 306| STDOUT_FILENO) == -1)
# 307| {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:316:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(<unknown>, 0)'
# 314| if (fd_in != STDIN_FILENO)
# 315| {
# 316|-> if (dup2 (fd_in == ASSUAN_INVALID_FD ? fdnul : fd_in,
# 317| STDIN_FILENO) == -1)
# 318| {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:316:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 1)'
# 314| if (fd_in != STDIN_FILENO)
# 315| {
# 316|-> if (dup2 (fd_in == ASSUAN_INVALID_FD ? fdnul : fd_in,
# 317| STDIN_FILENO) == -1)
# 318| {
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:335:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(open("/dev/null", 1), 2)'
# 333| if (!fdp || *fdp == -1)
# 334| {
# 335|-> if (dup2 (fdnul, STDERR_FILENO) == -1)
# 336| {
# 337| TRACE1 (ctx, ASSUAN_LOG_SYSIO, "pipe_connect_unix", ctx,
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
libassuan-2.5.7-build/libassuan-2.5.7/src/system-posix.c:335:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 1)'
# 333| if (!fdp || *fdp == -1)
# 334| {
# 335|-> if (dup2 (fdnul, STDERR_FILENO) == -1)
# 336| {
# 337| TRACE1 (ctx, ASSUAN_LOG_SYSIO, "pipe_connect_unix", ctx,
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libassuan-2.5.7-build/libassuan-2.5.7/tests/fdpassing.c:34: included_from: Included from here.
libassuan-2.5.7-build/libassuan-2.5.7/tests/common.h: scope_hint: In function ‘main’
libassuan-2.5.7-build/libassuan-2.5.7/tests/common.h:202:7: warning[-Wanalyzer-malloc-leak]: leak of ‘prepend_srcdir("motd")’
# 200| char *result;
# 201|
# 202|-> if (!srcdir && !(srcdir = getenv ("srcdir")))
# 203| srcdir = ".";
# 204|
Error: CPPCHECK_WARNING: [#def23]
libassuan-2.5.7-build/libassuan-2.5.7/tests/fdpassing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
libassuan-2.5.7-build/libassuan-2.5.7/tests/pipeconnect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
libassuan-2.5.7-build/libassuan-2.5.7/tests/socks5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-247.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | libassuan-2.5.7-1.fc41 |
store-results-to | /tmp/tmpmeeiprk7/libassuan-2.5.7-1.fc41.tar.xz |
time-created | 2024-07-03 14:34:57 |
time-finished | 2024-07-03 14:35:56 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmeeiprk7/libassuan-2.5.7-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpmeeiprk7/libassuan-2.5.7-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |