/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c: In function ‘test_get_resolv_conf_string_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:54:3: warning: use of possibly-NULL ‘fopen("/dev/null", "w")’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:35:19: note: (1) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:37:30: note: (2) following ‘false’ branch (when ‘cur_output’ is NULL)... <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:54:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:54:3: note: (4) argument 1 (‘fopen("/dev/null", "w")’) from (1) could be NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:4: <--[gcc]
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c: In function ‘test_parsing_fn’: <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:57:3: warning: use of possibly-NULL ‘fopen("/dev/null", "w")’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:43:20: note: (1) this call could return NULL <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:45:36: note: (2) following ‘false’ branch... <--[gcc]
In file included from /usr/include/glib-2.0/glib/giochannel.h:36, <--[gcc]
                 from /usr/include/glib-2.0/glib.h:56, <--[gcc]
                 from /usr/include/glib-2.0/gobject/gbinding.h:30, <--[gcc]
                 from /usr/include/glib-2.0/glib-object.h:24, <--[gcc]
                 from /usr/include/glib-2.0/gio/gioenums.h:30, <--[gcc]
                 from /usr/include/glib-2.0/gio/giotypes.h:30, <--[gcc]
                 from /usr/include/glib-2.0/gio/gio.h:28, <--[gcc]
                 from /builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/uri-parsing.h:1, <--[gcc]
                 from /builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:6: <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:56:3: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:57:3: note: (4) argument 1 (‘fopen("/dev/null", "w")’) from (1) could be NULL where non-null expected <--[gcc]
In file included from /builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c:4: <--[gcc]
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null <--[gcc]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/nm-config-parsing.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:54: warning: nullPointerOutOfResources(CWE-476): If resource allocation fails, then there is a possible null pointer dereference: devnull <--[cppcheck]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c:156: warning: nullPointerOutOfResources(CWE-476): If resource allocation fails, then there is a possible null pointer dereference: devnull <--[cppcheck]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/uri-parsing.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/uri-parsing.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/nm-config-parsing.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
