{
    "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",
        "diffbase-analyzer-version-clippy": "1.94.1",
        "diffbase-analyzer-version-cppcheck": "2.20.0",
        "diffbase-analyzer-version-gcc": "16.0.1",
        "diffbase-analyzer-version-gcc-analyzer": "16.0.1",
        "diffbase-analyzer-version-shellcheck": "0.11.0",
        "diffbase-analyzer-version-unicontrol": "0.0.2",
        "diffbase-enabled-plugins": "clippy, cppcheck, gcc, shellcheck, unicontrol",
        "diffbase-exit-code": 0,
        "diffbase-host": "ip-172-16-1-187.us-west-2.compute.internal",
        "diffbase-known-false-positives": "/usr/share/csmock/known-false-positives.js",
        "diffbase-known-false-positives-rpm": "known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch",
        "diffbase-mock-config": "fedora-rawhide-x86_64",
        "diffbase-project-name": "image-builder-55-1.20260324150647185021.main.1.gf17ba3e",
        "diffbase-store-results-to": "/tmp/tmpx3abf5as/image-builder-55-1.20260324150647185021.main.1.gf17ba3e.tar.xz",
        "diffbase-time-created": "2026-03-30 18:59:19",
        "diffbase-time-finished": "2026-03-30 19:03:15",
        "diffbase-tool": "csmock",
        "diffbase-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'",
        "diffbase-tool-version": "csmock-3.8.4.20260302.153719.g8203630-1.el9",
        "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": "ef77d422deb18156a902ec0cd47759d0654ba06f",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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": "c7b78fd55ae4a381347522f5342f4469cb9c5b49",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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": "78e6e6297054a5e27bd69f35bfca980191f4b59e",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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": "3942eb3cafa4f8bc9d8b56ae38131f5f42575e50",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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": "4b2a9ce3919079cd47f6864ddd28709e87575892",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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": "7f7eb382f88b5af5747c1ebf3f0f07155c91bd6b",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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": "638b7fff71c401955d198c1467e923ec9778ed68",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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": "855cb2061494572c80f27c6dc27ad1670b0d88e6",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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": "ff79cfbd2dd41d7f051f5215a146bba04472647a",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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": "edb6b044e211d24a9eab8546a127ac39e3d3f3d8",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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": "fefdb64cca3ecbab98c5a9485450cee81f1156b1",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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": "5175f5ee67baf632e109a20f99c86448dc42b8c2",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "image-builder-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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-55-build/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": "790f55ec241b524edd8c72d3f11be70db075ef4d",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "image-builder-55-build/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
                }
            ]
        }
    ]
}
