{
    "scan": {
        "analyzer-version-clippy": "1.95.0",
        "analyzer-version-cppcheck": "2.20.0",
        "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-85.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": "python-psutil-7.2.2-4.fc45",
        "store-results-to": "/tmp/tmp7361gsol/python-psutil-7.2.2-4.fc45.tar.xz",
        "time-created": "2026-06-01 16:15:34",
        "time-finished": "2026-06-01 16:16:47",
        "tool": "csmock",
        "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp7361gsol/python-psutil-7.2.2-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7361gsol/python-psutil-7.2.2-4.fc45.src.rpm'",
        "tool-version": "csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9"
    },
    "defects": [
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 124,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "11ddd1af6fab1d210c80c8b02b8332c086223657",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 116,
                    "column": 9,
                    "h_size": 13,
                    "event": "warning[-Wanalyzer-out-of-bounds]",
                    "message": "stack-based buffer underwrite",
                    "verbosity_level": 0
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 131,
                    "column": 1,
                    "h_size": 19,
                    "event": "enter_function",
                    "message": "entry to ‘psutil_net_if_addrs’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 142,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following ‘false’ branch...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 144,
                    "column": 9,
                    "h_size": 19,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 144,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following ‘false’ branch...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 149,
                    "column": 10,
                    "h_size": 12,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 149,
                    "column": 24,
                    "h_size": 8,
                    "event": "branch_true",
                    "message": "following ‘true’ branch (when ‘ifa’ is non-NULL)...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 150,
                    "column": 14,
                    "h_size": 13,
                    "event": "branch_true",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 153,
                    "column": 22,
                    "h_size": 44,
                    "event": "call_function",
                    "message": "calling ‘psutil_convert_ipaddr’ from ‘psutil_net_if_addrs’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 54,
                    "column": 1,
                    "h_size": 21,
                    "event": "enter_function",
                    "message": "entry to ‘psutil_convert_ipaddr’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 153,
                    "column": 22,
                    "h_size": 44,
                    "event": "return_function",
                    "message": "returning to ‘psutil_net_if_addrs’ from ‘psutil_convert_ipaddr’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 158,
                    "column": 12,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following ‘false’ branch...",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 160,
                    "column": 22,
                    "h_size": 47,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 160,
                    "column": 22,
                    "h_size": 47,
                    "event": "call_function",
                    "message": "calling ‘psutil_convert_ipaddr’ from ‘psutil_net_if_addrs’",
                    "verbosity_level": 1
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 54,
                    "column": 1,
                    "h_size": 21,
                    "event": "enter_function",
                    "message": "entry to ‘psutil_convert_ipaddr’",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 63,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following ‘false’ branch (when ‘addr’ is non-NULL)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 67,
                    "column": 14,
                    "h_size": 11,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 67,
                    "column": 13,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "following ‘false’ branch...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 89,
                    "column": 13,
                    "h_size": 1,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 89,
                    "column": 13,
                    "h_size": 1,
                    "event": "branch_true",
                    "message": "following ‘true’ branch (when ‘family == 17’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 91,
                    "column": 15,
                    "h_size": 17,
                    "event": "branch_true",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 110,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_true",
                    "message": "following ‘true’ branch (when ‘len != 0’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 110,
                    "column": 8,
                    "h_size": 1,
                    "event": "branch_true",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 112,
                    "column": 21,
                    "h_size": 7,
                    "event": "branch_false",
                    "message": "following ‘false’ branch (when ‘n >= len’)...",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 116,
                    "column": 9,
                    "h_size": 13,
                    "event": "branch_false",
                    "message": "...to here",
                    "verbosity_level": 2
                },
                {
                    "file_name": "psutil-release-7.2.2/psutil/arch/posix/net.c",
                    "line": 116,
                    "column": 9,
                    "h_size": 13,
                    "event": "danger",
                    "message": "out-of-bounds write at byte -1 but ‘buf’ starts at byte 0",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  114|               ptr += 3;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  115|           }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  116|->         *--ptr = '\\0';",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  117|           return Py_BuildValue(\"s\", buf);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  118|       }",
                    "verbosity_level": 1
                }
            ]
        }
    ]
}
