{
    "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-1.fc44",
        "store-results-to": "/tmp/tmphul7l8lt/python-psutil-7.2.2-1.fc44.tar.xz",
        "time-created": "2026-06-01 16:13:32",
        "time-finished": "2026-06-01 16:15:15",
        "tool": "csmock",
        "tool-args": "'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmphul7l8lt/python-psutil-7.2.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmphul7l8lt/python-psutil-7.2.2-1.fc44.src.rpm'",
        "tool-version": "csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9"
    },
    "defects": [
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "hash_v1": "32be9c43928d78d7b0aa506ec4ebb500d3e52e53",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/usr/include/python3.14/pyconfig-64.h",
                    "line": 2011,
                    "column": 9,
                    "h_size": 15,
                    "event": "warning[warning]",
                    "message": "‘_POSIX_C_SOURCE’ redefined",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 2009|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 2010|   /* Define to activate features from IEEE Stds 1003.1-2008 */",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 2011|-> #define _POSIX_C_SOURCE 200809L",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 2012|   ",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": " 2013|   /* Define if you have POSIX threads, and your system does not define that. */",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "COMPILER_WARNING",
            "language": "c/c++",
            "tool": "gcc",
            "hash_v1": "6924c4eb1d122f068f77421b356e350042384e45",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/usr/include/features.h",
                    "line": 319,
                    "column": 10,
                    "h_size": 15,
                    "event": "note[note]",
                    "message": "this is the location of the previous definition",
                    "verbosity_level": 0
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  317|   # define _POSIX_SOURCE\t1",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  318|   # undef  _POSIX_C_SOURCE",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  319|-> # define _POSIX_C_SOURCE\t202405L",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  320|   #endif",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "  321|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "GCC_ANALYZER_WARNING",
            "cwe": 124,
            "language": "c/c++",
            "tool": "gcc-analyzer",
            "hash_v1": "a2e84d955a98385f2bb1e15371aa6007ff8f34b1",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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": "/builddir/build/BUILD/python-psutil-7.2.2-build/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
                }
            ]
        }
    ]
}
