123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- {
- "version": "2.1.0",
- "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
- "runs": [
- {
- "results": [
- {
- "ruleId": "C28159",
- "message": {
- "text": "考虑使用“GetTickCount64”而不是“GetTickCount”。原因: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/P2PModule/P2PModule.cpp"
- },
- "region": {
- "startLine": 872,
- "startColumn": 11,
- "endLine": 872,
- "endColumn": 23
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?TryCheckConnection@P2P_Module_Server@@QEAAHXZ",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C28159",
- "message": {
- "text": "考虑使用“GetTickCount64”而不是“GetTickCount”。原因: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/P2PModule/P2PModule.cpp"
- },
- "region": {
- "startLine": 991,
- "startColumn": 23,
- "endLine": 991,
- "endColumn": 35
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?Exec@P2P_Module_Server@@UEAA_NXZ",
- "kind": "function"
- }
- ]
- }
- ]
- },
- {
- "ruleId": "C28159",
- "message": {
- "text": "考虑使用“GetTickCount64”而不是“GetTickCount”。原因: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/P2PModule/P2PModule.cpp"
- },
- "region": {
- "startLine": 1009,
- "startColumn": 24,
- "endLine": 1009,
- "endColumn": 36
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?SendBlob@P2P_Module_Server@@UEAA_NPEBD0K@Z",
- "kind": "function"
- }
- ]
- }
- ]
- }
- ],
- "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_1161926fast -typedil -f P2PModule.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 -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DP2PMODULE_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\\P2PModuleX64.pch -Fox64\\Release\\P2PModule.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\P2PModule -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 E:\\DIOS_V2\\DriverPlatform\\ECOM_commonTools -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:/DIOS_V2/DriverPlatform/P2PModule/P2PModule.cpp"
- },
- "roles": [
- "analysisTarget",
- "resultFile"
- ],
- "hashes": {
- "md5": "d2543c081c00f9f83ad64f0b08bfbcb9"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/p2pmodule/stdafx.h"
- },
- "hashes": {
- "md5": "1670d257289af5a4bf0cc9741805575e"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/p2pmodule/targetver.h"
- },
- "hashes": {
- "md5": "20a1397a4f718d91f76e2681bef085b6"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/p2pmodule/p2pmodule.h"
- },
- "hashes": {
- "md5": "3f706f302d56c2e2e5496800721dd197"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/diosthread.h"
- },
- "hashes": {
- "md5": "f79dd78165d55ab364f98e65e1049af4"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/dioslock.h"
- },
- "hashes": {
- "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/resdataobject.h"
- },
- "hashes": {
- "md5": "5952703846c703003535fa667ae9a289"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/devicebus.h"
- },
- "hashes": {
- "md5": "8552390682346019af5990e2918d0aaf"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/errorinfoobject.h"
- },
- "hashes": {
- "md5": "d58c33cbdce19def7032f97de668c987"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/logger.h"
- },
- "hashes": {
- "md5": "dcc81685c0ed303899127b874b73f16e"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/common_api.h"
- },
- "hashes": {
- "md5": "b3fe9e47713eb74ad1294f29077c8a8a"
- }
- }
- ]
- }
- ]
- }
|