PacketAnalizer.nativecodeanalysis.sarif 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. {
  2. "version": "2.1.0",
  3. "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
  4. "runs": [
  5. {
  6. "results": [
  7. {
  8. "ruleId": "C26812",
  9. "message": {
  10. "text": "枚举类型“_Packet_Type”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  17. },
  18. "region": {
  19. "startLine": 85,
  20. "startColumn": 15,
  21. "endLine": 85,
  22. "endColumn": 53
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "?GetDestinationMachineId@PacketAnalizer@@SA_NAEAVResDataObject@@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26812",
  36. "message": {
  37. "text": "枚举类型“_Packet_Cmd”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  44. },
  45. "region": {
  46. "startLine": 227,
  47. "startColumn": 13,
  48. "endLine": 227,
  49. "endColumn": 19
  50. }
  51. },
  52. "logicalLocations": [
  53. {
  54. "decoratedName": "?GetPacketCmd@PacketAnalizer@@SA?AW4_Packet_Cmd@@PEAVResDataObject@@@Z",
  55. "kind": "function"
  56. }
  57. ]
  58. }
  59. ]
  60. },
  61. {
  62. "ruleId": "C26812",
  63. "message": {
  64. "text": "枚举类型“_Action_Sync_Mode”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  65. },
  66. "locations": [
  67. {
  68. "physicalLocation": {
  69. "artifactLocation": {
  70. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  71. },
  72. "region": {
  73. "startLine": 256,
  74. "startColumn": 19,
  75. "endLine": 256,
  76. "endColumn": 25
  77. }
  78. },
  79. "logicalLocations": [
  80. {
  81. "decoratedName": "?GetPacketSyncMode@PacketAnalizer@@SA?AW4_Action_Sync_Mode@@PEAVResDataObject@@@Z",
  82. "kind": "function"
  83. }
  84. ]
  85. }
  86. ]
  87. },
  88. {
  89. "ruleId": "C26812",
  90. "message": {
  91. "text": "枚举类型“_Dios_Packet_Route”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  92. },
  93. "locations": [
  94. {
  95. "physicalLocation": {
  96. "artifactLocation": {
  97. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  98. },
  99. "region": {
  100. "startLine": 494,
  101. "startColumn": 22,
  102. "endLine": 494,
  103. "endColumn": 22
  104. }
  105. },
  106. "logicalLocations": [
  107. {
  108. "decoratedName": "?GetPacketRoute@PacketAnalizer@@SA_NPEAVResDataObject@@AEAW4_Dios_Packet_Route@@@Z",
  109. "kind": "function"
  110. }
  111. ]
  112. }
  113. ]
  114. },
  115. {
  116. "ruleId": "C26812",
  117. "message": {
  118. "text": "枚举类型“_Ret_Status”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  119. },
  120. "locations": [
  121. {
  122. "physicalLocation": {
  123. "artifactLocation": {
  124. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  125. },
  126. "region": {
  127. "startLine": 529,
  128. "startColumn": 22,
  129. "endLine": 529,
  130. "endColumn": 22
  131. }
  132. },
  133. "logicalLocations": [
  134. {
  135. "decoratedName": "?GetPacketRetCode@PacketAnalizer@@SA_NPEAVResDataObject@@AEAW4_Ret_Status@@@Z",
  136. "kind": "function"
  137. }
  138. ]
  139. }
  140. ]
  141. }
  142. ],
  143. "tool": {
  144. "driver": {
  145. "name": "PREfast",
  146. "fullName": "PREfast Code Analysis",
  147. "version": "14.29.30147.0",
  148. "informationUri": "https://aka.ms/cpp/ca"
  149. }
  150. },
  151. "invocations": [
  152. {
  153. "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_229bd905ast -typedil -f ..\\..\\..\\..\\deliver\\include\\PacketAnalizer.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_CONSOLE -D_LIB -D_MBCS -D_AFXDLL -EHs -D_CPPUNWIND -EHc -MD -D_MT -D_DLL -GS -D_M_FP_PRECISE -Zc:wchar_t -Zc:forScope -Yustdafx.h -Fpx64\\Release\\DiosProcMFCX64.pch -Fox64\\Release\\PacketAnalizer.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\DrvProc\\DiosProcMFC -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:\\deliver\\include\\Common -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",
  154. "executionSuccessful": true
  155. }
  156. ],
  157. "artifacts": [
  158. {
  159. "location": {
  160. "uri": "file:///E:/deliver/include/ResDataObject.h"
  161. },
  162. "roles": [
  163. "resultFile"
  164. ],
  165. "hashes": {
  166. "md5": "5952703846c703003535fa667ae9a289"
  167. }
  168. },
  169. {
  170. "location": {
  171. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/diosprocmfc.cpp"
  172. },
  173. "roles": [
  174. "analysisTarget"
  175. ],
  176. "hashes": {
  177. "md5": "d35582d323bbd9161ebecde4d0263632"
  178. }
  179. },
  180. {
  181. "location": {
  182. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/stdafx.h"
  183. },
  184. "hashes": {
  185. "md5": "a113d1d2e6bff20910cc7e14534c539e"
  186. }
  187. },
  188. {
  189. "location": {
  190. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/targetver.h"
  191. },
  192. "hashes": {
  193. "md5": "20a1397a4f718d91f76e2681bef085b6"
  194. }
  195. },
  196. {
  197. "location": {
  198. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/diosprocmfc.h"
  199. },
  200. "hashes": {
  201. "md5": "69644f508096b324c6e32e97b39cb467"
  202. }
  203. },
  204. {
  205. "location": {
  206. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/resource.h"
  207. },
  208. "hashes": {
  209. "md5": "1c1d62ee88f341e2fe35182d73b02c7f"
  210. }
  211. },
  212. {
  213. "location": {
  214. "uri": "file:///e:/deliver/include/scf.h"
  215. },
  216. "hashes": {
  217. "md5": "acc80c1bb996650f48e226f5b637c693"
  218. }
  219. },
  220. {
  221. "location": {
  222. "uri": "file:///e:/deliver/include/dioslock.h"
  223. },
  224. "hashes": {
  225. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  226. }
  227. },
  228. {
  229. "location": {
  230. "uri": "file:///e:/deliver/include/logger.h"
  231. },
  232. "hashes": {
  233. "md5": "dcc81685c0ed303899127b874b73f16e"
  234. }
  235. },
  236. {
  237. "location": {
  238. "uri": "file:///e:/deliver/include/diosthread.h"
  239. },
  240. "hashes": {
  241. "md5": "f79dd78165d55ab364f98e65e1049af4"
  242. }
  243. },
  244. {
  245. "location": {
  246. "uri": "file:///e:/deliver/include/cdi.h"
  247. },
  248. "hashes": {
  249. "md5": "9e80d05743150a2349832daa11b23472"
  250. }
  251. },
  252. {
  253. "location": {
  254. "uri": "file:///e:/deliver/include/definitions.h"
  255. },
  256. "hashes": {
  257. "md5": "07878c897e77929c249016920da5e648"
  258. }
  259. },
  260. {
  261. "location": {
  262. "uri": "file:///e:/deliver/include/diosfilehandle.h"
  263. },
  264. "hashes": {
  265. "md5": "d7b028d6b156db169d9b66dfa079c3e2"
  266. }
  267. },
  268. {
  269. "location": {
  270. "uri": "file:///e:/deliver/include/localconfig.h"
  271. },
  272. "hashes": {
  273. "md5": "cd69a6005777ef114acf2acc87ee04b4"
  274. }
  275. },
  276. {
  277. "location": {
  278. "uri": "file:///e:/deliver/include/wheelclient.h"
  279. },
  280. "hashes": {
  281. "md5": "fb05fe7396171e4b6271a4193feabf6e"
  282. }
  283. },
  284. {
  285. "location": {
  286. "uri": "file:///e:/deliver/include/logicclient.h"
  287. },
  288. "hashes": {
  289. "md5": "22ef80d326cb316e6c90f92345bb2538"
  290. }
  291. },
  292. {
  293. "location": {
  294. "uri": "file:///e:/deliver/include/msgqueue.h"
  295. },
  296. "hashes": {
  297. "md5": "9ddf4b8ca60625ace14f3c36247d80db"
  298. }
  299. },
  300. {
  301. "location": {
  302. "uri": "file:///e:/deliver/include/logicdevice.h"
  303. },
  304. "hashes": {
  305. "md5": "4412949d99d7097322c97f1ebf6fde34"
  306. }
  307. },
  308. {
  309. "location": {
  310. "uri": "file:///e:/deliver/include/dpc.h"
  311. },
  312. "hashes": {
  313. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  314. }
  315. },
  316. {
  317. "location": {
  318. "uri": "file:///e:/deliver/include/wheelunitlogic.h"
  319. },
  320. "hashes": {
  321. "md5": "d2b740b3075026af638fe8e19628091b"
  322. }
  323. },
  324. {
  325. "location": {
  326. "uri": "file:///e:/deliver/include/busunitclient.h"
  327. },
  328. "hashes": {
  329. "md5": "7eaad8bf92e3f2455670c278d4d05887"
  330. }
  331. },
  332. {
  333. "location": {
  334. "uri": "file:///e:/deliver/include/busunitlogic.h"
  335. },
  336. "hashes": {
  337. "md5": "e77ec7ac562b077a9a268da82692b8a5"
  338. }
  339. },
  340. {
  341. "location": {
  342. "uri": "file:///e:/deliver/include/commonlogicclient.h"
  343. },
  344. "hashes": {
  345. "md5": "86f52b03f8d2a342687b1dc890fa8a9c"
  346. }
  347. },
  348. {
  349. "location": {
  350. "uri": "file:///e:/deliver/include/common_api.h"
  351. },
  352. "hashes": {
  353. "md5": "b3fe9e47713eb74ad1294f29077c8a8a"
  354. }
  355. },
  356. {
  357. "location": {
  358. "uri": "file:///e:/deliver/include/packetanalizer.h"
  359. },
  360. "hashes": {
  361. "md5": "7fa7a13e7c88c4eb71b8926741a67149"
  362. }
  363. },
  364. {
  365. "location": {
  366. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/consolethread.h"
  367. },
  368. "hashes": {
  369. "md5": "8c949fe5b783c3f7a4421eb6522b4791"
  370. }
  371. },
  372. {
  373. "location": {
  374. "uri": "file:///e:/deliver/include/autodmp.h"
  375. },
  376. "hashes": {
  377. "md5": "adf728c13446a4d31ff120da0473c83a"
  378. }
  379. },
  380. {
  381. "location": {
  382. "uri": "file:///e:/deliver/include/sharememory_client.h"
  383. },
  384. "hashes": {
  385. "md5": "57e378a6d9167f73356b18ae10b69de3"
  386. }
  387. },
  388. {
  389. "location": {
  390. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/consolethread.cpp"
  391. },
  392. "roles": [
  393. "analysisTarget"
  394. ],
  395. "hashes": {
  396. "md5": "f8103f3e7d1b749290d129245a440e7c"
  397. }
  398. },
  399. {
  400. "location": {
  401. "uri": "file:///E:/deliver/include/PacketAnalizer.cpp"
  402. },
  403. "roles": [
  404. "analysisTarget",
  405. "resultFile"
  406. ],
  407. "hashes": {
  408. "md5": "c4f7d2ddab0418d0522860c3119dffaf"
  409. }
  410. },
  411. {
  412. "location": {
  413. "uri": "file:///e:/deliver/include/crc64.h"
  414. },
  415. "hashes": {
  416. "md5": "f37a9f0a9928ecf57a90d3607517598b"
  417. }
  418. }
  419. ]
  420. }
  421. ]
  422. }