{ "version": "2.1.0", "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json", "runs": [ { "results": [ { "ruleId": "C26812", "message": { "text": "枚举类型“_SCF_Transfertype”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/deliver/include/SCF.h" }, "region": { "startLine": 254, "startColumn": 2, "endLine": 254, "endColumn": 2 } }, "logicalLocations": [ { "decoratedName": "??0SCF@@QEAA@AEBV0@@Z", "kind": "function" } ] } ] }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::Socketfd。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::Socketfd" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::servs。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::servs" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::tulong。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::tulong" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::sa。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::sa" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::tulongptr。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::tulongptr" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::Error。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::Error" } }, { "ruleId": "C26495", "message": { "text": "未初始化变量 TcpipSCF::hes。始终初始化成员变量(type.6)。" }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "region": { "startLine": 14, "startColumn": 11, "endLine": 14, "endColumn": 11 } }, "logicalLocations": [ { "decoratedName": "??0TcpipSCF@@QEAA@XZ", "kind": "function" } ] } ], "properties": { "targetSymbol": "TcpipSCF::hes" } } ], "tool": { "driver": { "name": "PREfast", "fullName": "PREfast Code Analysis", "version": "14.29.30147.0", "informationUri": "https://aka.ms/cpp/ca" } }, "invocations": [ { "commandLine": "\"d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\c1xx.dll\" -ACf{1F7B090C-16DB-4822-966A-A93D26ED4681} -ACpmspft140.dll -Alint -D_PREFAST_ -D_AST_FE_ -Analyze -zm0x00B2C1B0 -allChunksReserved -il C:\\Users\\ecom\\AppData\\Local\\Temp\\_CL_2a09af8east -typedil -f TcpipSCF.cpp -Ze -D_MSC_EXTENSIONS -Zp16 -pc \\:/ -D_MSC_VER=1929 -D_MSC_FULL_VER=192930147 -D_MSC_BUILD=0 -D_M_AMD64=100 -ZILP448 -D_M_X64=100 -D_WIN64 -D_WIN32 -GR -D_CPPRTTI -nologo -W 3 -diagnostics:column -D_GUARDOVERFLOW_CRT_ALLOCATORS=1 -GF -Og -Ot -Oy -Oi -ltcg -DCODE_ANALYSIS -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DTCPIPSCF_EXPORTS -D_WINDLL -D_MBCS -EHs -D_CPPUNWIND -EHc -MD -D_MT -D_DLL -GS -D_M_FP_PRECISE -Zc:wchar_t -Zc:forScope -Yustdafx.h -Fpx64\\Release\\TcpipSCFX64.pch -Fox64\\Release\\TcpipSCF.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\SCF\\TcpipSCF -analyze:rulesetdirectory ;d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\\\Rule Sets; -analyze:ruleset d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\Rule Sets\\NativeRecommendedRules.ruleset -analyze:quiet -analyze:plugin d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\EspXEngine.dll -FC -errorreport:prompt -I E:\\deliver\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\um -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\shared -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\winrt -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt -I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -external:I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -external:I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -external:I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -external:I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt -external:I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I d:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -external:I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\um -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\um -external:I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\shared -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\shared -external:I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\winrt -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\winrt -external:I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt -I D:\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt -external:I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um", "executionSuccessful": true } ], "artifacts": [ { "location": { "uri": "file:///E:/deliver/include/SCF.h" }, "roles": [ "resultFile" ], "hashes": { "md5": "acc80c1bb996650f48e226f5b637c693" } }, { "location": { "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp" }, "roles": [ "analysisTarget", "resultFile" ], "hashes": { "md5": "7565ac30f2d9726426fccc71e8e38aff" } }, { "location": { "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/stdafx.h" }, "hashes": { "md5": "1670d257289af5a4bf0cc9741805575e" } }, { "location": { "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/targetver.h" }, "hashes": { "md5": "20a1397a4f718d91f76e2681bef085b6" } }, { "location": { "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/tcpipscf.h" }, "hashes": { "md5": "2dfc6ea39fd53034c01f05e97f175491" } }, { "location": { "uri": "file:///e:/deliver/include/resdataobject.h" }, "hashes": { "md5": "5952703846c703003535fa667ae9a289" } }, { "location": { "uri": "file:///e:/deliver/include/dioslock.h" }, "hashes": { "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc" } }, { "location": { "uri": "file:///e:/deliver/include/logger.h" }, "hashes": { "md5": "dcc81685c0ed303899127b874b73f16e" } }, { "location": { "uri": "file:///e:/deliver/include/diosthread.h" }, "hashes": { "md5": "f79dd78165d55ab364f98e65e1049af4" } }, { "location": { "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/scketfuncs.h" }, "hashes": { "md5": "a8a1195a979ac62d8d74d24e92699241" } } ] } ] }