{
    "defects": [
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_autofree’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1334,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_autofree_context’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1334 |         p = talloc_autofree_context();",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 28,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1084,
                    "column": 16,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1084 | _PUBLIC_ void *talloc_autofree_context(void) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |                ^~~~~~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1337,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_autofree_context’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1337 |         p = talloc_autofree_context();",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1084,
                    "column": 16,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1084 | _PUBLIC_ void *talloc_autofree_context(void) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |                ^~~~~~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘test_memlimit’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1680,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1680 |         torture_assert(\"memlimit\", talloc_set_memlimit(l1, 2048) == 0,",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1740,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1740 |         torture_assert(\"memlimit\", talloc_set_memlimit(l3, 1024) == 0,",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1753,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1753 |         torture_assert(\"memlimit\", talloc_set_memlimit(l4, 512) == 0,",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1787,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1787 |         torture_assert(\"memlimit\", talloc_set_memlimit(l4, 512) == 0,",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1820,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1820 |         talloc_set_memlimit(pool, 10*1024);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1873,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1873 |         talloc_set_memlimit(pool, 11*1024);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1885,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1885 |         talloc_set_memlimit(pool, 21*1024);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1923,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1923 |         talloc_set_memlimit(pool, 1024);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c",
                    "line": 1944,
                    "column": 9,
                    "event": "warning[-Wdeprecated-declarations]",
                    "message": "‘talloc_set_memlimit’ is deprecated",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1944 |         talloc_set_memlimit(pool, 10*1024);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |         ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.h",
                    "line": 1984,
                    "column": 14,
                    "event": "note",
                    "message": "declared here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "      |              ^~~~~~~~~~~~~~~~~~~",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 401,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/talloc.c",
                    "line": 793,
                    "event": "error[memleak]",
                    "message": "Memory leak: ptr",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c",
                    "line": 172,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: x",
                    "verbosity_level": 0
                }
            ]
        }
    ]
}
