chrony-4.8-3.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/etc/dhcp/dhclient.d/chrony.sh:4:30: warning[SC2154]: interface is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/etc/dhcp/dhclient.d/chrony.sh:13:17: warning[SC2154]: new_ntp_servers is referenced but not assigned.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
chrony-4.8/getdate.c:1225:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
chrony-4.8/getdate.c:1183:6: branch_true: following ‘true’ branch...
chrony-4.8/getdate.c:1189:28: branch_true: ...to here
chrony-4.8/getdate.c:1212:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
chrony-4.8/getdate.c:1214:7: branch_false: ...to here
chrony-4.8/getdate.c:1223:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
chrony-4.8/getdate.c:1225:9: branch_false: ...to here
chrony-4.8/getdate.c:1225:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
chrony-4.8/getdate.c:1352:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned int *)<unknown>’
chrony-4.8/getdate.c:1183:6: branch_false: following ‘false’ branch...
chrony-4.8/getdate.c:1247:6: branch_false: ...to here
chrony-4.8/getdate.c:1247:6: branch_false: following ‘false’ branch (when ‘gd_state != 2’)...
chrony-4.8/getdate.c:1250:3: branch_false: ...to here
chrony-4.8/getdate.c:1262:6: branch_true: following ‘true’ branch (when ‘yyn == -20’)...
chrony-4.8/getdate.c:1263:5: branch_true: ...to here
chrony-4.8/getdate.c:1332:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
chrony-4.8/getdate.c:1334:3: branch_false: ...to here
chrony-4.8/getdate.c:1352:3: danger: use of uninitialized value ‘*(unsigned int *)<unknown>’ here
Error: CPPCHECK_WARNING (CWE-457): [#def5]
chrony-4.8/hwclock.c:195: warning[uninitvar]: Uninitialized variable: min_delay
Error: CPPCHECK_WARNING (CWE-457): [#def6]
chrony-4.8/keys.c:336: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
chrony-4.8/main.c:364:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_true: following ‘true’ branch (when ‘pid < 0’)...
chrony-4.8/main.c:364:5: branch_true: ...to here
chrony-4.8/main.c:364:5: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
chrony-4.8/main.c:364:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_true: following ‘true’ branch (when ‘pid < 0’)...
chrony-4.8/main.c:364:5: branch_true: ...to here
chrony-4.8/main.c:364:5: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
chrony-4.8/main.c:371:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:371:5: branch_true: ...to here
chrony-4.8/main.c:371:5: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
chrony-4.8/main.c:371:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:371:5: branch_true: ...to here
chrony-4.8/main.c:371:5: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
chrony-4.8/main.c:375:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:371:5: branch_true: ...to here
chrony-4.8/main.c:375:5: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
chrony-4.8/main.c:375:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:371:5: branch_true: ...to here
chrony-4.8/main.c:375:5: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
chrony-4.8/main.c:376:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:371:5: branch_true: ...to here
chrony-4.8/main.c:376:5: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
chrony-4.8/main.c:394:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_true: following ‘true’ branch (when ‘pid < 0’)...
chrony-4.8/main.c:394:7: branch_true: ...to here
chrony-4.8/main.c:394:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
chrony-4.8/main.c:394:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_true: following ‘true’ branch (when ‘pid < 0’)...
chrony-4.8/main.c:394:7: branch_true: ...to here
chrony-4.8/main.c:394:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
chrony-4.8/main.c:397:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:397:7: branch_true: ...to here
chrony-4.8/main.c:397:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
chrony-4.8/main.c:397:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:397:7: branch_true: ...to here
chrony-4.8/main.c:397:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
chrony-4.8/main.c:398:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_true: following ‘true’ branch (when ‘pid != 0’)...
chrony-4.8/main.c:397:7: branch_true: ...to here
chrony-4.8/main.c:398:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
chrony-4.8/main.c:405:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_true: following ‘true’ branch...
chrony-4.8/main.c:405:9: branch_true: ...to here
chrony-4.8/main.c:405:9: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
chrony-4.8/main.c:405:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_true: following ‘true’ branch...
chrony-4.8/main.c:405:9: branch_true: ...to here
chrony-4.8/main.c:405:9: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
chrony-4.8/main.c:411:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:411:33: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
chrony-4.8/main.c:411:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:411:12: branch_true: following ‘true’ branch...
chrony-4.8/main.c:411:33: branch_true: ...to here
chrony-4.8/main.c:411:33: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
chrony-4.8/main.c:411:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[fd]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:411:12: branch_true: following ‘true’ branch...
chrony-4.8/main.c:411:33: branch_true: ...to here
chrony-4.8/main.c:411:33: danger: ‘pipefd[fd]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
chrony-4.8/main.c:412:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:412:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
chrony-4.8/main.c:412:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:411:12: branch_true: following ‘true’ branch...
chrony-4.8/main.c:412:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
chrony-4.8/main.c:412:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[fd]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:411:12: branch_true: following ‘true’ branch...
chrony-4.8/main.c:412:11: danger: ‘pipefd[fd]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
chrony-4.8/main.c:415:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:415:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
chrony-4.8/main.c:415:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:415:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
chrony-4.8/main.c:419:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:11: acquire_resource: opened here
chrony-4.8/main.c:419:10: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(16)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
chrony-4.8/main.c:419:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:10: branch_false: following ‘false’ branch...
chrony-4.8/main.c:420:11: branch_false: ...to here
chrony-4.8/main.c:420:11: acquire_resource: opened here
chrony-4.8/main.c:419:11: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(18)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
chrony-4.8/main.c:419:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:10: branch_false: following ‘false’ branch...
chrony-4.8/main.c:420:11: branch_false: ...to here
chrony-4.8/main.c:419:11: branch_false: following ‘false’ branch...
chrony-4.8/main.c:421:11: branch_false: ...to here
chrony-4.8/main.c:421:11: acquire_resource: opened here
chrony-4.8/main.c:419:11: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(20)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
chrony-4.8/main.c:419:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
chrony-4.8/main.c:420:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:10: branch_false: following ‘false’ branch...
chrony-4.8/main.c:420:11: branch_false: ...to here
chrony-4.8/main.c:420:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
chrony-4.8/main.c:421:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:10: branch_false: following ‘false’ branch...
chrony-4.8/main.c:420:11: branch_false: ...to here
chrony-4.8/main.c:419:11: branch_false: following ‘false’ branch...
chrony-4.8/main.c:421:11: branch_false: ...to here
chrony-4.8/main.c:421:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
chrony-4.8/main.c:422:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:422:9: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
chrony-4.8/main.c:425:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
chrony-4.8/main.c:356:6: branch_false: following ‘false’ branch...
chrony-4.8/main.c:361:9: branch_false: ...to here
chrony-4.8/main.c:363:6: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:365:13: branch_false: ...to here
chrony-4.8/main.c:365:13: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:388:5: branch_false: ...to here
chrony-4.8/main.c:393:8: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
chrony-4.8/main.c:395:15: branch_false: ...to here
chrony-4.8/main.c:395:15: branch_false: following ‘false’ branch (when ‘pid == 0’)...
chrony-4.8/main.c:404:11: branch_false: ...to here
chrony-4.8/main.c:404:10: branch_false: following ‘false’ branch...
branch_false: ...to here
chrony-4.8/main.c:410:18: branch_true: following ‘true’ branch (when ‘fd != 1024’)...
chrony-4.8/main.c:411:19: branch_true: ...to here
chrony-4.8/main.c:419:10: branch_false: following ‘false’ branch...
chrony-4.8/main.c:420:11: branch_false: ...to here
chrony-4.8/main.c:419:11: branch_false: following ‘false’ branch...
chrony-4.8/main.c:421:11: branch_false: ...to here
chrony-4.8/main.c:419:11: branch_false: following ‘false’ branch...
chrony-4.8/main.c:425:1: branch_false: ...to here
chrony-4.8/main.c:425:1: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
chrony-4.8/nameserv_async.c:117:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor
chrony-4.8/nameserv_async.c:112:6: branch_false: following ‘false’ branch...
chrony-4.8/nameserv_async.c:116:3: branch_false: ...to here
chrony-4.8/nameserv_async.c:117:3: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
chrony-4.8/nameserv_async.c:117:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*<unknown>.pipe[0]’
chrony-4.8/nameserv_async.c:112:6: branch_false: following ‘false’ branch...
chrony-4.8/nameserv_async.c:116:3: branch_false: ...to here
chrony-4.8/nameserv_async.c:117:3: danger: ‘*<unknown>.pipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
chrony-4.8/refclock_pps.c:67:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(RCL_GetDriverParameter(instance), 2)’
chrony-4.8/refclock_pps.c:63:8: acquire_resource: opened here
chrony-4.8/refclock_pps.c:64:6: branch_false: following ‘false’ branch...
chrony-4.8/refclock_pps.c:67:3: branch_false: ...to here
chrony-4.8/refclock_pps.c:67:3: danger: ‘open(RCL_GetDriverParameter(instance), 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
chrony-4.8/refclock_rtc.c:112:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(RCL_GetDriverParameter(instance), 0)’
chrony-4.8/refclock_rtc.c:102:6: branch_false: following ‘false’ branch...
chrony-4.8/refclock_rtc.c:107:11: acquire_resource: opened here
chrony-4.8/refclock_rtc.c:108:6: branch_false: following ‘false’ branch...
chrony-4.8/refclock_rtc.c:112:3: branch_false: ...to here
chrony-4.8/refclock_rtc.c:112:3: danger: ‘open(RCL_GetDriverParameter(instance), 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
chrony-4.8/reference.c:523:7: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&buffer, "w")’
chrony-4.8/reference.c:495:6: branch_true: following ‘true’ branch...
chrony-4.8/reference.c:496:7: branch_true: ...to here
chrony-4.8/reference.c:495:7: branch_true: following ‘true’ branch...
chrony-4.8/reference.c:497:5: branch_true: ...to here
chrony-4.8/reference.c:498:9: acquire_memory: allocated here
chrony-4.8/reference.c:499:8: branch_true: following ‘true’ branch...
chrony-4.8/reference.c:500:11: branch_true: ...to here
chrony-4.8/reference.c:523:7: danger: ‘popen(&buffer, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
chrony-4.8/socket.c:256:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock_fd’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
chrony-4.8/socket.c:289:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock_fd’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
chrony-4.8/socket.c:612:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket(1, type, flags)’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
chrony-4.8/socket.c:636:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket(1, type, flags)’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
chrony-4.8/socket.c:659:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket(1, type, flags)’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
chrony-4.8/socket.c:689:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_socket(1, type, flags)’
chrony-4.8/socket.c:1479:1: enter_function: entry to ‘SCK_OpenUnixStreamSocket’
chrony-4.8/socket.c:1481:10: call_function: calling ‘open_unix_socket’ from ‘SCK_OpenUnixStreamSocket’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
chrony-4.8/util.c:1434:3: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
chrony-4.8/util.c:1378:6: branch_false: following ‘false’ branch...
chrony-4.8/util.c:1381:3: branch_false: ...to here
chrony-4.8/util.c:1427:10: acquire_memory: allocated here
chrony-4.8/util.c:1428:6: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
chrony-4.8/util.c:1434:3: branch_false: ...to here
chrony-4.8/util.c:1434:3: branch_true: following ‘true’ branch...
chrony-4.8/util.c:1434:3: branch_true: ...to here
chrony-4.8/util.c:1434:3: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-179.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | chrony-4.8-3.fc44 |
| store-results-to | /tmp/tmpoy342u62/chrony-4.8-3.fc44.tar.xz |
| time-created | 2025-10-28 17:40:29 |
| time-finished | 2025-10-28 17:42:07 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpoy342u62/chrony-4.8-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpoy342u62/chrony-4.8-3.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |