{
    "scan": {
        "analyzer-version-clang": "18.1.7",
        "analyzer-version-cppcheck": "2.14.2",
        "analyzer-version-gcc": "14.1.1",
        "analyzer-version-gcc-analyzer": "14.1.1",
        "analyzer-version-shellcheck": "0.10.0",
        "enabled-plugins": "clang, cppcheck, gcc, shellcheck",
        "exit-code": 0,
        "host": "ip-172-16-1-185.us-west-2.compute.internal",
        "mock-config": "fedora-41-x86_64",
        "project-name": "kf6-syntax-highlighting-6.0.0-2.fc40",
        "store-results-to": "/tmp/tmpu_kpz4yp/kf6-syntax-highlighting-6.0.0-2.fc40.tar.xz",
        "time-created": "2024-07-03 14:17:14",
        "time-finished": "2024-07-03 14:20:49",
        "tool": "csmock",
        "tool-args": "'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpu_kpz4yp/kf6-syntax-highlighting-6.0.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpu_kpz4yp/kf6-syntax-highlighting-6.0.0-2.fc40.src.rpm'",
        "tool-version": "csmock-3.5.3-1.el9"
    },
    "defects": [
        {
            "checker": "CLANG_WARNING",
            "language": "c/c++",
            "tool": "clang",
            "hash_v1": "ae9fe87ffdf58b8e05697f008c7c6a24f0fe94af",
            "key_event_idx": 1,
            "events": [
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/rule.cpp",
                    "line": 11,
                    "event": "included_from",
                    "message": "Included from here.",
                    "verbosity_level": 1
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 30,
                    "column": 9,
                    "event": "warning[cplusplus.NewDelete]",
                    "message": "Use of memory after it is freed",
                    "verbosity_level": 0
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/rule.cpp",
                    "line": 683,
                    "column": 20,
                    "event": "note",
                    "message": "Assuming field 'm_isResolved' is true",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/qt6/QtCore/qcompilerdetection.h",
                    "line": 198,
                    "column": 49,
                    "event": "note",
                    "message": "expanded from macro 'Q_UNLIKELY'",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/rule.cpp",
                    "line": 683,
                    "column": 5,
                    "event": "note",
                    "message": "Taking false branch",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/rule.cpp",
                    "line": 691,
                    "column": 20,
                    "event": "note",
                    "message": "Calling 'DynamicRegexpCache::compileRegexp'",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 25,
                    "column": 24,
                    "event": "note",
                    "message": "'regexp' is null",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 25,
                    "column": 9,
                    "event": "note",
                    "message": "Taking false branch",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 28,
                    "column": 23,
                    "event": "note",
                    "message": "Memory is allocated",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 29,
                    "column": 9,
                    "event": "note",
                    "message": "Calling 'QCache::insert'",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/qt6/QtCore/qcache.h",
                    "line": 186,
                    "column": 13,
                    "event": "note",
                    "message": "Assuming 'cost' is > field 'mx'",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/qt6/QtCore/qcache.h",
                    "line": 186,
                    "column": 9,
                    "event": "note",
                    "message": "Taking true branch",
                    "verbosity_level": 2
                },
                {
                    "file_name": "/usr/include/qt6/QtCore/qcache.h",
                    "line": 188,
                    "column": 13,
                    "event": "note",
                    "message": "Memory is released",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 29,
                    "column": 9,
                    "event": "note",
                    "message": "Returning; memory was released via 2nd parameter",
                    "verbosity_level": 2
                },
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/dynamicregexpcache_p.h",
                    "line": 30,
                    "column": 9,
                    "event": "note",
                    "message": "Use of memory after it is freed",
                    "verbosity_level": 2
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   28|           auto regexp = new QRegularExpression(key.first, patternOptions);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   29|           m_cache.insert(key, regexp);",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   30|->         return *regexp;",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   31|       }",
                    "verbosity_level": 1
                },
                {
                    "file_name": "",
                    "line": 0,
                    "event": "#",
                    "message": "   32|   ",
                    "verbosity_level": 1
                }
            ]
        },
        {
            "checker": "CLANG_WARNING",
            "language": "c/c++",
            "tool": "clang",
            "key_event_idx": 0,
            "events": [
                {
                    "file_name": "kf6-syntax-highlighting-6.0.0-build/syntax-highlighting-6.0.0/src/lib/repository.cpp",
                    "line": 0,
                    "event": "internal warning",
                    "message": "child 1591 timed out after 30s",
                    "verbosity_level": 0
                }
            ]
        }
    ]
}
