{
    "scan": {
        "analyzer-version-clippy": "1.94.1",
        "analyzer-version-cppcheck": "2.20.0",
        "analyzer-version-gcc": "16.0.1",
        "analyzer-version-gcc-analyzer": "16.0.1",
        "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-187.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.20260320.200800.gd35503f.main-1.el9.noarch",
        "mock-config": "fedora-rawhide-x86_64",
        "project-name": "image-builder-55-1.20260324150647185021.main.1.gf17ba3e",
        "store-results-to": "/tmp/tmpx3abf5as/image-builder-55-1.20260324150647185021.main.1.gf17ba3e.tar.xz",
        "time-created": "2026-03-30 18:59:19",
        "time-finished": "2026-03-30 19:03:15",
        "tool": "csmock",
        "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpx3abf5as/image-builder-55-1.20260324150647185021.main.1.gf17ba3e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpx3abf5as/image-builder-55-1.20260324150647185021.main.1.gf17ba3e.src.rpm'",
        "tool-version": "csmock-3.8.4.20260302.153719.g8203630-1.el9"
    },
    "defects": [
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 775,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "24d1787cf61e45bb6aaca9e5eb9df3847cf8de9f",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘parse_proc_stringlist’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "warning[-Wanalyzer-fd-leak]",
                    "message": "leak of file descriptor ‘fd’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 108,
                    "column": 14,
                    "event": "note",
                    "message": "(1) opened here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(2) assuming ‘fd’ is a valid file descriptor (>= 0)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(3) following ‘false’ branch (when ‘fd != -1’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(4) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(5) when ‘realloc’ fails",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 118,
                    "column": 20,
                    "event": "note",
                    "message": "(6) following ‘true’ branch (when ‘new_buf’ is NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 119,
                    "column": 25,
                    "event": "note",
                    "message": "(7) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "note",
                    "message": "(8) ‘fd’ leaks here; was opened at (1)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  154|   \tret[i] = NULL;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  155|   \treturn ret;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  156|-> }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  157|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  158|   /*",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 401,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "3da7bc055a018d3c0e7a313c09f941bd8399053f",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "warning[-Wanalyzer-malloc-leak]",
                    "message": "leak of ‘buf’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(1) following ‘false’ branch (when ‘fd != -1’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(2) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(3) allocated here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(4) when ‘realloc’ succeeds, moving buffer",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 118,
                    "column": 20,
                    "event": "note",
                    "message": "(5) following ‘false’ branch (when ‘new_buf’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 125,
                    "column": 28,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 127,
                    "column": 20,
                    "event": "note",
                    "message": "(7) following ‘false’ branch (when ‘n >= 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 131,
                    "column": 20,
                    "event": "note",
                    "message": "(8) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 131,
                    "column": 20,
                    "event": "note",
                    "message": "(9) following ‘false’ branch (when ‘n != 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 134,
                    "column": 22,
                    "event": "note",
                    "message": "(10) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(11) when ‘realloc’ succeeds, without moving buffer",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 118,
                    "column": 20,
                    "event": "note",
                    "message": "(12) following ‘false’ branch (when ‘new_buf’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 125,
                    "column": 28,
                    "event": "note",
                    "message": "(13) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "note",
                    "message": "(14) ‘buf’ leaks here; was allocated at (3)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  154|   \tret[i] = NULL;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  155|   \treturn ret;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  156|-> }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  157|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  158|   /*",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 401,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "cdb59a56c68edd1d0feb441b9c519f47969dcb17",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "warning[-Wanalyzer-malloc-leak]",
                    "message": "leak of ‘new_buf’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(1) following ‘false’ branch (when ‘fd != -1’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 109,
                    "column": 12,
                    "event": "note",
                    "message": "(2) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(3) allocated here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 117,
                    "column": 27,
                    "event": "note",
                    "message": "(4) when ‘realloc’ succeeds, moving buffer",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 118,
                    "column": 20,
                    "event": "note",
                    "message": "(5) following ‘false’ branch (when ‘new_buf’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 125,
                    "column": 28,
                    "event": "note",
                    "message": "(6) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 127,
                    "column": 20,
                    "event": "note",
                    "message": "(7) following ‘true’ branch (when ‘n < 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 128,
                    "column": 25,
                    "event": "note",
                    "message": "(8) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/containers/storage/pkg/unshare/unshare.c",
                    "line": 156,
                    "column": 1,
                    "event": "note",
                    "message": "(9) ‘new_buf’ leaks here; was allocated at (3)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  154|   \tret[i] = NULL;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  155|   \treturn ret;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  156|-> }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  157|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  158|   /*",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "language": "c/c++",
            "tool": "cppcheck",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c",
                    "line": 0,
                    "event": "internal warning",
                    "message": "child 5825 timed out after 30s",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c",
                    "line": 0,
                    "event": "internal warning",
                    "message": "child 5844 timed out after 30s",
                    "verbosity_level": 0
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "cwe": 704,
            "language": "c/c++",
            "tool": "gcc",
            "hash_v1": "5be9ec91e7eebde651b2491b5c5ba6ac22e8e126",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘sqlite3ShadowTableName’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c",
                    "line": 124684,
                    "column": 9,
                    "event": "warning[-Wdiscarded-qualifiers]",
                    "message": "assignment discards ‘const’ qualifier from pointer target type",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "124682|     char *zTail;                  /* Pointer to the last \"_\" in zName */",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "124683|     Table *pTab;                  /* Table that zName is a shadow of */",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "124684|->   zTail = strrchr(zName, '_');",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "124685|     if( zTail==0 ) return 0;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "124686|     *zTail = 0;",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "228bbe4dfff32adfb1351a4c218ccce73a665294",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 77,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: c",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   75|   \tCK_C_GetFunctionList list;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   76|   \tstruct ctx *c = calloc(1, sizeof(struct ctx));",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   77|-> \tc->handle = dlopen(module, RTLD_LAZY);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   78|   \tif (c->handle == NULL) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   79|   \t\tfree(c);",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "56aee664ec9dd4a25dc63bbb91810a5c2266be15",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function 'New'",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 77,
                    "column": 19,
                    "event": "warning[-Wanalyzer-possible-null-dereference]",
                    "message": "dereference of possibly-NULL 'c'",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 76,
                    "column": 25,
                    "event": "note",
                    "message": "(1) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 77,
                    "column": 19,
                    "event": "note",
                    "message": "(2) 'c' could be NULL: unchecked value from (1)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   75|   \tCK_C_GetFunctionList list;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   76|   \tstruct ctx *c = calloc(1, sizeof(struct ctx));",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   77|-> \tc->handle = dlopen(module, RTLD_LAZY);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   78|   \tif (c->handle == NULL) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   79|   \t\tfree(c);",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "7f1f53ebe6e9d35d45b890915f2375a19bfb23a0",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘New’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 77,
                    "column": 19,
                    "event": "warning[-Wanalyzer-possible-null-dereference]",
                    "message": "dereference of possibly-NULL ‘c’",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 76,
                    "column": 25,
                    "event": "note",
                    "message": "(1) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 77,
                    "column": 19,
                    "event": "note",
                    "message": "(2) ‘c’ could be NULL: unchecked value from (1)",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   75|   \tCK_C_GetFunctionList list;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   76|   \tstruct ctx *c = calloc(1, sizeof(struct ctx));",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   77|-> \tc->handle = dlopen(module, RTLD_LAZY);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   78|   \tif (c->handle == NULL) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   79|   \t\tfree(c);",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "a73ab79e5f8bc61052feef7c0dd2bab05516e7b9",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 78,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: c",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   76|   \tstruct ctx *c = calloc(1, sizeof(struct ctx));",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   77|   \tc->handle = dlopen(module, RTLD_LAZY);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   78|-> \tif (c->handle == NULL) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   79|   \t\tfree(c);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   80|   \t\treturn NULL;",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "9e849d79447d29de1ccca115ef04ff69c9a8a712",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/miekg/pkcs11/pkcs11.go",
                    "line": 82,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: c",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   80|   \t\treturn NULL;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   81|   \t}",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   82|-> \tlist = (CK_C_GetFunctionList) dlsym(c->handle, \"C_GetFunctionList\");",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   83|   \tif (list == NULL) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   84|   \t\tfree(c);",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "146ebaebb232b805df6b10cdc7dad91db298d735",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 60,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: ret",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   58|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   59|   \t\tret = (char *)malloc((strlen(enc)+1) * sizeof(char)); // for trailing null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   60|-> \t\tstrcpy(ret, enc);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   61|   \t\tret[strlen(enc)]= '\\0';",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   62|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 688,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "d63993547f6e4c05cbfac24359f3f62a303db46f",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function 'gnu_ext_crypt'",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 60,
                    "column": 17,
                    "event": "warning[-Wanalyzer-possible-null-argument]",
                    "message": "use of possibly-NULL 'ret' where non-null expected",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 55,
                    "column": 19,
                    "event": "note",
                    "message": "(1) following 'false' branch (when 'enc' is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 59,
                    "column": 39,
                    "event": "note",
                    "message": "(2) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 59,
                    "column": 31,
                    "event": "note",
                    "message": "(3) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 60,
                    "column": 17,
                    "event": "note",
                    "message": "(4) argument 1 ('ret') from (3) could be NULL where non-null expected",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 45,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/string.h",
                    "line": 156,
                    "column": 14,
                    "event": "note",
                    "message": "argument 1 of 'strcpy' must be non-null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   58|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   59|   \t\tret = (char *)malloc((strlen(enc)+1) * sizeof(char)); // for trailing null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   60|-> \t\tstrcpy(ret, enc);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   61|   \t\tret[strlen(enc)]= '\\0';",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   62|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 688,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "036ed65e47737e6d6b272b0467a09f180b16420e",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 0,
                    "event": "scope_hint",
                    "message": "In function ‘gnu_ext_crypt’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 60,
                    "column": 17,
                    "event": "warning[-Wanalyzer-possible-null-argument]",
                    "message": "use of possibly-NULL ‘ret’ where non-null expected",
                    "verbosity_level": 0
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 55,
                    "column": 19,
                    "event": "note",
                    "message": "(1) following ‘false’ branch (when ‘enc’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 59,
                    "column": 39,
                    "event": "note",
                    "message": "(2) ...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 59,
                    "column": 31,
                    "event": "note",
                    "message": "(3) this call could return NULL",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 60,
                    "column": 17,
                    "event": "note",
                    "message": "(4) argument 1 (‘ret’) from (3) could be NULL where non-null expected",
                    "verbosity_level": 2
                },
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 45,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "/usr/include/string.h",
                    "line": 156,
                    "column": 14,
                    "event": "note",
                    "message": "argument 1 of ‘strcpy’ must be non-null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   58|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   59|   \t\tret = (char *)malloc((strlen(enc)+1) * sizeof(char)); // for trailing null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   60|-> \t\tstrcpy(ret, enc);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   61|   \t\tret[strlen(enc)]= '\\0';",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   62|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "8ded7ffdc08df297bd10351cf32fb64de2c4ecbe",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-cli-55/vendor/github.com/osbuild/images/pkg/crypt/crypt_impl.go",
                    "line": 61,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: ret",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   59|   \t\tret = (char *)malloc((strlen(enc)+1) * sizeof(char)); // for trailing null",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   60|   \t\tstrcpy(ret, enc);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   61|-> \t\tret[strlen(enc)]= '\\0';",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   62|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   63|   \t return ret;",
                    "verbosity_level": 1
                }
            ]
        }
    ]
}
