{
    "defects": [
        {
            "checker": "GCC_ANALYZER_WARNING",
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘get_used_servers’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 25,
                    "column": 18,
                    "event": "warning[-Wanalyzer-deref-before-check]",
                    "message": "check of ‘servers’ for NULL after already dereferencing it",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 466,
                    "column": 5,
                    "event": "note",
                    "message": "(1) entry to ‘update’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 477,
                    "column": 10,
                    "event": "note",
                    "message": "(2) following ‘true’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 478,
                    "column": 20,
                    "event": "note",
                    "message": "(3) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 478,
                    "column": 20,
                    "event": "note",
                    "message": "(4) calling ‘get_used_servers’ from ‘update’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 18,
                    "column": 15,
                    "event": "note",
                    "message": "(5) entry to ‘get_used_servers’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 20,
                    "column": 17,
                    "event": "note",
                    "message": "(6) pointer ‘servers’ is dereferenced here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 25,
                    "column": 18,
                    "event": "note",
                    "message": "(7) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (6)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘effective_ca_from_config’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 184,
                    "column": 12,
                    "event": "warning[-Wanalyzer-null-argument]",
                    "message": "use of NULL ‘effective_ca’ where non-null expected",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 176,
                    "column": 6,
                    "event": "note",
                    "message": "(1) following ‘false’ branch (when ‘backup_ca’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 176,
                    "column": 6,
                    "event": "note",
                    "message": "(2) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 184,
                    "column": 12,
                    "event": "note",
                    "message": "(3) argument 1 (‘effective_ca’) NULL where non-null expected",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/glib-2.0/glib/galloca.h",
                    "line": 35,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/glib-2.0/glib.h",
                    "line": 32,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.h",
                    "line": 1,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 1,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/string.h",
                    "line": 202,
                    "column": 14,
                    "event": "note",
                    "message": "argument 1 of ‘strdup’ must be non-null",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘get_forward_add_command’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 340,
                    "column": 18,
                    "event": "warning[-Wanalyzer-deref-before-check]",
                    "message": "check of ‘servers’ for NULL after already dereferencing it",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 323,
                    "column": 17,
                    "event": "note",
                    "message": "(1) pointer ‘servers’ is dereferenced here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 340,
                    "column": 18,
                    "event": "note",
                    "message": "(2) pointer ‘servers’ is checked for NULL here but it was already dereferenced at (1)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 775,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘write_resolv_conf’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 602,
                    "column": 13,
                    "event": "warning[-Wanalyzer-file-leak]",
                    "message": "leak of FILE ‘fopen(*config.resolv_conf_path, \"w\")’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 566,
                    "column": 22,
                    "event": "note",
                    "message": "(1) opened here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 567,
                    "column": 6,
                    "event": "note",
                    "message": "(2) assuming ‘fopen(*config.resolv_conf_path, \"w\")’ is non-NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 567,
                    "column": 6,
                    "event": "note",
                    "message": "(3) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 572,
                    "column": 20,
                    "event": "note",
                    "message": "(4) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 596,
                    "column": 6,
                    "event": "note",
                    "message": "(5) following ‘false’ branch (when ‘first_search != 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 600,
                    "column": 3,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 602,
                    "column": 13,
                    "event": "note",
                    "message": "(7) ‘fopen(*config.resolv_conf_path, \"w\")’ leaks here; was opened at (1)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 401,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 602,
                    "column": 13,
                    "event": "warning[-Wanalyzer-malloc-leak]",
                    "message": "leak of ‘fopen(*config.resolv_conf_path, \"w\")’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 566,
                    "column": 22,
                    "event": "note",
                    "message": "(1) allocated here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 567,
                    "column": 6,
                    "event": "note",
                    "message": "(2) assuming ‘fopen(*config.resolv_conf_path, \"w\")’ is non-NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 567,
                    "column": 6,
                    "event": "note",
                    "message": "(3) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 572,
                    "column": 20,
                    "event": "note",
                    "message": "(4) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 596,
                    "column": 6,
                    "event": "note",
                    "message": "(5) following ‘false’ branch (when ‘first_search != 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 600,
                    "column": 3,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/dns_managers/unbound_manager.c",
                    "line": 602,
                    "column": 13,
                    "event": "note",
                    "message": "(7) ‘fopen(*config.resolv_conf_path, \"w\")’ leaks here; was allocated at (1)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 775,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘revert_resolv_conf’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 63,
                    "event": "warning[-Wanalyzer-file-leak]",
                    "message": "leak of FILE ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 275,
                    "column": 5,
                    "event": "note",
                    "message": "(1) entry to ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 281,
                    "column": 5,
                    "event": "note",
                    "message": "(2) following ‘case 5:’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 378,
                    "column": 5,
                    "event": "note",
                    "message": "(3) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 379,
                    "column": 7,
                    "event": "note",
                    "message": "(4) following ‘case 4:’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 385,
                    "column": 9,
                    "event": "note",
                    "message": "(5) inlined call to ‘set_exit_code’ from ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 269,
                    "column": 10,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 269,
                    "column": 6,
                    "event": "note",
                    "message": "(7) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘revert_resolv_conf’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 386,
                    "column": 28,
                    "event": "note",
                    "message": "(8) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 387,
                    "column": 21,
                    "event": "note",
                    "message": "(9) calling ‘revert_resolv_conf’ from ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 257,
                    "column": 20,
                    "event": "note",
                    "message": "(10) entry to ‘revert_resolv_conf’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 258,
                    "column": 28,
                    "event": "note",
                    "message": "(11) opened here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 6,
                    "event": "note",
                    "message": "(12) assuming ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’ is non-NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 6,
                    "event": "note",
                    "message": "(13) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 63,
                    "event": "note",
                    "message": "(14) ...to here (15) ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’ leaks here; was opened at (11)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 401,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 63,
                    "event": "warning[-Wanalyzer-malloc-leak]",
                    "message": "leak of ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 275,
                    "column": 5,
                    "event": "note",
                    "message": "(1) entry to ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 281,
                    "column": 5,
                    "event": "note",
                    "message": "(2) following ‘case 5:’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 378,
                    "column": 5,
                    "event": "note",
                    "message": "(3) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 379,
                    "column": 7,
                    "event": "note",
                    "message": "(4) following ‘case 4:’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 385,
                    "column": 9,
                    "event": "note",
                    "message": "(5) inlined call to ‘set_exit_code’ from ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 269,
                    "column": 10,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 269,
                    "column": 6,
                    "event": "note",
                    "message": "(7) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘revert_resolv_conf’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 386,
                    "column": 28,
                    "event": "note",
                    "message": "(8) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 387,
                    "column": 21,
                    "event": "note",
                    "message": "(9) calling ‘revert_resolv_conf’ from ‘state_transition’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 257,
                    "column": 20,
                    "event": "note",
                    "message": "(10) entry to ‘revert_resolv_conf’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 258,
                    "column": 28,
                    "event": "note",
                    "message": "(11) allocated here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 6,
                    "event": "note",
                    "message": "(12) assuming ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’ is non-NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 6,
                    "event": "note",
                    "message": "(13) following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 260,
                    "column": 63,
                    "event": "note",
                    "message": "(14) ...to here (15) ‘fopen(*ctx_8(D)->config.resolv_conf_path, \"w\")’ leaks here; was allocated at (11)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 690,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 11,
                    "column": 20,
                    "event": "warning[-Wanalyzer-possible-null-dereference]",
                    "message": "dereference of possibly-NULL ‘server’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 3,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_server_list_to_hash_table_networks_fn’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 129,
                    "column": 12,
                    "event": "note",
                    "message": "(1) entry to ‘test_server_list_to_hash_table_networks_fn’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 131,
                    "column": 22,
                    "event": "note",
                    "message": "(2) inlined call to ‘create_test_server’ from ‘test_server_list_to_hash_table_networks_fn’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 10,
                    "column": 26,
                    "event": "note",
                    "message": "(3) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 11,
                    "column": 20,
                    "event": "note",
                    "message": "(4) ‘server’ could be NULL: unchecked value from (3)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 11,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 12,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 13,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_server_uri.c",
                    "line": 50,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: uri",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 775,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/src/fsm/fsm.c",
                    "line": 265,
                    "event": "error[resourceLeak]",
                    "message": "Resource leak: resolv_conf_file",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 690,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 15,
                    "column": 20,
                    "event": "warning[-Wanalyzer-possible-null-dereference]",
                    "message": "dereference of possibly-NULL ‘server’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_get_used_servers_mixed_fn’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 175,
                    "column": 12,
                    "event": "note",
                    "message": "(1) entry to ‘test_get_used_servers_mixed_fn’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 177,
                    "column": 22,
                    "event": "note",
                    "message": "(2) inlined call to ‘create_server’ from ‘test_get_used_servers_mixed_fn’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 14,
                    "column": 26,
                    "event": "note",
                    "message": "(3) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 15,
                    "column": 20,
                    "event": "note",
                    "message": "(4) ‘server’ could be NULL: unchecked value from (3)",
                    "verbosity_level": 2
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 15,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 16,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 17,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/dnsconfd-2.1.0-build/dnsconfd-2.1.0/unittests/test_unbound_manager.c",
                    "line": 19,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: server",
                    "verbosity_level": 0
                }
            ]
        }
    ]
}
