Task #130629 - added.err
back to task #130629download
Error: COMPILER_WARNING (CWE-1164):
audit-userspace-4.2.1/audisp/plugins/remote/remote-config.c:809:12: warning[-Wunused-function]: ‘tls_path_parser’ defined but not used
# 809 | static int tls_path_parser(struct nv_pair *nv, int line, const char **dest)
# | ^~~~~~~~~~~~~~~
# 807| }
# 808|
# 809|-> static int tls_path_parser(struct nv_pair *nv, int line, const char **dest)
# 810| {
# 811| #ifndef HAVE_TLS
Error: COMPILER_WARNING (CWE-1164):
audit-userspace-4.2.1/audisp/plugins/remote/remote-config.c:842:12: warning[-Wunused-function]: ‘tls_string_parser’ defined but not used
# 842 | static int tls_string_parser(struct nv_pair *nv, int line, const char **dest)
# | ^~~~~~~~~~~~~~~~~
# 840| }
# 841|
# 842|-> static int tls_string_parser(struct nv_pair *nv, int line, const char **dest)
# 843| {
# 844| #ifndef HAVE_TLS
Error: COMPILER_WARNING (CWE-1164):
audit-userspace-4.2.1/src/auditd-config.c:1830:12: warning[-Wunused-function]: ‘tls_path_parser_s’ defined but not used
# 1830 | static int tls_path_parser_s(const struct nv_pair *nv, int line,
# | ^~~~~~~~~~~~~~~~~
# 1828| }
# 1829|
# 1830|-> static int tls_path_parser_s(const struct nv_pair *nv, int line,
# 1831| const char **dest)
# 1832| {
Error: COMPILER_WARNING (CWE-1164):
audit-userspace-4.2.1/src/auditd-config.c:1851:12: warning[-Wunused-function]: ‘tls_string_parser_s’ defined but not used
# 1851 | static int tls_string_parser_s(const struct nv_pair *nv, int line,
# | ^~~~~~~~~~~~~~~~~~~
# 1849| }
# 1850|
# 1851|-> static int tls_string_parser_s(const struct nv_pair *nv, int line,
# 1852| const char **dest)
# 1853| {
Error: GCC_ANALYZER_WARNING (CWE-775):
audit-userspace-4.2.1/src/auditd-sendmail.c:103:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fd[0], 0)’
audit-userspace-4.2.1/src/auditd-sendmail.c:80:12: branch_false: following ‘false’ branch...
audit-userspace-4.2.1/src/auditd-sendmail.c:86:16: branch_false: ...to here
audit-userspace-4.2.1/src/auditd-sendmail.c:87:12: branch_false: following ‘false’ branch...
audit-userspace-4.2.1/src/auditd-sendmail.c:94:12: branch_false: ...to here
audit-userspace-4.2.1/src/auditd-sendmail.c:94:12: branch_false: following ‘false’ branch...
audit-userspace-4.2.1/src/auditd-sendmail.c:99:9: branch_false: ...to here
audit-userspace-4.2.1/src/auditd-sendmail.c:103:13: acquire_resource: opened here
audit-userspace-4.2.1/src/auditd-sendmail.c:103:12: danger: ‘dup2(pipe_fd[0], 0)’ leaks here; was opened at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
# 101|
# 102| close(pipe_fd[1]); // adjust pipe
# 103|-> if (dup2(pipe_fd[0], STDIN_FILENO) < 0) {
# 104| close(pipe_fd[0]);
# 105| audit_msg(LOG_ALERT,