{
    "defects": [
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 690,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_get_resolv_conf_string_fn’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 54,
                    "column": 3,
                    "event": "warning[-Wanalyzer-possible-null-argument]",
                    "message": "use of possibly-NULL ‘fopen(\"/dev/null\", \"w\")’ where non-null expected",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 35,
                    "column": 19,
                    "event": "note",
                    "message": "(1) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 37,
                    "column": 30,
                    "event": "note",
                    "message": "(2) following ‘false’ branch (when ‘cur_output’ is NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 54,
                    "column": 3,
                    "event": "note",
                    "message": "(3) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 54,
                    "column": 3,
                    "event": "note",
                    "message": "(4) argument 1 (‘fopen(\"/dev/null\", \"w\")’) from (1) could be NULL where non-null expected",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 4,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/stdio.h",
                    "line": 184,
                    "column": 12,
                    "event": "note",
                    "message": "argument 1 of ‘fclose’ must be non-null",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 690,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_parsing_fn’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 57,
                    "column": 3,
                    "event": "warning[-Wanalyzer-possible-null-argument]",
                    "message": "use of possibly-NULL ‘fopen(\"/dev/null\", \"w\")’ where non-null expected",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 43,
                    "column": 20,
                    "event": "note",
                    "message": "(1) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 45,
                    "column": 36,
                    "event": "note",
                    "message": "(2) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/glib-2.0/glib/giochannel.h",
                    "line": 36,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/glib.h",
                    "line": 56,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/gobject/gbinding.h",
                    "line": 30,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/glib-object.h",
                    "line": 24,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/gio/gioenums.h",
                    "line": 30,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/gio/giotypes.h",
                    "line": 30,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/gio/gio.h",
                    "line": 28,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/uri-parsing.h",
                    "line": 1,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 6,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 56,
                    "column": 3,
                    "event": "note",
                    "message": "(3) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 57,
                    "column": 3,
                    "event": "note",
                    "message": "(4) argument 1 (‘fopen(\"/dev/null\", \"w\")’) from (1) could be NULL where non-null expected",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-uri-parsing.c",
                    "line": 4,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/stdio.h",
                    "line": 184,
                    "column": 12,
                    "event": "note",
                    "message": "argument 1 of ‘fclose’ must be non-null",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 54,
                    "event": "warning[nullPointerOutOfResources]",
                    "message": "If resource allocation fails, then there is a possible null pointer dereference: devnull",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-1.7.2-build/dnsconfd-1.7.2/micro-dnsconfd/tests/test-nm-config-parsing.c",
                    "line": 156,
                    "event": "warning[nullPointerOutOfResources]",
                    "message": "If resource allocation fails, then there is a possible null pointer dereference: devnull",
                    "verbosity_level": 0
                }
            ]
        }
    ]
}
