WheelDPC.nativecodeanalysis.sarif 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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": "枚举类型“_Ret_Status”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/WheelDPC/WheelDPC.cpp"
  17. },
  18. "region": {
  19. "startLine": 103,
  20. "startColumn": 2,
  21. "endLine": 103,
  22. "endColumn": 9
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "?GetDriverDictionary@WheelDPC@@UEAA?AW4_Ret_Status@@AEAVResDataObject@@@Z",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26495",
  36. "message": {
  37. "text": "未初始化变量 BaseJsonDataObject<bool>::m_Data。始终初始化成员变量(type.6)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/deliver/include/ResDataObject.h"
  44. },
  45. "region": {
  46. "startLine": 400,
  47. "startColumn": 2,
  48. "endLine": 400,
  49. "endColumn": 2
  50. }
  51. },
  52. "logicalLocations": [
  53. {
  54. "decoratedName": "??0?$BaseJsonDataObject@_N@@QEAA@XZ",
  55. "kind": "function"
  56. }
  57. ]
  58. }
  59. ],
  60. "properties": {
  61. "targetSymbol": "BaseJsonDataObject<bool>::m_Data"
  62. }
  63. }
  64. ],
  65. "tool": {
  66. "driver": {
  67. "name": "PREfast",
  68. "fullName": "PREfast Code Analysis",
  69. "version": "14.29.30147.0",
  70. "informationUri": "https://aka.ms/cpp/ca"
  71. }
  72. },
  73. "invocations": [
  74. {
  75. "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_6a6c4774ast -typedil -f WheelDPC.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 -DWHEELDPC_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\\WheelDPCX64.pch -Fox64\\Release\\WheelDPC.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\CCOS_V2\\DriverPlatform\\OemLayer\\WheelDPC -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",
  76. "executionSuccessful": true
  77. }
  78. ],
  79. "artifacts": [
  80. {
  81. "location": {
  82. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/WheelDPC/WheelOemDevice.cpp"
  83. },
  84. "roles": [
  85. "analysisTarget",
  86. "resultFile"
  87. ],
  88. "hashes": {
  89. "md5": "70ae8c6ea4da91b7c9954460a7c57be5"
  90. }
  91. },
  92. {
  93. "location": {
  94. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/wheeldpc/stdafx.h"
  95. },
  96. "hashes": {
  97. "md5": "1670d257289af5a4bf0cc9741805575e"
  98. }
  99. },
  100. {
  101. "location": {
  102. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/wheeldpc/targetver.h"
  103. },
  104. "hashes": {
  105. "md5": "20a1397a4f718d91f76e2681bef085b6"
  106. }
  107. },
  108. {
  109. "location": {
  110. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/wheeldpc/wheeloemdevice.h"
  111. },
  112. "hashes": {
  113. "md5": "44a8313a3df8869e7751db23b0916560"
  114. }
  115. },
  116. {
  117. "location": {
  118. "uri": "file:///e:/deliver/include/wheelunitlogic.h"
  119. },
  120. "hashes": {
  121. "md5": "d2b740b3075026af638fe8e19628091b"
  122. }
  123. },
  124. {
  125. "location": {
  126. "uri": "file:///e:/deliver/include/logicdevice.h"
  127. },
  128. "hashes": {
  129. "md5": "4412949d99d7097322c97f1ebf6fde34"
  130. }
  131. },
  132. {
  133. "location": {
  134. "uri": "file:///e:/deliver/include/definitions.h"
  135. },
  136. "hashes": {
  137. "md5": "07878c897e77929c249016920da5e648"
  138. }
  139. },
  140. {
  141. "location": {
  142. "uri": "file:///e:/deliver/include/resdataobject.h"
  143. },
  144. "roles": [
  145. "resultFile"
  146. ],
  147. "hashes": {
  148. "md5": "5952703846c703003535fa667ae9a289"
  149. }
  150. },
  151. {
  152. "location": {
  153. "uri": "file:///e:/deliver/include/logger.h"
  154. },
  155. "hashes": {
  156. "md5": "dcc81685c0ed303899127b874b73f16e"
  157. }
  158. },
  159. {
  160. "location": {
  161. "uri": "file:///e:/deliver/include/ccoslock.h"
  162. },
  163. "hashes": {
  164. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  165. }
  166. },
  167. {
  168. "location": {
  169. "uri": "file:///e:/deliver/include/dpc.h"
  170. },
  171. "hashes": {
  172. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  173. }
  174. },
  175. {
  176. "location": {
  177. "uri": "file:///E:/CCOS_V2/DriverPlatform/OemLayer/WheelDPC/WheelDPC.cpp"
  178. },
  179. "roles": [
  180. "analysisTarget",
  181. "resultFile"
  182. ],
  183. "hashes": {
  184. "md5": "4d332a22fda5abe6490bb1484bd18581"
  185. }
  186. },
  187. {
  188. "location": {
  189. "uri": "file:///e:/ccos_v2/driverplatform/oemlayer/wheeldpc/wheeldpc.h"
  190. },
  191. "hashes": {
  192. "md5": "7d195909cb2ffef4d01d580472538369"
  193. }
  194. },
  195. {
  196. "location": {
  197. "uri": "file:///e:/deliver/include/logicdriver.h"
  198. },
  199. "hashes": {
  200. "md5": "1f6fc16ba6c0414d0f15c0c0ffc9f2f9"
  201. }
  202. },
  203. {
  204. "location": {
  205. "uri": "file:///e:/deliver/include/devtree.h"
  206. },
  207. "hashes": {
  208. "md5": "38830f1e922fdb920d97388da81db039"
  209. }
  210. }
  211. ]
  212. }
  213. ]
  214. }