{
    "scan": {
        "analyzer-version-clippy": "1.97.1",
        "analyzer-version-cppcheck": "2.21.1",
        "analyzer-version-gcc": "16.1.1",
        "analyzer-version-gcc-analyzer": "16.1.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-208.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.20260524.213755.g3c6d0be.main-1.el9.noarch",
        "mock-config": "fedora-rawhide-x86_64",
        "project-name": "libbytesize-2.12-2.fc44",
        "store-results-to": "/tmp/tmp7lm45klo/libbytesize-2.12-2.fc44.tar.xz",
        "time-created": "2026-08-03 17:00:18",
        "time-finished": "2026-08-03 17:02:19",
        "tool": "csmock",
        "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp7lm45klo/libbytesize-2.12-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7lm45klo/libbytesize-2.12-2.fc44.src.rpm'",
        "tool-version": "csmock-3.8.7.20260803.142340.gb75b18e-1.el9"
    },
    "defects": [
        {
            "checker": "CPPCHECK_WARNING",
            "cwe": 476,
            "language": "c/c++",
            "tool": "cppcheck",
            "hash_v1": "f9c51e427b34938c1a0563ee57feb9e8e65f4ec6",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 112,
                    "event": "warning[nullPointerOutOfMemory]",
                    "message": "If memory allocation fails, then there is a possible null pointer dereference: size",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  110|   static void bs_size_init (BSSize size) {",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  111|       /* let's start with 64 bits of space */",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  112|->     mpz_init2 (size->bytes, (mp_bitcnt_t) 64);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  113|   }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  114|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 457,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "b0aa188e10929922a501c9f393d21ef69111e114",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 498,
                    "column": 15,
                    "h_size": 21,
                    "event": "warning[-Wanalyzer-use-of-uninitialized-value]",
                    "message": "use of uninitialized value '*<unknown>'",
                    "verbosity_level": 0
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 437,
                    "column": 8,
                    "h_size": 20,
                    "event": "enter_function",
                    "message": "entry to 'bs_size_new_from_str'",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 470,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following 'false' branch...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 492,
                    "column": 20,
                    "h_size": 49,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 492,
                    "column": 20,
                    "h_size": 49,
                    "event": "call_function",
                    "message": "calling 'replace_char_with_str' from 'bs_size_new_from_str'",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 133,
                    "column": 14,
                    "h_size": 21,
                    "event": "enter_function",
                    "message": "entry to 'replace_char_with_str'",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 141,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following 'false' branch (when 'str' is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 145,
                    "column": 15,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 145,
                    "column": 36,
                    "h_size": 4,
                    "event": "branch_false",
                    "message": "following 'false' branch (when 'next' is NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 149,
                    "column": 35,
                    "h_size": 11,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 150,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following 'false' branch (when 'ret' is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 150,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 492,
                    "column": 20,
                    "h_size": 49,
                    "event": "return_function",
                    "message": "returning to 'bs_size_new_from_str' from 'replace_char_with_str'",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 493,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following 'false' branch...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 498,
                    "column": 15,
                    "h_size": 21,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "libbytesize-2.12/src/bs_size.c",
                    "line": 498,
                    "column": 15,
                    "h_size": 21,
                    "event": "danger",
                    "message": "use of uninitialized value '*<unknown>' here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  496|           return NULL;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  497|       }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  498|->     str_len = strlen (loc_size_str);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  499|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  500|       match_data = pcre2_match_data_create_from_pattern (regex, NULL);",
                    "verbosity_level": 1
                }
            ]
        }
    ]
}
