NewModelDPC.nativecodeanalysis.sarif 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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": "未初始化变量 NewModelDPC::m_Module。始终初始化成员变量(type.6)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/NewModelDPC/NewModelDPC.cpp"
  17. },
  18. "region": {
  19. "startLine": 26,
  20. "startColumn": 14,
  21. "endLine": 26,
  22. "endColumn": 14
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "??0NewModelDPC@@QEAA@XZ",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ],
  33. "properties": {
  34. "targetSymbol": "NewModelDPC::m_Module"
  35. }
  36. },
  37. {
  38. "ruleId": "C26812",
  39. "message": {
  40. "text": "枚举类型“_Ret_Status”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  41. },
  42. "locations": [
  43. {
  44. "physicalLocation": {
  45. "artifactLocation": {
  46. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/NewModelDPC/NewModelDPC.cpp"
  47. },
  48. "region": {
  49. "startLine": 247,
  50. "startColumn": 9,
  51. "endLine": 247,
  52. "endColumn": 9
  53. }
  54. },
  55. "logicalLocations": [
  56. {
  57. "decoratedName": "?GetDeviceResource@NewModelDPC@@UEAA?AW4_Ret_Status@@PEAVResDataObject@@@Z",
  58. "kind": "function"
  59. }
  60. ]
  61. }
  62. ]
  63. },
  64. {
  65. "ruleId": "C26495",
  66. "message": {
  67. "text": "未初始化变量 BaseJsonDataObject<bool>::m_Data。始终初始化成员变量(type.6)。"
  68. },
  69. "locations": [
  70. {
  71. "physicalLocation": {
  72. "artifactLocation": {
  73. "uri": "file:///E:/deliver/include/ResDataObject.h"
  74. },
  75. "region": {
  76. "startLine": 400,
  77. "startColumn": 2,
  78. "endLine": 400,
  79. "endColumn": 2
  80. }
  81. },
  82. "logicalLocations": [
  83. {
  84. "decoratedName": "??0?$BaseJsonDataObject@_N@@QEAA@XZ",
  85. "kind": "function"
  86. }
  87. ]
  88. }
  89. ],
  90. "properties": {
  91. "targetSymbol": "BaseJsonDataObject<bool>::m_Data"
  92. }
  93. }
  94. ],
  95. "tool": {
  96. "driver": {
  97. "name": "PREfast",
  98. "fullName": "PREfast Code Analysis",
  99. "version": "14.29.30147.0",
  100. "informationUri": "https://aka.ms/cpp/ca"
  101. }
  102. },
  103. "invocations": [
  104. {
  105. "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_518bd361ast -typedil -f NewModelDPC.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 -DNEWMODELDPC_EXPORTS -D_WINDLL -D_MBCS -EHs -D_CPPUNWIND -EHc -MD -D_MT -D_DLL -GS -D_M_FP_PRECISE -Zc:wchar_t -Zc:forScope -std:c++17 -Yustdafx.h -Fpx64\\Release\\NewModelDPCX64.pch -Fox64\\Release\\NewModelDPC.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\CCOS_V2\\DriverPlatform\\OemLayer\\NewModelDPC -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",
  106. "executionSuccessful": true
  107. }
  108. ],
  109. "artifacts": [
  110. {
  111. "location": {
  112. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/NewModelDPC/NewModelDPC.cpp"
  113. },
  114. "roles": [
  115. "analysisTarget",
  116. "resultFile"
  117. ],
  118. "hashes": {
  119. "md5": "99207def58ee259e5c18c07432b0abab"
  120. }
  121. },
  122. {
  123. "location": {
  124. "uri": "file:///E:/deliver/include/ResDataObject.h"
  125. },
  126. "roles": [
  127. "resultFile"
  128. ],
  129. "hashes": {
  130. "md5": "5952703846c703003535fa667ae9a289"
  131. }
  132. },
  133. {
  134. "location": {
  135. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/newmodeldpc/stdafx.h"
  136. },
  137. "hashes": {
  138. "md5": "1670d257289af5a4bf0cc9741805575e"
  139. }
  140. },
  141. {
  142. "location": {
  143. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/newmodeldpc/targetver.h"
  144. },
  145. "hashes": {
  146. "md5": "20a1397a4f718d91f76e2681bef085b6"
  147. }
  148. },
  149. {
  150. "location": {
  151. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/newmodeldpc/newmodeldpc.h"
  152. },
  153. "hashes": {
  154. "md5": "78934c03ac18072263962879dda2058c"
  155. }
  156. },
  157. {
  158. "location": {
  159. "uri": "file:///e:/deliver/include/logicdriver.h"
  160. },
  161. "hashes": {
  162. "md5": "1f6fc16ba6c0414d0f15c0c0ffc9f2f9"
  163. }
  164. },
  165. {
  166. "location": {
  167. "uri": "file:///e:/deliver/include/dpc.h"
  168. },
  169. "hashes": {
  170. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  171. }
  172. },
  173. {
  174. "location": {
  175. "uri": "file:///e:/deliver/include/logger.h"
  176. },
  177. "hashes": {
  178. "md5": "dcc81685c0ed303899127b874b73f16e"
  179. }
  180. },
  181. {
  182. "location": {
  183. "uri": "file:///e:/deliver/include/ccoslock.h"
  184. },
  185. "hashes": {
  186. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  187. }
  188. },
  189. {
  190. "location": {
  191. "uri": "file:///e:/deliver/include/definitions.h"
  192. },
  193. "hashes": {
  194. "md5": "07878c897e77929c249016920da5e648"
  195. }
  196. },
  197. {
  198. "location": {
  199. "uri": "file:///e:/deliver/include/logicdevice.h"
  200. },
  201. "hashes": {
  202. "md5": "4412949d99d7097322c97f1ebf6fde34"
  203. }
  204. },
  205. {
  206. "location": {
  207. "uri": "file:///e:/deliver/include/ccos.dev.iodevice.hpp"
  208. },
  209. "hashes": {
  210. "md5": "fa955ae17f2194377b00b4cda5acb943"
  211. }
  212. },
  213. {
  214. "location": {
  215. "uri": "file:///e:/deliver/include/tmplevent.tlh"
  216. },
  217. "hashes": {
  218. "md5": "1a8b4eea25218adb7bde2cd6c9fe38cc"
  219. }
  220. },
  221. {
  222. "location": {
  223. "uri": "file:///e:/deliver/include/devtree.h"
  224. },
  225. "hashes": {
  226. "md5": "38830f1e922fdb920d97388da81db039"
  227. }
  228. },
  229. {
  230. "location": {
  231. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/newmodeldpc/newmodeldevice.h"
  232. },
  233. "hashes": {
  234. "md5": "a3796acb30f7f203025c3b39824e8c1f"
  235. }
  236. },
  237. {
  238. "location": {
  239. "uri": "file:///e:/deliver/include/common_api.h"
  240. },
  241. "hashes": {
  242. "md5": "b3fe9e47713eb74ad1294f29077c8a8a"
  243. }
  244. }
  245. ]
  246. }
  247. ]
  248. }