ConsoleThread.nativecodeanalysis.sarif 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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": "C26495",
  9. "message": {
  10. "text": "未初始化变量 BaseJsonDataObject<unsigned __int64>::m_Data。始终初始化成员变量(type.6)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/deliver/include/ResDataObject.h"
  17. },
  18. "region": {
  19. "startLine": 400,
  20. "startColumn": 2,
  21. "endLine": 400,
  22. "endColumn": 2
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "??0?$BaseJsonDataObject@_K@@QEAA@XZ",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ],
  33. "properties": {
  34. "targetSymbol": "BaseJsonDataObject<unsigned __int64>::m_Data"
  35. }
  36. },
  37. {
  38. "ruleId": "C26495",
  39. "message": {
  40. "text": "未初始化变量 BaseJsonDataObject<bool>::m_Data。始终初始化成员变量(type.6)。"
  41. },
  42. "locations": [
  43. {
  44. "physicalLocation": {
  45. "artifactLocation": {
  46. "uri": "file:///E:/deliver/include/ResDataObject.h"
  47. },
  48. "region": {
  49. "startLine": 400,
  50. "startColumn": 2,
  51. "endLine": 400,
  52. "endColumn": 2
  53. }
  54. },
  55. "logicalLocations": [
  56. {
  57. "decoratedName": "??0?$BaseJsonDataObject@_N@@QEAA@XZ",
  58. "kind": "function"
  59. }
  60. ]
  61. }
  62. ],
  63. "properties": {
  64. "targetSymbol": "BaseJsonDataObject<bool>::m_Data"
  65. }
  66. }
  67. ],
  68. "tool": {
  69. "driver": {
  70. "name": "PREfast",
  71. "fullName": "PREfast Code Analysis",
  72. "version": "14.29.30147.0",
  73. "informationUri": "https://aka.ms/cpp/ca"
  74. }
  75. },
  76. "invocations": [
  77. {
  78. "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_1453a7f4ast -typedil -f ConsoleThread.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\\ConsoleThread.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",
  79. "executionSuccessful": true
  80. }
  81. ],
  82. "artifacts": [
  83. {
  84. "location": {
  85. "uri": "file:///E:/deliver/include/ResDataObject.h"
  86. },
  87. "roles": [
  88. "resultFile"
  89. ],
  90. "hashes": {
  91. "md5": "5952703846c703003535fa667ae9a289"
  92. }
  93. },
  94. {
  95. "location": {
  96. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/diosprocmfc.cpp"
  97. },
  98. "roles": [
  99. "analysisTarget"
  100. ],
  101. "hashes": {
  102. "md5": "d35582d323bbd9161ebecde4d0263632"
  103. }
  104. },
  105. {
  106. "location": {
  107. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/stdafx.h"
  108. },
  109. "hashes": {
  110. "md5": "a113d1d2e6bff20910cc7e14534c539e"
  111. }
  112. },
  113. {
  114. "location": {
  115. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/targetver.h"
  116. },
  117. "hashes": {
  118. "md5": "20a1397a4f718d91f76e2681bef085b6"
  119. }
  120. },
  121. {
  122. "location": {
  123. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/diosprocmfc.h"
  124. },
  125. "hashes": {
  126. "md5": "69644f508096b324c6e32e97b39cb467"
  127. }
  128. },
  129. {
  130. "location": {
  131. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/resource.h"
  132. },
  133. "hashes": {
  134. "md5": "1c1d62ee88f341e2fe35182d73b02c7f"
  135. }
  136. },
  137. {
  138. "location": {
  139. "uri": "file:///e:/deliver/include/scf.h"
  140. },
  141. "hashes": {
  142. "md5": "acc80c1bb996650f48e226f5b637c693"
  143. }
  144. },
  145. {
  146. "location": {
  147. "uri": "file:///e:/deliver/include/dioslock.h"
  148. },
  149. "hashes": {
  150. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  151. }
  152. },
  153. {
  154. "location": {
  155. "uri": "file:///e:/deliver/include/logger.h"
  156. },
  157. "hashes": {
  158. "md5": "dcc81685c0ed303899127b874b73f16e"
  159. }
  160. },
  161. {
  162. "location": {
  163. "uri": "file:///e:/deliver/include/diosthread.h"
  164. },
  165. "hashes": {
  166. "md5": "f79dd78165d55ab364f98e65e1049af4"
  167. }
  168. },
  169. {
  170. "location": {
  171. "uri": "file:///e:/deliver/include/cdi.h"
  172. },
  173. "hashes": {
  174. "md5": "9e80d05743150a2349832daa11b23472"
  175. }
  176. },
  177. {
  178. "location": {
  179. "uri": "file:///e:/deliver/include/definitions.h"
  180. },
  181. "hashes": {
  182. "md5": "07878c897e77929c249016920da5e648"
  183. }
  184. },
  185. {
  186. "location": {
  187. "uri": "file:///e:/deliver/include/diosfilehandle.h"
  188. },
  189. "hashes": {
  190. "md5": "d7b028d6b156db169d9b66dfa079c3e2"
  191. }
  192. },
  193. {
  194. "location": {
  195. "uri": "file:///e:/deliver/include/localconfig.h"
  196. },
  197. "hashes": {
  198. "md5": "cd69a6005777ef114acf2acc87ee04b4"
  199. }
  200. },
  201. {
  202. "location": {
  203. "uri": "file:///e:/deliver/include/wheelclient.h"
  204. },
  205. "hashes": {
  206. "md5": "fb05fe7396171e4b6271a4193feabf6e"
  207. }
  208. },
  209. {
  210. "location": {
  211. "uri": "file:///e:/deliver/include/logicclient.h"
  212. },
  213. "hashes": {
  214. "md5": "22ef80d326cb316e6c90f92345bb2538"
  215. }
  216. },
  217. {
  218. "location": {
  219. "uri": "file:///e:/deliver/include/msgqueue.h"
  220. },
  221. "hashes": {
  222. "md5": "9ddf4b8ca60625ace14f3c36247d80db"
  223. }
  224. },
  225. {
  226. "location": {
  227. "uri": "file:///e:/deliver/include/logicdevice.h"
  228. },
  229. "hashes": {
  230. "md5": "4412949d99d7097322c97f1ebf6fde34"
  231. }
  232. },
  233. {
  234. "location": {
  235. "uri": "file:///e:/deliver/include/dpc.h"
  236. },
  237. "hashes": {
  238. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  239. }
  240. },
  241. {
  242. "location": {
  243. "uri": "file:///e:/deliver/include/wheelunitlogic.h"
  244. },
  245. "hashes": {
  246. "md5": "d2b740b3075026af638fe8e19628091b"
  247. }
  248. },
  249. {
  250. "location": {
  251. "uri": "file:///e:/deliver/include/busunitclient.h"
  252. },
  253. "hashes": {
  254. "md5": "7eaad8bf92e3f2455670c278d4d05887"
  255. }
  256. },
  257. {
  258. "location": {
  259. "uri": "file:///e:/deliver/include/busunitlogic.h"
  260. },
  261. "hashes": {
  262. "md5": "e77ec7ac562b077a9a268da82692b8a5"
  263. }
  264. },
  265. {
  266. "location": {
  267. "uri": "file:///e:/deliver/include/commonlogicclient.h"
  268. },
  269. "hashes": {
  270. "md5": "86f52b03f8d2a342687b1dc890fa8a9c"
  271. }
  272. },
  273. {
  274. "location": {
  275. "uri": "file:///e:/deliver/include/common_api.h"
  276. },
  277. "hashes": {
  278. "md5": "b3fe9e47713eb74ad1294f29077c8a8a"
  279. }
  280. },
  281. {
  282. "location": {
  283. "uri": "file:///e:/deliver/include/packetanalizer.h"
  284. },
  285. "hashes": {
  286. "md5": "7fa7a13e7c88c4eb71b8926741a67149"
  287. }
  288. },
  289. {
  290. "location": {
  291. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/consolethread.h"
  292. },
  293. "hashes": {
  294. "md5": "8c949fe5b783c3f7a4421eb6522b4791"
  295. }
  296. },
  297. {
  298. "location": {
  299. "uri": "file:///e:/deliver/include/autodmp.h"
  300. },
  301. "hashes": {
  302. "md5": "adf728c13446a4d31ff120da0473c83a"
  303. }
  304. },
  305. {
  306. "location": {
  307. "uri": "file:///e:/deliver/include/sharememory_client.h"
  308. },
  309. "hashes": {
  310. "md5": "57e378a6d9167f73356b18ae10b69de3"
  311. }
  312. },
  313. {
  314. "location": {
  315. "uri": "file:///e:/dios_v2/driverplatform/drvproc/diosprocmfc/consolethread.cpp"
  316. },
  317. "roles": [
  318. "analysisTarget"
  319. ],
  320. "hashes": {
  321. "md5": "f8103f3e7d1b749290d129245a440e7c"
  322. }
  323. }
  324. ]
  325. }
  326. ]
  327. }