dnsmasq-2.91-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:187:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:141:12: acquire_resource: datagram socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:144:6: branch_false: following ‘false’ branch (when ‘argc > 1’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:150:6: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:150:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:156:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:156:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:162:3: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:187:7: throw: if ‘sendto’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_lease_time.c:187:7: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:204:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘nl’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:258:5: enter_function: entry to ‘main’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:267:12: acquire_resource: socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:269:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:283:3: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:286:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:292:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:292:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:298:12: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:298:12: call_function: calling ‘find_interface’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:266:12: acquire_resource: datagram socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:269:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: throw: if ‘perror’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘nl’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:267:12: acquire_resource: socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:269:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: throw: if ‘perror’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:277:7: danger: ‘nl’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:288:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘nl’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:267:12: acquire_resource: socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:269:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:283:3: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:286:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:288:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:288:7: throw: if ‘perror’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:288:7: danger: ‘nl’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:294:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘nl’
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:267:12: acquire_resource: socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:269:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:275:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:283:3: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:286:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:292:7: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:292:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:294:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:294:7: throw: if ‘perror’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release.c:294:7: danger: ‘nl’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:226:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&client_option’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:212:21: enter_function: entry to ‘create_release_packet’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:221:39: call_function: calling ‘create_client_id_option’ from ‘create_release_packet’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:221:39: return_function: returning to ‘create_release_packet’ from ‘create_client_id_option’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:222:39: call_function: calling ‘create_server_id_option’ from ‘create_release_packet’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:222:39: return_function: returning to ‘create_release_packet’ from ‘create_server_id_option’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:223:46: call_function: calling ‘create_iaadr_option’ from ‘create_release_packet’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:223:46: return_function: returning to ‘create_release_packet’ from ‘create_iaadr_option’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:226:3: danger: use of uninitialized value ‘&client_option’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:323:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:327:5: enter_function: entry to ‘send_release_packet’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:331:14: acquire_resource: datagram socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:333:6: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:49: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:346:5: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:352:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:9: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:356:9: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:356:8: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:357:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:357:7: call_function: calling ‘fail_fatal’ from ‘send_release_packet’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:355:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:331:14: acquire_resource: datagram socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:333:6: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:49: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:346:5: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:352:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:9: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:9: acquire_resource: socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:8: branch_true: following ‘true’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:355:7: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:355:7: throw: if ‘perror’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:355:7: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:363:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:331:14: acquire_resource: datagram socket created here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:333:6: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:49: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:339:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:346:5: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:352:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:9: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:354:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:356:9: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:356:8: branch_false: following ‘false’ branch...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:358:5: branch_false: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:361:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:363:13: branch_true: ...to here
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:363:13: throw: if ‘sendto’ throws an exception...
dnsmasq-2.91/contrib/lease-tools/dhcp_release6.c:363:13: danger: ‘sock’ leaks here
Error: CPPCHECK_WARNING (CWE-682): [#def11]
dnsmasq-2.91/src/cache.c:236: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def12]
dnsmasq-2.91/src/cache.c:236: warning[nullPointer]: Possible null pointer dereference: name++
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
dnsmasq-2.91/src/cache.c:1283:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
dnsmasq-2.91/src/cache.c:1382:6: enter_function: entry to ‘cache_reload’
dnsmasq-2.91/src/cache.c:1497:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/cache.c:1498:87: branch_true: ...to here
dnsmasq-2.91/src/cache.c:1498:22: call_function: calling ‘read_hostsfile’ from ‘cache_reload’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
dnsmasq-2.91/src/cache.c:1283:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
dnsmasq-2.91/src/cache.c:1382:6: enter_function: entry to ‘cache_reload’
dnsmasq-2.91/src/cache.c:1497:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/cache.c:1498:87: branch_true: ...to here
dnsmasq-2.91/src/cache.c:1498:22: call_function: calling ‘read_hostsfile’ from ‘cache_reload’
Error: COMPILER_WARNING (CWE-704): [#def15]
dnsmasq-2.91/src/dbus.c: scope_hint: In function ‘dbus_read_servers_ex’
dnsmasq-2.91/src/dbus.c:329:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def16]
dnsmasq-2.91/src/dbus.c:329:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
dnsmasq-2.91/src/dbus.c:512:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
dnsmasq-2.91/src/dbus.c:510:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dbus.c:512:11: branch_true: ...to here
dnsmasq-2.91/src/dbus.c:512:11: danger: use of uninitialized value ‘val’ here
Error: COMPILER_WARNING: [#def18]
dnsmasq-2.91/src/dbus.c:748:22: warning[-Wunused-but-set-variable=]: variable ‘queries’ set but not used
Error: COMPILER_WARNING: [#def19]
dnsmasq-2.91/src/dbus.c:748:35: warning[-Wunused-but-set-variable=]: variable ‘failed_queries’ set but not used
Error: COMPILER_WARNING: [#def20]
dnsmasq-2.91/src/dbus.c:748:55: warning[-Wunused-but-set-variable=]: variable ‘nxdomain_replies’ set but not used
Error: COMPILER_WARNING: [#def21]
dnsmasq-2.91/src/dbus.c: scope_hint: In function ‘dbus_get_server_metrics’
dnsmasq-2.91/src/dbus.c:748:77: warning[-Wunused-but-set-variable=]: variable ‘retrys’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
dnsmasq-2.91/src/dbus.c:853:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘enabled’
dnsmasq-2.91/src/dbus.c:793:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dbus.c:806:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:806:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:814:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:814:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:819:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:819:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:824:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:824:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:829:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:829:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:834:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:834:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:838:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:838:11: branch_true: following ‘true’ branch (when the strings are equal)...
dnsmasq-2.91/src/dbus.c:844:21: branch_true: ...to here
dnsmasq-2.91/src/dbus.c:844:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dbus.c:846:15: branch_true: ...to here
dnsmasq-2.91/src/dbus.c:853:21: danger: use of uninitialized value ‘enabled’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
dnsmasq-2.91/src/dbus.c:871:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘enabled’
dnsmasq-2.91/src/dbus.c:793:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dbus.c:806:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:806:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:814:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:814:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:819:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:819:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:824:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:824:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:829:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:829:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:834:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:834:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:838:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:838:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
dnsmasq-2.91/src/dbus.c:856:12: branch_false: ...to here
dnsmasq-2.91/src/dbus.c:856:11: branch_true: following ‘true’ branch (when the strings are equal)...
dnsmasq-2.91/src/dbus.c:862:21: branch_true: ...to here
dnsmasq-2.91/src/dbus.c:862:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dbus.c:864:15: branch_true: ...to here
dnsmasq-2.91/src/dbus.c:871:29: danger: use of uninitialized value ‘enabled’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
dnsmasq-2.91/src/dhcp.c:53:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/src/dhcp.c:40:12: acquire_resource: datagram socket created here
dnsmasq-2.91/src/dhcp.c:50:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/dhcp.c:53:8: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:53:8: throw: if ‘fix_fd’ throws an exception...
dnsmasq-2.91/src/dhcp.c:53:8: danger: ‘fd’ leaks here
Error: CPPCHECK_WARNING (CWE-457): [#def25]
dnsmasq-2.91/src/dhcp.c:228: error[uninitvar]: Uninitialized variable: ifr
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
dnsmasq-2.91/src/dhcp.c:877:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/etc/ethers", "r")’
dnsmasq-2.91/src/dhcp.c:875:13: acquire_resource: opened here
dnsmasq-2.91/src/dhcp.c:887:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:894:8: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:894:61: branch_true: following ‘true’ branch (when ‘config’ is non-NULL)...
dnsmasq-2.91/src/dhcp.c:896:7: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:897:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:899:11: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:901:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:903:16: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:894:61: branch_false: following ‘false’ branch (when ‘config’ is NULL)...
dnsmasq-2.91/src/dhcp.c:894:61: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:910:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:914:7: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:916:14: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:916:34: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:916:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:919:11: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:922:23: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:922:31: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:922:23: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:922:23: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:923:13: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:923:20: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:925:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:925:19: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:925:19: throw: if ‘parse_hex’ throws an exception...
dnsmasq-2.91/src/dhcp.c:877:22: danger: ‘fopen("/etc/ethers", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
dnsmasq-2.91/src/dhcp.c:877:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/etc/ethers", "r")’
dnsmasq-2.91/src/dhcp.c:875:13: acquire_memory: allocated here
dnsmasq-2.91/src/dhcp.c:887:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:894:8: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:894:61: branch_true: following ‘true’ branch (when ‘config’ is non-NULL)...
dnsmasq-2.91/src/dhcp.c:896:7: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:897:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:899:11: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:901:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:903:16: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:894:61: branch_false: following ‘false’ branch (when ‘config’ is NULL)...
dnsmasq-2.91/src/dhcp.c:894:61: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:910:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:914:7: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:916:14: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:916:34: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:916:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:919:11: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:922:23: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:922:31: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:922:23: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:922:23: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:923:13: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dhcp.c:923:20: branch_true: ...to here
dnsmasq-2.91/src/dhcp.c:925:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dhcp.c:925:19: branch_false: ...to here
dnsmasq-2.91/src/dhcp.c:925:19: throw: if ‘parse_hex’ throws an exception...
dnsmasq-2.91/src/dhcp.c:877:22: danger: ‘fopen("/etc/ethers", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def28]
dnsmasq-2.91/src/dhcp.c:1131: error[uninitvar]: Uninitialized variable: ifr
Error: CPPCHECK_WARNING (CWE-457): [#def29]
dnsmasq-2.91/src/dhcp6.c:134: error[uninitvar]: Uninitialized variable: ifr
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
dnsmasq-2.91/src/dnsmasq.c:157:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
dnsmasq-2.91/src/dnsmasq.c:156:15: branch_true: following ‘true’ branch (when ‘i != 3’)...
dnsmasq-2.91/src/dnsmasq.c:157:5: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:157:5: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
dnsmasq-2.91/src/dnsmasq.c:1428:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
dnsmasq-2.91/src/dnsmasq.c:1426:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:1427:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:1427:14: acquire_memory: allocated here
dnsmasq-2.91/src/dnsmasq.c:1426:7: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:1428:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:1428:7: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:1428:7: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
dnsmasq-2.91/src/dnsmasq.c:2034:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_true: following ‘true’ branch (when ‘p == -1’)...
dnsmasq-2.91/src/dnsmasq.c:2034:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2034:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2034:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
dnsmasq-2.91/src/dnsmasq.c:2034:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_true: following ‘true’ branch (when ‘p == -1’)...
dnsmasq-2.91/src/dnsmasq.c:2034:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2034:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2034:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
dnsmasq-2.91/src/dnsmasq.c:2035:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_true: following ‘true’ branch (when ‘p == -1’)...
dnsmasq-2.91/src/dnsmasq.c:2034:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2035:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2035:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
dnsmasq-2.91/src/dnsmasq.c:2042:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2042:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2042:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2042:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
dnsmasq-2.91/src/dnsmasq.c:2042:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2042:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2042:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2042:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
dnsmasq-2.91/src/dnsmasq.c:2059:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2042:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2059:11: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2059:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
dnsmasq-2.91/src/dnsmasq.c:2100:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2100:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2100:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
dnsmasq-2.91/src/dnsmasq.c:2100:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2100:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2100:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
dnsmasq-2.91/src/dnsmasq.c:2100:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2100:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2100:7: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
dnsmasq-2.91/src/dnsmasq.c:2101:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2101:7: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2101:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
dnsmasq-2.91/src/dnsmasq.c:2101:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2101:7: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2101:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
dnsmasq-2.91/src/dnsmasq.c:2101:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2101:7: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2101:7: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
dnsmasq-2.91/src/dnsmasq.c:2101:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2101:7: danger: use of uninitialized value ‘pipefd[1]’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
dnsmasq-2.91/src/dnsmasq.c:2104:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2104:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2104:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
dnsmasq-2.91/src/dnsmasq.c:2104:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2100:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2104:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2104:7: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
dnsmasq-2.91/src/dnsmasq.c:2111:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:16: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2111:16: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
dnsmasq-2.91/src/dnsmasq.c:2111:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:16: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2111:16: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
dnsmasq-2.91/src/dnsmasq.c:2111:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:16: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2111:16: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
dnsmasq-2.91/src/dnsmasq.c:2112:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:11: throw: if ‘retry_send’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
dnsmasq-2.91/src/dnsmasq.c:2112:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:11: throw: if ‘retry_send’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
dnsmasq-2.91/src/dnsmasq.c:2112:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:11: throw: if ‘retry_send’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:11: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
dnsmasq-2.91/src/dnsmasq.c:2112:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_true: following ‘true’ branch (when ‘iface’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2085:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:22: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:22: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
dnsmasq-2.91/src/dnsmasq.c:2112:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:22: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:22: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
dnsmasq-2.91/src/dnsmasq.c:2112:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[auth_dns]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/dnsmasq.c:2090:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2112:22: throw: if ‘fcntl’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2112:22: danger: ‘pipefd[auth_dns]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
dnsmasq-2.91/src/dnsmasq.c:2114:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2114:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2114:10: throw: if ‘tcp_request’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2114:10: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
dnsmasq-2.91/src/dnsmasq.c:2114:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2111:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2114:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2114:10: throw: if ‘tcp_request’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2114:10: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
dnsmasq-2.91/src/dnsmasq.c:2123:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2119:29: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2120:9: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2123:9: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2123:9: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
dnsmasq-2.91/src/dnsmasq.c:2123:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2119:29: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
dnsmasq-2.91/src/dnsmasq.c:2120:9: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2123:9: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2123:9: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
dnsmasq-2.91/src/dnsmasq.c:2129:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2129:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2129:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2129:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
dnsmasq-2.91/src/dnsmasq.c:2129:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2129:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2129:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2129:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
dnsmasq-2.91/src/dnsmasq.c:2130:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2129:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2130:7: throw: if ‘flush_log’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2130:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
dnsmasq-2.91/src/dnsmasq.c:2130:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2129:7: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2130:7: throw: if ‘flush_log’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2130:7: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
dnsmasq-2.91/src/dnsmasq.c:2133:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2133:1: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2133:1: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
dnsmasq-2.91/src/dnsmasq.c:2133:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:1953:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1956:7: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:1956:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:1975:3: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2026:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2028:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2028:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2031:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2031:10: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2039:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2083:6: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2096:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2111:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2127:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2133:1: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2133:1: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
dnsmasq-2.91/src/dnsmasq.c:2170:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2170:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2170:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2170:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
dnsmasq-2.91/src/dnsmasq.c:2170:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2170:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2170:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2170:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
dnsmasq-2.91/src/dnsmasq.c:2174:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2170:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2171:14: branch_true: following ‘true’ branch (when ‘p == -1’)...
dnsmasq-2.91/src/dnsmasq.c:2174:15: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2174:15: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2174:15: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
dnsmasq-2.91/src/dnsmasq.c:2192:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_true: following ‘true’ branch (when ‘p != 0’)...
dnsmasq-2.91/src/dnsmasq.c:2170:11: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2171:14: branch_false: following ‘false’ branch (when ‘p != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2192:11: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2192:11: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2192:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
dnsmasq-2.91/src/dnsmasq.c:2213:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2213:23: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2213:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2213:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
dnsmasq-2.91/src/dnsmasq.c:2213:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2213:23: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2213:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2213:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
dnsmasq-2.91/src/dnsmasq.c:2214:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2213:23: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2214:11: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2214:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
dnsmasq-2.91/src/dnsmasq.c:2214:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2213:23: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2214:11: throw: if ‘read_write’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2214:11: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
dnsmasq-2.91/src/dnsmasq.c:2216:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/dnsmasq.c:2151:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/dnsmasq.c:2156:21: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:10: branch_false: following ‘false’ branch (when ‘i >= 0’)...
dnsmasq-2.91/src/dnsmasq.c:2165:20: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2165:11: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/dnsmasq.c:2168:16: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2168:10: branch_false: following ‘false’ branch (when ‘p == 0’)...
dnsmasq-2.91/src/dnsmasq.c:2213:23: branch_false: ...to here
dnsmasq-2.91/src/dnsmasq.c:2216:11: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2216:11: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
dnsmasq-2.91/src/dnsmasq.c:2268:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/src/dnsmasq.c:2266:13: acquire_resource: socket created here
dnsmasq-2.91/src/dnsmasq.c:2266:6: branch_true: following ‘true’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/dnsmasq.c:2268:12: branch_true: ...to here
dnsmasq-2.91/src/dnsmasq.c:2268:12: throw: if ‘fix_fd’ throws an exception...
dnsmasq-2.91/src/dnsmasq.c:2268:12: danger: ‘fd’ leaks here
Error: CPPCHECK_WARNING (CWE-457): [#def76]
dnsmasq-2.91/src/dnssec.c:163: warning[uninitvar]: Uninitialized variable: state->c
Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
dnsmasq-2.91/src/dnssec.c:1535:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
dnsmasq-2.91/src/dnssec.c:1519:15: branch_false: following ‘false’ branch (when ‘i >= nsec_count’)...
dnsmasq-2.91/src/dnssec.c:1532:6: branch_false: ...to here
dnsmasq-2.91/src/dnssec.c:1532:6: branch_false: following ‘false’ branch (when ‘i != nsec_count’)...
dnsmasq-2.91/src/dnssec.c:1535:3: branch_false: ...to here
dnsmasq-2.91/src/dnssec.c:1535:3: danger: use of uninitialized value ‘p’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def78]
dnsmasq-2.91/src/edns0.c:297:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘encode[0]’
dnsmasq-2.91/src/edns0.c:546:8: enter_function: entry to ‘add_edns0_config’
dnsmasq-2.91/src/edns0.c:551:11: call_function: calling ‘add_mac’ from ‘add_edns0_config’
dnsmasq-2.91/src/edns0.c:551:11: return_function: returning to ‘add_edns0_config’ from ‘add_mac’
dnsmasq-2.91/src/edns0.c:552:10: call_function: calling ‘add_dns_client’ from ‘add_edns0_config’
Error: COMPILER_WARNING: [#def79]
dnsmasq-2.91/src/edns0.c: scope_hint: In function ‘add_umbrella_opt’
dnsmasq-2.91/src/edns0.c:512:30: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available)
Error: CPPCHECK_WARNING (CWE-457): [#def80]
dnsmasq-2.91/src/forward.c:1768: error[uninitvar]: Uninitialized variable: ifr
Error: GCC_ANALYZER_WARNING (CWE-457): [#def81]
dnsmasq-2.91/src/forward.c:2708:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘last’
dnsmasq-2.91/src/forward.c:2384:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/forward.c:2442:10: branch_true: following ‘true’ branch (when ‘do_stale == 0’)...
dnsmasq-2.91/src/forward.c:2444:14: branch_true: ...to here
dnsmasq-2.91/src/forward.c:2444:14: branch_false: following ‘false’ branch (when ‘query_count <= 99’)...
dnsmasq-2.91/src/forward.c:2447:16: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2447:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/forward.c:2448:24: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2447:15: branch_false: following ‘false’ branch (when ‘size != 0’)...
dnsmasq-2.91/src/forward.c:2449:16: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2447:15: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/forward.c:2452:14: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2473:19: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/forward.c:2564:7: branch_true: ...to here
dnsmasq-2.91/src/forward.c:2702:10: branch_false: following ‘false’ branch (when ‘do_stale == 0’)...
dnsmasq-2.91/src/forward.c:2706:10: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2706:10: branch_true: following ‘true’ branch (when ‘m == 0’)...
dnsmasq-2.91/src/forward.c:2708:21: branch_true: ...to here
dnsmasq-2.91/src/forward.c:2708:21: danger: use of uninitialized value ‘last’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
dnsmasq-2.91/src/forward.c:2795:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/src/forward.c:2778:13: acquire_resource: datagram socket created here
dnsmasq-2.91/src/forward.c:2778:6: branch_true: following ‘true’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/forward.c:2784:11: branch_true: ...to here
dnsmasq-2.91/src/forward.c:2784:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/forward.c:2795:11: branch_false: ...to here
dnsmasq-2.91/src/forward.c:2795:11: throw: if ‘local_bind’ throws an exception...
dnsmasq-2.91/src/forward.c:2795:11: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
dnsmasq-2.91/src/helper.c:88:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:88:30: branch_false: ...to here
dnsmasq-2.91/src/helper.c:88:30: throw: if ‘fix_fd’ throws an exception...
dnsmasq-2.91/src/helper.c:88:30: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
dnsmasq-2.91/src/helper.c:88:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:88:30: branch_false: ...to here
dnsmasq-2.91/src/helper.c:88:30: throw: if ‘fix_fd’ throws an exception...
dnsmasq-2.91/src/helper.c:88:30: danger: ‘pipefd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
dnsmasq-2.91/src/helper.c:90:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:88:30: branch_false: ...to here
dnsmasq-2.91/src/helper.c:90:7: throw: if ‘send_event’ throws an exception...
dnsmasq-2.91/src/helper.c:90:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
dnsmasq-2.91/src/helper.c:96:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_true: following ‘true’ branch (when ‘pid != 0’)...
dnsmasq-2.91/src/helper.c:96:7: branch_true: ...to here
dnsmasq-2.91/src/helper.c:96:7: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/helper.c:96:7: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
dnsmasq-2.91/src/helper.c:118:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:109:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:116:14: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:118:13: branch_true: ...to here
dnsmasq-2.91/src/helper.c:118:13: throw: if ‘send_event’ throws an exception...
dnsmasq-2.91/src/helper.c:118:13: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
dnsmasq-2.91/src/helper.c:122:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:109:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:116:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:122:15: branch_false: ...to here
dnsmasq-2.91/src/helper.c:122:15: throw: if ‘send_event’ throws an exception...
dnsmasq-2.91/src/helper.c:122:15: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
dnsmasq-2.91/src/helper.c:124:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:109:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:116:14: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:122:15: branch_false: ...to here
dnsmasq-2.91/src/helper.c:124:15: throw: if ‘send_event’ throws an exception...
dnsmasq-2.91/src/helper.c:124:15: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
dnsmasq-2.91/src/helper.c:134:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:134:3: throw: if ‘close_fds’ throws an exception...
dnsmasq-2.91/src/helper.c:134:3: danger: ‘pipefd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def91]
dnsmasq-2.91/src/helper.c:516:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipeout[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:178:6: branch_false: following ‘false’ branch (when ‘err_fd == -1’)...
dnsmasq-2.91/src/helper.c:178:6: branch_false: ...to here
dnsmasq-2.91/src/helper.c:192:10: branch_false: following ‘false’ branch (when ‘alloc_buff’ is NULL)...
dnsmasq-2.91/src/helper.c:199:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:199:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:212:16: branch_false: ...to here
dnsmasq-2.91/src/helper.c:246:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:247:14: branch_true: ...to here
dnsmasq-2.91/src/helper.c:248:19: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:256:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:256:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:260:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:260:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:265:22: branch_false: ...to here
dnsmasq-2.91/src/helper.c:501:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:505:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:10: branch_false: ...to here
dnsmasq-2.91/src/helper.c:512:10: branch_true: following ‘true’ branch (when ‘pid == -1’)...
dnsmasq-2.91/src/helper.c:514:16: branch_true: ...to here
dnsmasq-2.91/src/helper.c:514:14: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:516:15: branch_true: ...to here
dnsmasq-2.91/src/helper.c:516:15: danger: use of uninitialized value ‘pipeout[0]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def92]
dnsmasq-2.91/src/helper.c:529:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipeout[1]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:178:6: branch_false: following ‘false’ branch (when ‘err_fd == -1’)...
dnsmasq-2.91/src/helper.c:178:6: branch_false: ...to here
dnsmasq-2.91/src/helper.c:192:10: branch_false: following ‘false’ branch (when ‘alloc_buff’ is NULL)...
dnsmasq-2.91/src/helper.c:199:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:199:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:212:16: branch_false: ...to here
dnsmasq-2.91/src/helper.c:246:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:247:14: branch_true: ...to here
dnsmasq-2.91/src/helper.c:248:19: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:256:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:256:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:260:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:260:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:265:22: branch_false: ...to here
dnsmasq-2.91/src/helper.c:501:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:505:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:10: branch_false: ...to here
dnsmasq-2.91/src/helper.c:512:10: branch_false: following ‘false’ branch (when ‘pid != -1’)...
dnsmasq-2.91/src/helper.c:523:10: branch_false: ...to here
dnsmasq-2.91/src/helper.c:523:10: branch_true: following ‘true’ branch (when ‘pid != 0’)...
dnsmasq-2.91/src/helper.c:525:16: branch_true: ...to here
dnsmasq-2.91/src/helper.c:525:14: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:529:15: branch_true: ...to here
dnsmasq-2.91/src/helper.c:529:15: danger: use of uninitialized value ‘pipeout[1]’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def93]
dnsmasq-2.91/src/helper.c:578:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipeout[0]’
dnsmasq-2.91/src/helper.c:88:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:94:6: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:102:3: branch_false: ...to here
dnsmasq-2.91/src/helper.c:178:6: branch_false: following ‘false’ branch (when ‘err_fd == -1’)...
dnsmasq-2.91/src/helper.c:178:6: branch_false: ...to here
dnsmasq-2.91/src/helper.c:192:10: branch_false: following ‘false’ branch (when ‘alloc_buff’ is NULL)...
dnsmasq-2.91/src/helper.c:199:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:199:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:212:16: branch_false: ...to here
dnsmasq-2.91/src/helper.c:246:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:247:14: branch_true: ...to here
dnsmasq-2.91/src/helper.c:248:19: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:256:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:256:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:260:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:260:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:265:22: branch_false: ...to here
dnsmasq-2.91/src/helper.c:501:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:505:10: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/helper.c:505:10: branch_false: ...to here
dnsmasq-2.91/src/helper.c:512:10: branch_false: following ‘false’ branch (when ‘pid != -1’)...
dnsmasq-2.91/src/helper.c:523:10: branch_false: ...to here
dnsmasq-2.91/src/helper.c:523:10: branch_false: following ‘false’ branch (when ‘pid == 0’)...
dnsmasq-2.91/src/helper.c:575:12: branch_false: ...to here
dnsmasq-2.91/src/helper.c:575:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/helper.c:578:11: branch_true: ...to here
dnsmasq-2.91/src/helper.c:578:11: danger: use of uninitialized value ‘pipeout[0]’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
dnsmasq-2.91/src/inotify.c:205:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*dd.dname)’
dnsmasq-2.91/src/inotify.c:167:35: branch_true: following ‘true’ branch (when ‘dd’ is non-NULL)...
dnsmasq-2.91/src/inotify.c:173:13: branch_true: ...to here
dnsmasq-2.91/src/inotify.c:198:43: acquire_memory: allocated here
dnsmasq-2.91/src/inotify.c:205:22: throw: if ‘readdir’ throws an exception...
dnsmasq-2.91/src/inotify.c:205:22: danger: ‘opendir(*dd.dname)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def95]
dnsmasq-2.91/src/lease.c:178: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: leasestream
Error: GCC_ANALYZER_WARNING (CWE-404): [#def96]
dnsmasq-2.91/src/log.c:359:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
dnsmasq-2.91/src/log.c:476:6: enter_function: entry to ‘die’
dnsmasq-2.91/src/log.c:488:3: call_function: calling ‘my_syslog’ from ‘die’
Error: CPPCHECK_WARNING (CWE-457): [#def97]
dnsmasq-2.91/src/network.c:195: error[uninitvar]: Uninitialized variable: ifr
Error: CPPCHECK_WARNING (CWE-457): [#def98]
dnsmasq-2.91/src/network.c:257: error[uninitvar]: Uninitialized variable: ifr
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
dnsmasq-2.91/src/network.c:764:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘param.fd’
dnsmasq-2.91/src/network.c:751:19: acquire_resource: datagram socket created here
dnsmasq-2.91/src/network.c:751:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:758:21: branch_false: ...to here
dnsmasq-2.91/src/network.c:758:32: branch_true: following ‘true’ branch (when ‘serv’ is non-NULL)...
dnsmasq-2.91/src/network.c:759:9: branch_true: ...to here
dnsmasq-2.91/src/network.c:759:8: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:764:36: branch_true: ...to here
dnsmasq-2.91/src/network.c:764:9: throw: if ‘safe_strncpy’ throws an exception...
dnsmasq-2.91/src/network.c:764:9: danger: ‘param.fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
dnsmasq-2.91/src/network.c:836:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘param.fd’
dnsmasq-2.91/src/network.c:751:19: acquire_resource: datagram socket created here
dnsmasq-2.91/src/network.c:751:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:758:21: branch_false: ...to here
dnsmasq-2.91/src/network.c:774:36: branch_false: following ‘false’ branch (when ‘iface’ is NULL)...
dnsmasq-2.91/src/network.c:778:8: branch_false: ...to here
dnsmasq-2.91/src/network.c:778:37: branch_false: following ‘false’ branch (when ‘intname’ is NULL)...
dnsmasq-2.91/src/network.c:791:8: branch_false: ...to here
dnsmasq-2.91/src/network.c:791:36: branch_false: following ‘false’ branch (when ‘cond’ is NULL)...
dnsmasq-2.91/src/network.c:804:8: branch_false: ...to here
dnsmasq-2.91/src/network.c:804:40: branch_false: following ‘false’ branch (when ‘addr’ is NULL)...
dnsmasq-2.91/src/network.c:810:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:815:35: branch_false: following ‘false’ branch (when ‘zone’ is NULL)...
dnsmasq-2.91/src/network.c:834:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:836:9: throw: if ‘iface_enumerate’ throws an exception...
dnsmasq-2.91/src/network.c:836:9: danger: ‘param.fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
dnsmasq-2.91/src/network.c:913:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/src/network.c:900:13: acquire_resource: socket created here
dnsmasq-2.91/src/network.c:900:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/network.c:945:7: branch_false: ...to here
dnsmasq-2.91/src/network.c:945:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:951:6: branch_false: following ‘false’ branch (when ‘rc != -1’)...
dnsmasq-2.91/src/network.c:954:6: branch_false: ...to here
dnsmasq-2.91/src/network.c:954:6: branch_true: following ‘true’ branch (when ‘type == 1’)...
dnsmasq-2.91/src/network.c:957:11: branch_true: ...to here
dnsmasq-2.91/src/network.c:961:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:962:9: branch_true: ...to here
dnsmasq-2.91/src/network.c:913:14: throw: if ‘prettyprint_addr’ throws an exception...
dnsmasq-2.91/src/network.c:913:14: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
dnsmasq-2.91/src/network.c:919:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dnsmasq-2.91/src/network.c:900:13: acquire_resource: socket created here
dnsmasq-2.91/src/network.c:900:6: branch_false: following ‘false’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/network.c:945:7: branch_false: ...to here
dnsmasq-2.91/src/network.c:945:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:951:6: branch_false: following ‘false’ branch (when ‘rc != -1’)...
dnsmasq-2.91/src/network.c:954:6: branch_false: ...to here
dnsmasq-2.91/src/network.c:954:6: branch_true: following ‘true’ branch (when ‘type == 1’)...
dnsmasq-2.91/src/network.c:957:11: branch_true: ...to here
dnsmasq-2.91/src/network.c:961:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:962:9: branch_true: ...to here
dnsmasq-2.91/src/network.c:918:10: branch_true: following ‘true’ branch (when ‘fd != -1’)...
dnsmasq-2.91/src/network.c:919:9: branch_true: ...to here
dnsmasq-2.91/src/network.c:919:9: throw: if ‘close’ throws an exception...
dnsmasq-2.91/src/network.c:919:9: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
dnsmasq-2.91/src/network.c:1133:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tcpfd’
dnsmasq-2.91/src/network.c:1177:6: enter_function: entry to ‘create_bound_listeners’
dnsmasq-2.91/src/network.c:1223:35: branch_true: following ‘true’ branch (when ‘if_tmp’ is non-NULL)...
dnsmasq-2.91/src/network.c:1224:11: branch_true: ...to here
dnsmasq-2.91/src/network.c:1225:16: call_function: calling ‘create_listeners’ from ‘create_bound_listeners’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
dnsmasq-2.91/src/network.c:1740:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dnsmasq-2.91/src/network.c:1734:13: acquire_resource: opened here
dnsmasq-2.91/src/network.c:1734:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:1740:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:1740:3: throw: if ‘mark_servers’ throws an exception...
dnsmasq-2.91/src/network.c:1740:3: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
dnsmasq-2.91/src/network.c:1740:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dnsmasq-2.91/src/network.c:1734:13: acquire_memory: allocated here
dnsmasq-2.91/src/network.c:1734:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:1740:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:1740:3: throw: if ‘mark_servers’ throws an exception...
dnsmasq-2.91/src/network.c:1740:3: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
dnsmasq-2.91/src/network.c:1742:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
dnsmasq-2.91/src/network.c:1734:13: acquire_resource: opened here
dnsmasq-2.91/src/network.c:1734:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:1740:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:1742:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:1745:21: branch_true: ...to here
dnsmasq-2.91/src/network.c:1747:10: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
dnsmasq-2.91/src/network.c:1749:11: branch_false: ...to here
dnsmasq-2.91/src/network.c:1751:10: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
dnsmasq-2.91/src/network.c:1754:7: branch_false: ...to here
dnsmasq-2.91/src/network.c:1757:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:1762:39: branch_true: ...to here
dnsmasq-2.91/src/network.c:1795:7: throw: if ‘add_update_server’ throws an exception...
dnsmasq-2.91/src/network.c:1742:30: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
dnsmasq-2.91/src/network.c:1742:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
dnsmasq-2.91/src/network.c:1734:13: acquire_memory: allocated here
dnsmasq-2.91/src/network.c:1734:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/network.c:1740:3: branch_false: ...to here
dnsmasq-2.91/src/network.c:1742:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:1745:21: branch_true: ...to here
dnsmasq-2.91/src/network.c:1747:10: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
dnsmasq-2.91/src/network.c:1749:11: branch_false: ...to here
dnsmasq-2.91/src/network.c:1751:10: branch_false: following ‘false’ branch (when ‘token’ is non-NULL)...
dnsmasq-2.91/src/network.c:1754:7: branch_false: ...to here
dnsmasq-2.91/src/network.c:1757:10: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/network.c:1762:39: branch_true: ...to here
dnsmasq-2.91/src/network.c:1795:7: throw: if ‘add_update_server’ throws an exception...
dnsmasq-2.91/src/network.c:1742:30: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-121): [#def108]
dnsmasq-2.91/src/option.c:857:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
dnsmasq-2.91/src/option.c:5886:6: enter_function: entry to ‘read_opts’
dnsmasq-2.91/src/option.c:5947:10: branch_false: following ‘false’ branch (when ‘option != -1’)...
dnsmasq-2.91/src/option.c:5960:11: branch_false: ...to here
dnsmasq-2.91/src/option.c:5988:13: call_function: calling ‘do_usage’ from ‘read_opts’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def109]
dnsmasq-2.91/src/rfc1035.c:1468:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
dnsmasq-2.91/src/rfc1035.c:1455:3: acquire_resource: ‘va_start’ called here
dnsmasq-2.91/src/rfc1035.c:1460:6: branch_false: following ‘false’ branch (when ‘nameoffset <= 0’)...
dnsmasq-2.91/src/rfc1035.c:1467:13: branch_false: ...to here
dnsmasq-2.91/src/rfc1035.c:1468:10: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
dnsmasq-2.91/src/rfc1035.c:1468:25: branch_true: ...to here
dnsmasq-2.91/src/rfc1035.c:1468:25: throw: if ‘do_rfc1035_name’ throws an exception...
dnsmasq-2.91/src/rfc1035.c:1468:25: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-562): [#def110]
dnsmasq-2.91/src/rfc3315.c:247: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def111]
dnsmasq-2.91/src/rfc3315.c:297: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def112]
dnsmasq-2.91/src/rfc3315.c:590: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def113]
dnsmasq-2.91/src/rfc3315.c:601: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
dnsmasq-2.91/src/tftp.c:332:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
dnsmasq-2.91/src/tftp.c:586:6: enter_function: entry to ‘check_tftp_listeners’
dnsmasq-2.91/src/tftp.c:591:38: branch_true: following ‘true’ branch (when ‘listener’ is non-NULL)...
dnsmasq-2.91/src/tftp.c:592:9: branch_true: ...to here
dnsmasq-2.91/src/tftp.c:592:8: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/tftp.c:593:7: call_function: calling ‘tftp_request’ from ‘check_tftp_listeners’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
dnsmasq-2.91/src/util.c:780:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
dnsmasq-2.91/src/util.c:44:6: enter_function: entry to ‘rand_init’
dnsmasq-2.91/src/util.c:46:12: acquire_resource: opened here
dnsmasq-2.91/src/util.c:48:6: branch_false: following ‘false’ branch...
dnsmasq-2.91/src/util.c:49:8: branch_false: ...to here
dnsmasq-2.91/src/util.c:49:8: call_function: calling ‘read_write’ from ‘rand_init’
dnsmasq-2.91/src/util.c:49:8: return_function: returning to ‘rand_init’ from ‘read_write’
dnsmasq-2.91/src/util.c:780:18: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
dnsmasq-2.91/src/util.c:840:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc/self/fd")’
dnsmasq-2.91/src/util.c:836:12: acquire_memory: allocated here
dnsmasq-2.91/src/util.c:836:6: branch_true: following ‘true’ branch...
dnsmasq-2.91/src/util.c:836:6: branch_true: ...to here
dnsmasq-2.91/src/util.c:840:20: throw: if ‘readdir’ throws an exception...
dnsmasq-2.91/src/util.c:840:20: danger: ‘opendir("/proc/self/fd")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| 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-99.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-x86_64 |
| project-name | dnsmasq-2.91-1.fc44 |
| store-results-to | /tmp/tmpfuiv5rid/dnsmasq-2.91-1.fc44.tar.xz |
| time-created | 2026-01-08 15:51:54 |
| time-finished | 2026-01-08 15:54:16 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfuiv5rid/dnsmasq-2.91-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfuiv5rid/dnsmasq-2.91-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |