CommonLogicClient.nativecodeanalysis.sarif 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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": "枚举类型“_Action_Sync_Mode”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/deliver/include/LogicClient.h"
  17. },
  18. "region": {
  19. "startLine": 144,
  20. "startColumn": 2,
  21. "endLine": 144,
  22. "endColumn": 2
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "??0LogicClient@@QEAA@AEBV0@@Z",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26812",
  36. "message": {
  37. "text": "枚举类型“_Dios_Packet_Route”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/deliver/include/LogicClient.h"
  44. },
  45. "region": {
  46. "startLine": 144,
  47. "startColumn": 2,
  48. "endLine": 144,
  49. "endColumn": 2
  50. }
  51. },
  52. "logicalLocations": [
  53. {
  54. "decoratedName": "??0LogicClient@@QEAA@AEBV0@@Z",
  55. "kind": "function"
  56. }
  57. ]
  58. }
  59. ]
  60. },
  61. {
  62. "ruleId": "C26812",
  63. "message": {
  64. "text": "枚举类型“_Packet_Cmd”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  65. },
  66. "locations": [
  67. {
  68. "physicalLocation": {
  69. "artifactLocation": {
  70. "uri": "file:///E:/DIOS_V2/DriverPlatform/ClientLayer/CommonLogicClient/CommonLogicClient.cpp"
  71. },
  72. "region": {
  73. "startLine": 42,
  74. "startColumn": 13,
  75. "endLine": 42,
  76. "endColumn": 19
  77. }
  78. },
  79. "logicalLocations": [
  80. {
  81. "decoratedName": "?ReadCmd@CommonLogicClient@@UEAA?AW4_Packet_Cmd@@AEAVResDataObject@@@Z",
  82. "kind": "function"
  83. }
  84. ]
  85. }
  86. ]
  87. },
  88. {
  89. "ruleId": "C26812",
  90. "message": {
  91. "text": "枚举类型“_Ret_Status”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  92. },
  93. "locations": [
  94. {
  95. "physicalLocation": {
  96. "artifactLocation": {
  97. "uri": "file:///E:/DIOS_V2/DriverPlatform/ClientLayer/CommonLogicClient/CommonLogicClient.cpp"
  98. },
  99. "region": {
  100. "startLine": 63,
  101. "startColumn": 23,
  102. "endLine": 63,
  103. "endColumn": 37
  104. }
  105. },
  106. "logicalLocations": [
  107. {
  108. "decoratedName": "?GetDeviceType@CommonLogicClient@@UEAA_NAEAU_GUID@@@Z",
  109. "kind": "function"
  110. }
  111. ]
  112. }
  113. ]
  114. }
  115. ],
  116. "tool": {
  117. "driver": {
  118. "name": "PREfast",
  119. "fullName": "PREfast Code Analysis",
  120. "version": "14.29.30147.0",
  121. "informationUri": "https://aka.ms/cpp/ca"
  122. }
  123. },
  124. "invocations": [
  125. {
  126. "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_7a5dbd62ast -typedil -f CommonLogicClient.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 -DCOMMONLOGICCLIENT_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\\CommonLogicClientX64.pch -Fox64\\Release\\CommonLogicClient.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\ClientLayer\\CommonLogicClient -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",
  127. "executionSuccessful": true
  128. }
  129. ],
  130. "artifacts": [
  131. {
  132. "location": {
  133. "uri": "file:///E:/deliver/include/LogicClient.h"
  134. },
  135. "roles": [
  136. "resultFile"
  137. ],
  138. "hashes": {
  139. "md5": "22ef80d326cb316e6c90f92345bb2538"
  140. }
  141. },
  142. {
  143. "location": {
  144. "uri": "file:///E:/DIOS_V2/DriverPlatform/ClientLayer/CommonLogicClient/CommonLogicClient.cpp"
  145. },
  146. "roles": [
  147. "analysisTarget",
  148. "resultFile"
  149. ],
  150. "hashes": {
  151. "md5": "8dc69f5c399e3490c07e5458a9a1d938"
  152. }
  153. },
  154. {
  155. "location": {
  156. "uri": "file:///e:/dios_v2/driverplatform/clientlayer/commonlogicclient/stdafx.h"
  157. },
  158. "hashes": {
  159. "md5": "1670d257289af5a4bf0cc9741805575e"
  160. }
  161. },
  162. {
  163. "location": {
  164. "uri": "file:///e:/dios_v2/driverplatform/clientlayer/commonlogicclient/targetver.h"
  165. },
  166. "hashes": {
  167. "md5": "20a1397a4f718d91f76e2681bef085b6"
  168. }
  169. },
  170. {
  171. "location": {
  172. "uri": "file:///e:/dios_v2/driverplatform/clientlayer/commonlogicclient/commonlogicclient.h"
  173. },
  174. "hashes": {
  175. "md5": "86f52b03f8d2a342687b1dc890fa8a9c"
  176. }
  177. },
  178. {
  179. "location": {
  180. "uri": "file:///e:/deliver/include/logicdevice.h"
  181. },
  182. "hashes": {
  183. "md5": "4412949d99d7097322c97f1ebf6fde34"
  184. }
  185. },
  186. {
  187. "location": {
  188. "uri": "file:///e:/deliver/include/definitions.h"
  189. },
  190. "hashes": {
  191. "md5": "07878c897e77929c249016920da5e648"
  192. }
  193. },
  194. {
  195. "location": {
  196. "uri": "file:///e:/deliver/include/resdataobject.h"
  197. },
  198. "hashes": {
  199. "md5": "5952703846c703003535fa667ae9a289"
  200. }
  201. },
  202. {
  203. "location": {
  204. "uri": "file:///e:/deliver/include/logger.h"
  205. },
  206. "hashes": {
  207. "md5": "dcc81685c0ed303899127b874b73f16e"
  208. }
  209. },
  210. {
  211. "location": {
  212. "uri": "file:///e:/deliver/include/dioslock.h"
  213. },
  214. "hashes": {
  215. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  216. }
  217. },
  218. {
  219. "location": {
  220. "uri": "file:///e:/deliver/include/dpc.h"
  221. },
  222. "hashes": {
  223. "md5": "f041f405e6f932a8c1cf3520a56fede0"
  224. }
  225. },
  226. {
  227. "location": {
  228. "uri": "file:///e:/deliver/include/msgqueue.h"
  229. },
  230. "hashes": {
  231. "md5": "9ddf4b8ca60625ace14f3c36247d80db"
  232. }
  233. },
  234. {
  235. "location": {
  236. "uri": "file:///e:/deliver/include/diosfilehandle.h"
  237. },
  238. "hashes": {
  239. "md5": "d7b028d6b156db169d9b66dfa079c3e2"
  240. }
  241. }
  242. ]
  243. }
  244. ]
  245. }