Task #90661 - fixed.err
back to task #90661download
Error: GCC_ANALYZER_WARNING (CWE-416):
audit-userspace-4.1.1/auparse/lru.c:222:13: warning[-Wanalyzer-use-after-free]: use after 'free' of 'node'
audit-userspace-4.1.1/auparse/lru.c:395:6: enter_function: entry to 'destroy_lru'
audit-userspace-4.1.1/auparse/lru.c:397:12: branch_false: following 'false' branch (when 'queue' is non-NULL)...
audit-userspace-4.1.1/auparse/lru.c:400:9: branch_false: ...to here
audit-userspace-4.1.1/auparse/lru.c:401:9: call_function: calling 'destroy_queue' from 'destroy_lru'
# 220| // If we are at the beginning
# 221| sanity_check_queue(queue, "1 remove_node");
# 222|-> if (node->prev == NULL) {
# 223| queue->front = node->next;
# 224| if (queue->front)
Error: GCC_ANALYZER_WARNING (CWE-775):
audit-userspace-4.1.1/common/common.c:75:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/console", 1)'
audit-userspace-4.1.1/common/common.c:71:19: acquire_resource: opened here
audit-userspace-4.1.1/common/common.c:71:12: branch_false: following 'false' branch...
audit-userspace-4.1.1/common/common.c:74:9: branch_false: ...to here
audit-userspace-4.1.1/common/common.c:75:13: throw: if 'vdprintf' throws an exception...
audit-userspace-4.1.1/common/common.c:75:13: danger: 'open("/dev/console", 1)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 73|
# 74| va_start(args, fmt);
# 75|-> if (vdprintf(fd, fmt, args) < 0) {
# 76| res = 0;
# 77| }
Error: GCC_ANALYZER_WARNING (CWE-404):
audit-userspace-4.1.1/common/common.c:75:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
audit-userspace-4.1.1/common/common.c:71:12: branch_false: following 'false' branch...
audit-userspace-4.1.1/common/common.c:74:9: branch_false: ...to here
audit-userspace-4.1.1/common/common.c:74:9: acquire_resource: 'va_start' called here
audit-userspace-4.1.1/common/common.c:75:13: throw: if 'vdprintf' throws an exception...
audit-userspace-4.1.1/common/common.c:75:13: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 73|
# 74| va_start(args, fmt);
# 75|-> if (vdprintf(fd, fmt, args) < 0) {
# 76| res = 0;
# 77| }
Error: COMPILER_WARNING:
audit-userspace-4.1.1/common/message.c:29: included_from: Included from here.
audit-userspace-4.1.1/lib/private.h:138:53: warning: 'struct audit_rule_data' declared inside parameter list will not be visible outside of this definition or declaration
# 138 | int _audit_parse_syscall(const char *optarg, struct audit_rule_data *rule);
# | ^~~~~~~~~~~~~~~
# 136|
# 137| // libaudit.c
# 138|-> int _audit_parse_syscall(const char *optarg, struct audit_rule_data *rule);
# 139| extern int _audit_permadded;
# 140| extern int _audit_archadded;
Error: COMPILER_WARNING:
audit-userspace-4.1.1/lib/private.h:138:53: warning[warning]: 'struct audit_rule_data' declared inside parameter list will not be visible outside of this definition or declaration
# 136|
# 137| // libaudit.c
# 138|-> int _audit_parse_syscall(const char *optarg, struct audit_rule_data *rule);
# 139| extern int _audit_permadded;
# 140| extern int _audit_archadded;
Error: GCC_ANALYZER_WARNING (CWE-401):
audit-userspace-4.1.1/src/auditd-config.c:1118:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tmail’
audit-userspace-4.1.1/src/auditd-config.c:1136:12: enter_function: entry to ‘action_mail_acct_parser’
audit-userspace-4.1.1/src/auditd-config.c:1143:17: acquire_memory: allocated here
audit-userspace-4.1.1/src/auditd-config.c:1144:12: branch_false: following ‘false’ branch (when ‘tmail’ is non-NULL)...
audit-userspace-4.1.1/src/auditd-config.c:1147:13: branch_false: ...to here
audit-userspace-4.1.1/src/auditd-config.c:1147:12: branch_true: following ‘true’ branch...
audit-userspace-4.1.1/src/auditd-config.c:1147:37: branch_true: ...to here
audit-userspace-4.1.1/src/auditd-config.c:1147:37: call_function: calling ‘validate_email’ from ‘action_mail_acct_parser’
# 1116| if ((h_errno == HOST_NOT_FOUND) ||
# 1117| (h_errno == NO_RECOVERY)) {
# 1118|-> audit_msg(LOG_ERR,
# 1119| "validate_email: failed looking up host for %s (%s)",
# 1120| ptr1+1, gai_strerror(rc2));
Error: GCC_ANALYZER_WARNING (CWE-401):
audit-userspace-4.1.1/src/auditd-config.c:1125:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tmail’
audit-userspace-4.1.1/src/auditd-config.c:1136:12: enter_function: entry to ‘action_mail_acct_parser’
audit-userspace-4.1.1/src/auditd-config.c:1143:17: acquire_memory: allocated here
audit-userspace-4.1.1/src/auditd-config.c:1144:12: branch_false: following ‘false’ branch (when ‘tmail’ is non-NULL)...
audit-userspace-4.1.1/src/auditd-config.c:1147:13: branch_false: ...to here
audit-userspace-4.1.1/src/auditd-config.c:1147:12: branch_true: following ‘true’ branch...
audit-userspace-4.1.1/src/auditd-config.c:1147:37: branch_true: ...to here
audit-userspace-4.1.1/src/auditd-config.c:1147:37: call_function: calling ‘validate_email’ from ‘action_mail_acct_parser’
# 1123| // now treat all as temp failure.
# 1124| } else if (h_errno == TRY_AGAIN) {
# 1125|-> audit_msg(LOG_DEBUG,
# 1126| "validate_email: temporary failure looking up domain for %s",
# 1127| ptr1+1);