OemBusUnitDevice.nativecodeanalysis.sarif 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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": "枚举类型“_Ccos_Proc_Type”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/OemLayer/OemBusUnit/OemBusUnitDevice.cpp"
  17. },
  18. "region": {
  19. "startLine": 23,
  20. "startColumn": 17,
  21. "endLine": 23,
  22. "endColumn": 37
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "?ExitDriverProc@OemBusUnitDevice@@UEAAHXZ",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26495",
  36. "message": {
  37. "text": "未初始化变量 BaseJsonDataObject<unsigned __int64>::m_Data。始终初始化成员变量(type.6)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/DeviceV3.0/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@_K@@QEAA@XZ",
  55. "kind": "function"
  56. }
  57. ]
  58. }
  59. ],
  60. "properties": {
  61. "targetSymbol": "BaseJsonDataObject<unsigned __int64>::m_Data"
  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:/DeviceV3.0/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.30133.0",
  100. "informationUri": "https://aka.ms/cpp/ca"
  101. }
  102. },
  103. "invocations": [
  104. {
  105. "commandLine": "\"C:\\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 -zm0x0064C1B0 -allChunksReserved -il C:\\Users\\ecom\\AppData\\Local\\Temp\\_CL_e6755ae1ast -typedil -f OemBusUnitDevice.cpp -Ze -D_MSC_EXTENSIONS -Zp16 -pc \\:/ -D_MSC_VER=1929 -D_MSC_FULL_VER=192930133 -D_MSC_BUILD=0 -D_M_AMD64=100 -ZILP448 -D_M_X64=100 -D_WIN64 -D_WIN32 -GR -D_CPPRTTI -I G:\\vcpkg\\installed\\x64-windows\\include -nologo -W 3 -diagnostics:column -D_GUARDOVERFLOW_CRT_ALLOCATORS=1 -GF -Og -Ot -Oy -Oi -ltcg -DCODE_ANALYSIS -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DOEMBUSUNIT_EXPORTS -DBUSUNITCLIENT_EXPORTS -DBUSUNITLOGIC_EXPORTS -D_CRT_SECURE_NO_WARNINGS -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\\OemBusUnitX64.pch -Fox64\\Release\\OemBusUnitDevice.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DeviceV3.0\\DriverPlatform-V3.1\\OemLayer\\OemBusUnit -analyze:rulesetdirectory ;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\\\Rule Sets; -analyze:ruleset C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Team Tools\\Static Analysis Tools\\Rule Sets\\NativeRecommendedRules.ruleset -analyze:quiet -analyze:plugin C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\EspXEngine.dll -FC -errorreport:prompt -I E:\\DeviceV3.0\\deliver\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I E:\\DeviceV3.0\\Deliver\\Include\\Log4CPP\\Log.Include -I E:\\DeviceV3.0\\Deliver\\Include\\Log4CPP\\Common.Include -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt -I C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um -I E:\\DeviceV3.0\\Deliver\\include\\paho.mqtt.cpp\\src -I E:\\DeviceV3.0\\Deliver\\include\\paho.mqtt.c\\src -I G:\\vcpkg\\installed\\x64-windows\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\atlmfc\\include -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\include -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt -external:I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -I C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\VS\\UnitTest\\include -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\winrt -external:I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\cppwinrt -I C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.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 -external:I G:\\vcpkg\\installed\\x64-windows\\include -I G:\\vcpkg\\installed\\x64-windows\\include",
  106. "executionSuccessful": true
  107. }
  108. ],
  109. "artifacts": [
  110. {
  111. "location": {
  112. "uri": "file:///E:/DeviceV3.0/DriverPlatform-V3.1/OemLayer/OemBusUnit/OemBusUnitDevice.cpp"
  113. },
  114. "roles": [
  115. "analysisTarget",
  116. "resultFile"
  117. ],
  118. "hashes": {
  119. "md5": "f59ad26996f0f2bf689c91a4bdb59371"
  120. }
  121. },
  122. {
  123. "location": {
  124. "uri": "file:///E:/DeviceV3.0/deliver/include/ResDataObject.h"
  125. },
  126. "roles": [
  127. "resultFile"
  128. ],
  129. "hashes": {
  130. "md5": "5952703846c703003535fa667ae9a289"
  131. }
  132. },
  133. {
  134. "location": {
  135. "uri": "file:///e:/devicev3.0/driverplatform-v3.1/oemlayer/oembusunit/stdafx.h"
  136. },
  137. "hashes": {
  138. "md5": "1a91a3935d879194bfddf4f401cb8bf2"
  139. }
  140. },
  141. {
  142. "location": {
  143. "uri": "file:///e:/devicev3.0/driverplatform-v3.1/oemlayer/oembusunit/targetver.h"
  144. },
  145. "hashes": {
  146. "md5": "20a1397a4f718d91f76e2681bef085b6"
  147. }
  148. },
  149. {
  150. "location": {
  151. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.logger.hpp"
  152. },
  153. "hashes": {
  154. "md5": "ecf5cacfb6c5bca6a993b30ab6a3845f"
  155. }
  156. },
  157. {
  158. "location": {
  159. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/string.dstring.hpp"
  160. },
  161. "hashes": {
  162. "md5": "a58c7d3df47e611333583d204ac658f4"
  163. }
  164. },
  165. {
  166. "location": {
  167. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/string.stringview.hpp"
  168. },
  169. "hashes": {
  170. "md5": "8191cea6ae21c58876e8f9d4a26dcf3c"
  171. }
  172. },
  173. {
  174. "location": {
  175. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/common.include/hash.string.hpp"
  176. },
  177. "hashes": {
  178. "md5": "aa05bb232cff7434774b5aa79751ab21"
  179. }
  180. },
  181. {
  182. "location": {
  183. "uri": "file:///e:/devicev3.0/deliver/include/string.format.tlh"
  184. },
  185. "hashes": {
  186. "md5": "788f376d8db4359f30a4860fbe94371c"
  187. }
  188. },
  189. {
  190. "location": {
  191. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.define.hpp"
  192. },
  193. "hashes": {
  194. "md5": "abfebd9c71923646793529bebf67528d"
  195. }
  196. },
  197. {
  198. "location": {
  199. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.loglevel.hpp"
  200. },
  201. "hashes": {
  202. "md5": "a29e46042c79f6c8f02a77915383856a"
  203. }
  204. },
  205. {
  206. "location": {
  207. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.appender.hpp"
  208. },
  209. "hashes": {
  210. "md5": "43a813214796c95e53047521e8d11c1f"
  211. }
  212. },
  213. {
  214. "location": {
  215. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.loggingevent.hpp"
  216. },
  217. "hashes": {
  218. "md5": "18fb4f49022c015a81dab867fdd98c5a"
  219. }
  220. },
  221. {
  222. "location": {
  223. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.tlslog.hpp"
  224. },
  225. "hashes": {
  226. "md5": "1ec933bfa8ba634949ddc032fa97972c"
  227. }
  228. },
  229. {
  230. "location": {
  231. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/log4cpp.tlslog.tracing.hpp"
  232. },
  233. "hashes": {
  234. "md5": "60c309dac27200e2516c3099361e20bb"
  235. }
  236. },
  237. {
  238. "location": {
  239. "uri": "file:///e:/devicev3.0/deliver/include/log4cpp/log.include/mlog.log4cpp.hpp"
  240. },
  241. "hashes": {
  242. "md5": "f253c99a9da9f0e0647ee3e70987b3c1"
  243. }
  244. },
  245. {
  246. "location": {
  247. "uri": "file:///e:/devicev3.0/driverplatform-v3.1/oemlayer/oembusunit/oembusunit.h"
  248. },
  249. "hashes": {
  250. "md5": "b877650008cd68a8b42802e0812784b5"
  251. }
  252. },
  253. {
  254. "location": {
  255. "uri": "file:///e:/devicev3.0/deliver/include/logicdriver.h"
  256. },
  257. "hashes": {
  258. "md5": "6ab7ed4945fd8cc0adcd28c4df5b3f1f"
  259. }
  260. },
  261. {
  262. "location": {
  263. "uri": "file:///e:/devicev3.0/deliver/include/dpc.h"
  264. },
  265. "hashes": {
  266. "md5": "8ae61aba6b81f2201447216e9314b335"
  267. }
  268. },
  269. {
  270. "location": {
  271. "uri": "file:///e:/devicev3.0/deliver/include/definitions.h"
  272. },
  273. "hashes": {
  274. "md5": "1b36a119d096288c057adf16222c01a8"
  275. }
  276. },
  277. {
  278. "location": {
  279. "uri": "file:///e:/devicev3.0/deliver/include/logicdevice.h"
  280. },
  281. "hashes": {
  282. "md5": "8f36b6e7ec2db97cac2b562a94939c1c"
  283. }
  284. },
  285. {
  286. "location": {
  287. "uri": "file:///e:/devicev3.0/deliver/include/ccoslock.h"
  288. },
  289. "hashes": {
  290. "md5": "6ef694600e306d1039fe501b0e4db656"
  291. }
  292. },
  293. {
  294. "location": {
  295. "uri": "file:///e:/devicev3.0/deliver/include/ccosfilehandle.h"
  296. },
  297. "hashes": {
  298. "md5": "84c6a7455068dd69e1ec839c294b7761"
  299. }
  300. },
  301. {
  302. "location": {
  303. "uri": "file:///e:/devicev3.0/deliver/include/ccosthread.h"
  304. },
  305. "hashes": {
  306. "md5": "bcf85fc2a8499ba80fd45eee229dd64c"
  307. }
  308. },
  309. {
  310. "location": {
  311. "uri": "file:///e:/devicev3.0/deliver/include/msgqueue.h"
  312. },
  313. "hashes": {
  314. "md5": "73927cf318a5240ea737c7748703f3fc"
  315. }
  316. },
  317. {
  318. "location": {
  319. "uri": "file:///e:/devicev3.0/deliver/include/scopelock.h"
  320. },
  321. "hashes": {
  322. "md5": "fe1c154331759bc62a8157897df388f0"
  323. }
  324. },
  325. {
  326. "location": {
  327. "uri": "file:///e:/devicev3.0/driverplatform-v3.1/oemlayer/oembusunit/oembusunitdevice.h"
  328. },
  329. "hashes": {
  330. "md5": "6e180ebcaceab0dabc36ab62c49d9a3d"
  331. }
  332. },
  333. {
  334. "location": {
  335. "uri": "file:///e:/devicev3.0/driverplatform-v3.1/oemlayer/oembusunit/busunitlogic.h"
  336. },
  337. "hashes": {
  338. "md5": "05557ad30effe5ad9cdf2621caa85d6f"
  339. }
  340. },
  341. {
  342. "location": {
  343. "uri": "file:///e:/devicev3.0/deliver/include/localconfig.h"
  344. },
  345. "hashes": {
  346. "md5": "c8a4c4350dde86a99fa272e9e9578995"
  347. }
  348. }
  349. ]
  350. }
  351. ]
  352. }