123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677 |
- {
- "version": "2.1.0",
- "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
- "runs": [
- {
- "results": [
- {
- "ruleId": "C6001",
- "message": {
- "text": "使用未初始化的内存“*filehandle”。"
- },
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 107,
- "startColumn": 16,
- "endLine": 107,
- "endColumn": 16
- }
- },
- "logicalLocations": [
- {
- "decoratedName": "?DoSaveProcedure@LogFileSaveThread@@QEAA_NXZ",
- "kind": "function"
- }
- ]
- }
- ],
- "codeFlows": [
- {
- "threadFlows": [
- {
- "locations": [
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 59,
- "startColumn": 26
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 66,
- "startColumn": 24
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 67,
- "startColumn": 22
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 70,
- "startColumn": 24
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 71,
- "startColumn": 25
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 73,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 74,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 75,
- "startColumn": 8
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 78,
- "startColumn": 24
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 79,
- "startColumn": 26
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 82,
- "startColumn": 34
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 83,
- "startColumn": 14
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 86,
- "startColumn": 32
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 93,
- "startColumn": 93
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 100,
- "startColumn": 10
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 101,
- "startColumn": 18
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 107,
- "startColumn": 40
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 114,
- "startColumn": 9
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 115,
- "startColumn": 13
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 160,
- "startColumn": 13
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 163,
- "startColumn": 14
- }
- },
- "message": {
- "text": "未初始化“*filehandle”"
- }
- },
- "kinds": [
- "declaration"
- ],
- "importance": "essential"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 165,
- "startColumn": 3
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 83,
- "startColumn": 14
- }
- },
- "message": {
- "text": "继续此循环(假定“iter!=(BlockMap.end())”)"
- }
- },
- "kinds": [
- "branch"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 86,
- "startColumn": 32
- }
- },
- "message": {
- "text": "跳过此分支(假定“<分支条件>”为 false)"
- }
- },
- "kinds": [
- "branch"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 93,
- "startColumn": 93
- }
- },
- "message": {
- "text": "跳过此分支(假定“<分支条件>”为 false)"
- }
- },
- "kinds": [
- "branch"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 100,
- "startColumn": 10
- }
- }
- },
- "importance": "unimportant"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 101,
- "startColumn": 18
- }
- },
- "message": {
- "text": "跳过此分支(假定“<分支条件>”为 false)"
- }
- },
- "kinds": [
- "branch"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 107,
- "startColumn": 40
- }
- },
- "message": {
- "text": "“*filehandle”是对“LockFile”的输入(在 d:\\windows kits\\10\\include\\10.0.19041.0\\um\\fileapi.h:961 处声明)"
- }
- },
- "kinds": [
- "usage"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 107,
- "startColumn": 40
- }
- },
- "message": {
- "text": "跳过此分支(假定“<分支条件>”为 false)"
- }
- },
- "kinds": [
- "branch"
- ],
- "importance": "important"
- },
- {
- "location": {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "region": {
- "startLine": 107,
- "startColumn": 16
- }
- },
- "message": {
- "text": "已使用“*filehandle”,但可能尚未将其初始化"
- }
- },
- "kinds": [
- "usage"
- ],
- "importance": "essential"
- }
- ]
- }
- ]
- }
- ]
- }
- ],
- "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_7e14c924ast -typedil -f LogFileSaveThread.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 -DLOGGER_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\\DiosLoggerX64.pch -Fox64\\Release\\LogFileSaveThread.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\Logger -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:/DIOS_V2/DriverPlatform/Logger/Logger.h"
- },
- "roles": [
- "resultFile"
- ],
- "hashes": {
- "md5": "dcc81685c0ed303899127b874b73f16e"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/logger.cpp"
- },
- "roles": [
- "analysisTarget"
- ],
- "hashes": {
- "md5": "ac49a8c248497dc838b2d802948c70ca"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/stdafx.h"
- },
- "hashes": {
- "md5": "8567dc0b4ba10b18d73585059110b847"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/targetver.h"
- },
- "hashes": {
- "md5": "20a1397a4f718d91f76e2681bef085b6"
- }
- },
- {
- "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:/dios_v2/driverplatform/logger/buffmanager.h"
- },
- "hashes": {
- "md5": "9af61e1db5cd9cb8d948fcdb0b0c59d1"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/filemanager.h"
- },
- "hashes": {
- "md5": "8ad90668242c04d5c6f380cf869aee51"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/circlebuff.h"
- },
- "hashes": {
- "md5": "b6be7f81864caf6bf5b36f3106f32879"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/localconfig.h"
- },
- "hashes": {
- "md5": "cd69a6005777ef114acf2acc87ee04b4"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/definitions.h"
- },
- "hashes": {
- "md5": "07878c897e77929c249016920da5e648"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/common_api.h"
- },
- "hashes": {
- "md5": "b3fe9e47713eb74ad1294f29077c8a8a"
- }
- },
- {
- "location": {
- "uri": "file:///e:/dios_v2/driverplatform/logger/logfilesavethread.h"
- },
- "hashes": {
- "md5": "f711f6f9f023d33a58de14185358083f"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/diosthread.h"
- },
- "hashes": {
- "md5": "f79dd78165d55ab364f98e65e1049af4"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/cdi.h"
- },
- "hashes": {
- "md5": "9e80d05743150a2349832daa11b23472"
- }
- },
- {
- "location": {
- "uri": "file:///e:/deliver/include/diosfilehandle.h"
- },
- "hashes": {
- "md5": "d7b028d6b156db169d9b66dfa079c3e2"
- }
- },
- {
- "location": {
- "uri": "file:///E:/DIOS_V2/DriverPlatform/Logger/LogFileSaveThread.cpp"
- },
- "roles": [
- "analysisTarget",
- "resultFile"
- ],
- "hashes": {
- "md5": "73c75bd16efbfabefa523b99094d303c"
- }
- }
- ]
- }
- ]
- }
|