APlatformDcs.nativecodeanalysis.sarif 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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": "枚举类型“_DCS_RET”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/DIOS_V2/DriverPlatform/APlatformDcs/APlatformDcs.cpp"
  17. },
  18. "region": {
  19. "startLine": 127,
  20. "startColumn": 9,
  21. "endLine": 127,
  22. "endColumn": 9
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "?Command@APlatformDcs@@UEAA?AW4_DCS_RET@@AEAVResDataObject@@@Z",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26812",
  36. "message": {
  37. "text": "枚举类型“_Ret_Status”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/DIOS_V2/DriverPlatform/APlatformDcs/APlatformDcs.cpp"
  44. },
  45. "region": {
  46. "startLine": 275,
  47. "startColumn": 32
  48. }
  49. },
  50. "logicalLocations": [
  51. {
  52. "decoratedName": "?Devs_Func@@YA?AW4_DCS_RET@@AEAVResDataObject@@_N@Z",
  53. "kind": "function"
  54. }
  55. ]
  56. }
  57. ]
  58. },
  59. {
  60. "ruleId": "C26495",
  61. "message": {
  62. "text": "未初始化变量 BaseJsonDataObject<unsigned __int64>::m_Data。始终初始化成员变量(type.6)。"
  63. },
  64. "locations": [
  65. {
  66. "physicalLocation": {
  67. "artifactLocation": {
  68. "uri": "file:///E:/deliver/include/ResDataObject.h"
  69. },
  70. "region": {
  71. "startLine": 400,
  72. "startColumn": 2,
  73. "endLine": 400,
  74. "endColumn": 2
  75. }
  76. },
  77. "logicalLocations": [
  78. {
  79. "decoratedName": "??0?$BaseJsonDataObject@_K@@QEAA@XZ",
  80. "kind": "function"
  81. }
  82. ]
  83. }
  84. ],
  85. "properties": {
  86. "targetSymbol": "BaseJsonDataObject<unsigned __int64>::m_Data"
  87. }
  88. },
  89. {
  90. "ruleId": "C26495",
  91. "message": {
  92. "text": "未初始化变量 BaseJsonDataObject<bool>::m_Data。始终初始化成员变量(type.6)。"
  93. },
  94. "locations": [
  95. {
  96. "physicalLocation": {
  97. "artifactLocation": {
  98. "uri": "file:///E:/deliver/include/ResDataObject.h"
  99. },
  100. "region": {
  101. "startLine": 400,
  102. "startColumn": 2,
  103. "endLine": 400,
  104. "endColumn": 2
  105. }
  106. },
  107. "logicalLocations": [
  108. {
  109. "decoratedName": "??0?$BaseJsonDataObject@_N@@QEAA@XZ",
  110. "kind": "function"
  111. }
  112. ]
  113. }
  114. ],
  115. "properties": {
  116. "targetSymbol": "BaseJsonDataObject<bool>::m_Data"
  117. }
  118. }
  119. ],
  120. "tool": {
  121. "driver": {
  122. "name": "PREfast",
  123. "fullName": "PREfast Code Analysis",
  124. "version": "14.29.30147.0",
  125. "informationUri": "https://aka.ms/cpp/ca"
  126. }
  127. },
  128. "invocations": [
  129. {
  130. "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_6e5226a8ast -typedil -f APlatformDcs.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 -DAPLATFORMDCS_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\\APlatformDcsX64.pch -Fox64\\Release\\APlatformDcs.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\APlatformDcs -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",
  131. "executionSuccessful": true
  132. }
  133. ],
  134. "artifacts": [
  135. {
  136. "location": {
  137. "uri": "file:///E:/DIOS_V2/DriverPlatform/APlatformDcs/APlatformDcs.cpp"
  138. },
  139. "roles": [
  140. "analysisTarget",
  141. "resultFile"
  142. ],
  143. "hashes": {
  144. "md5": "b26421db552ddf3896ee02bf99bdb532"
  145. }
  146. },
  147. {
  148. "location": {
  149. "uri": "file:///E:/deliver/include/ResDataObject.h"
  150. },
  151. "roles": [
  152. "resultFile"
  153. ],
  154. "hashes": {
  155. "md5": "5952703846c703003535fa667ae9a289"
  156. }
  157. },
  158. {
  159. "location": {
  160. "uri": "file:///e:/dios_v2/driverplatform/aplatformdcs/stdafx.h"
  161. },
  162. "hashes": {
  163. "md5": "1670d257289af5a4bf0cc9741805575e"
  164. }
  165. },
  166. {
  167. "location": {
  168. "uri": "file:///e:/dios_v2/driverplatform/aplatformdcs/targetver.h"
  169. },
  170. "hashes": {
  171. "md5": "20a1397a4f718d91f76e2681bef085b6"
  172. }
  173. },
  174. {
  175. "location": {
  176. "uri": "file:///e:/dios_v2/driverplatform/aplatformdcs/aplatformdcs.h"
  177. },
  178. "hashes": {
  179. "md5": "84928d1e5102265d2a57822e227f6b65"
  180. }
  181. },
  182. {
  183. "location": {
  184. "uri": "file:///e:/deliver/include/diosconsolescript.h"
  185. },
  186. "hashes": {
  187. "md5": "3bf44e3d71d841e4f6c0c42bd9288d5e"
  188. }
  189. },
  190. {
  191. "location": {
  192. "uri": "file:///e:/deliver/include/cdi.h"
  193. },
  194. "hashes": {
  195. "md5": "9e80d05743150a2349832daa11b23472"
  196. }
  197. },
  198. {
  199. "location": {
  200. "uri": "file:///e:/deliver/include/definitions.h"
  201. },
  202. "hashes": {
  203. "md5": "07878c897e77929c249016920da5e648"
  204. }
  205. },
  206. {
  207. "location": {
  208. "uri": "file:///e:/deliver/include/diosfilehandle.h"
  209. },
  210. "hashes": {
  211. "md5": "d7b028d6b156db169d9b66dfa079c3e2"
  212. }
  213. },
  214. {
  215. "location": {
  216. "uri": "file:///e:/deliver/include/dioslock.h"
  217. },
  218. "hashes": {
  219. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  220. }
  221. },
  222. {
  223. "location": {
  224. "uri": "file:///e:/deliver/include/localconfig.h"
  225. },
  226. "hashes": {
  227. "md5": "cd69a6005777ef114acf2acc87ee04b4"
  228. }
  229. },
  230. {
  231. "location": {
  232. "uri": "file:///e:/deliver/include/busunitclient.h"
  233. },
  234. "hashes": {
  235. "md5": "7eaad8bf92e3f2455670c278d4d05887"
  236. }
  237. },
  238. {
  239. "location": {
  240. "uri": "file:///e:/deliver/include/logicclient.h"
  241. },
  242. "hashes": {
  243. "md5": "22ef80d326cb316e6c90f92345bb2538"
  244. }
  245. },
  246. {
  247. "location": {
  248. "uri": "file:///e:/deliver/include/msgqueue.h"
  249. },
  250. "hashes": {
  251. "md5": "9ddf4b8ca60625ace14f3c36247d80db"
  252. }
  253. },
  254. {
  255. "location": {
  256. "uri": "file:///e:/deliver/include/logger.h"
  257. },
  258. "hashes": {
  259. "md5": "dcc81685c0ed303899127b874b73f16e"
  260. }
  261. },
  262. {
  263. "location": {
  264. "uri": "file:///e:/deliver/include/logicdevice.h"
  265. },
  266. "hashes": {
  267. "md5": "4412949d99d7097322c97f1ebf6fde34"
  268. }
  269. },
  270. {
  271. "location": {
  272. "uri": "file:///e:/deliver/include/dpc.h"
  273. },
  274. "hashes": {
  275. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  276. }
  277. },
  278. {
  279. "location": {
  280. "uri": "file:///e:/deliver/include/busunitlogic.h"
  281. },
  282. "hashes": {
  283. "md5": "e77ec7ac562b077a9a268da82692b8a5"
  284. }
  285. },
  286. {
  287. "location": {
  288. "uri": "file:///e:/deliver/include/commonlogicclient.h"
  289. },
  290. "hashes": {
  291. "md5": "86f52b03f8d2a342687b1dc890fa8a9c"
  292. }
  293. }
  294. ]
  295. }
  296. ]
  297. }