TcpipSCF.nativecodeanalysis.sarif 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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": "枚举类型“_SCF_Transfertype”未设定范围。相比于 \"enum\",首选 \"enum class\" (Enum.3)。"
  11. },
  12. "locations": [
  13. {
  14. "physicalLocation": {
  15. "artifactLocation": {
  16. "uri": "file:///E:/deliver/include/SCF.h"
  17. },
  18. "region": {
  19. "startLine": 254,
  20. "startColumn": 2,
  21. "endLine": 254,
  22. "endColumn": 2
  23. }
  24. },
  25. "logicalLocations": [
  26. {
  27. "decoratedName": "??0SCF@@QEAA@AEBV0@@Z",
  28. "kind": "function"
  29. }
  30. ]
  31. }
  32. ]
  33. },
  34. {
  35. "ruleId": "C26495",
  36. "message": {
  37. "text": "未初始化变量 TcpipSCF::Socketfd。始终初始化成员变量(type.6)。"
  38. },
  39. "locations": [
  40. {
  41. "physicalLocation": {
  42. "artifactLocation": {
  43. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  44. },
  45. "region": {
  46. "startLine": 14,
  47. "startColumn": 11,
  48. "endLine": 14,
  49. "endColumn": 11
  50. }
  51. },
  52. "logicalLocations": [
  53. {
  54. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  55. "kind": "function"
  56. }
  57. ]
  58. }
  59. ],
  60. "properties": {
  61. "targetSymbol": "TcpipSCF::Socketfd"
  62. }
  63. },
  64. {
  65. "ruleId": "C26495",
  66. "message": {
  67. "text": "未初始化变量 TcpipSCF::servs。始终初始化成员变量(type.6)。"
  68. },
  69. "locations": [
  70. {
  71. "physicalLocation": {
  72. "artifactLocation": {
  73. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  74. },
  75. "region": {
  76. "startLine": 14,
  77. "startColumn": 11,
  78. "endLine": 14,
  79. "endColumn": 11
  80. }
  81. },
  82. "logicalLocations": [
  83. {
  84. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  85. "kind": "function"
  86. }
  87. ]
  88. }
  89. ],
  90. "properties": {
  91. "targetSymbol": "TcpipSCF::servs"
  92. }
  93. },
  94. {
  95. "ruleId": "C26495",
  96. "message": {
  97. "text": "未初始化变量 TcpipSCF::tulong。始终初始化成员变量(type.6)。"
  98. },
  99. "locations": [
  100. {
  101. "physicalLocation": {
  102. "artifactLocation": {
  103. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  104. },
  105. "region": {
  106. "startLine": 14,
  107. "startColumn": 11,
  108. "endLine": 14,
  109. "endColumn": 11
  110. }
  111. },
  112. "logicalLocations": [
  113. {
  114. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  115. "kind": "function"
  116. }
  117. ]
  118. }
  119. ],
  120. "properties": {
  121. "targetSymbol": "TcpipSCF::tulong"
  122. }
  123. },
  124. {
  125. "ruleId": "C26495",
  126. "message": {
  127. "text": "未初始化变量 TcpipSCF::sa。始终初始化成员变量(type.6)。"
  128. },
  129. "locations": [
  130. {
  131. "physicalLocation": {
  132. "artifactLocation": {
  133. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  134. },
  135. "region": {
  136. "startLine": 14,
  137. "startColumn": 11,
  138. "endLine": 14,
  139. "endColumn": 11
  140. }
  141. },
  142. "logicalLocations": [
  143. {
  144. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  145. "kind": "function"
  146. }
  147. ]
  148. }
  149. ],
  150. "properties": {
  151. "targetSymbol": "TcpipSCF::sa"
  152. }
  153. },
  154. {
  155. "ruleId": "C26495",
  156. "message": {
  157. "text": "未初始化变量 TcpipSCF::tulongptr。始终初始化成员变量(type.6)。"
  158. },
  159. "locations": [
  160. {
  161. "physicalLocation": {
  162. "artifactLocation": {
  163. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  164. },
  165. "region": {
  166. "startLine": 14,
  167. "startColumn": 11,
  168. "endLine": 14,
  169. "endColumn": 11
  170. }
  171. },
  172. "logicalLocations": [
  173. {
  174. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  175. "kind": "function"
  176. }
  177. ]
  178. }
  179. ],
  180. "properties": {
  181. "targetSymbol": "TcpipSCF::tulongptr"
  182. }
  183. },
  184. {
  185. "ruleId": "C26495",
  186. "message": {
  187. "text": "未初始化变量 TcpipSCF::Error。始终初始化成员变量(type.6)。"
  188. },
  189. "locations": [
  190. {
  191. "physicalLocation": {
  192. "artifactLocation": {
  193. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  194. },
  195. "region": {
  196. "startLine": 14,
  197. "startColumn": 11,
  198. "endLine": 14,
  199. "endColumn": 11
  200. }
  201. },
  202. "logicalLocations": [
  203. {
  204. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  205. "kind": "function"
  206. }
  207. ]
  208. }
  209. ],
  210. "properties": {
  211. "targetSymbol": "TcpipSCF::Error"
  212. }
  213. },
  214. {
  215. "ruleId": "C26495",
  216. "message": {
  217. "text": "未初始化变量 TcpipSCF::hes。始终初始化成员变量(type.6)。"
  218. },
  219. "locations": [
  220. {
  221. "physicalLocation": {
  222. "artifactLocation": {
  223. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  224. },
  225. "region": {
  226. "startLine": 14,
  227. "startColumn": 11,
  228. "endLine": 14,
  229. "endColumn": 11
  230. }
  231. },
  232. "logicalLocations": [
  233. {
  234. "decoratedName": "??0TcpipSCF@@QEAA@XZ",
  235. "kind": "function"
  236. }
  237. ]
  238. }
  239. ],
  240. "properties": {
  241. "targetSymbol": "TcpipSCF::hes"
  242. }
  243. }
  244. ],
  245. "tool": {
  246. "driver": {
  247. "name": "PREfast",
  248. "fullName": "PREfast Code Analysis",
  249. "version": "14.29.30147.0",
  250. "informationUri": "https://aka.ms/cpp/ca"
  251. }
  252. },
  253. "invocations": [
  254. {
  255. "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_2a09af8east -typedil -f TcpipSCF.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 -DTCPIPSCF_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\\TcpipSCFX64.pch -Fox64\\Release\\TcpipSCF.obj -Fdx64\\Release\\vc142.pdb -external:W 3 -Gd -analyze:projectdirectory E:\\DIOS_V2\\DriverPlatform\\SCF\\TcpipSCF -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",
  256. "executionSuccessful": true
  257. }
  258. ],
  259. "artifacts": [
  260. {
  261. "location": {
  262. "uri": "file:///E:/deliver/include/SCF.h"
  263. },
  264. "roles": [
  265. "resultFile"
  266. ],
  267. "hashes": {
  268. "md5": "acc80c1bb996650f48e226f5b637c693"
  269. }
  270. },
  271. {
  272. "location": {
  273. "uri": "file:///E:/DIOS_V2/DriverPlatform/SCF/TcpipSCF/TcpipSCF.cpp"
  274. },
  275. "roles": [
  276. "analysisTarget",
  277. "resultFile"
  278. ],
  279. "hashes": {
  280. "md5": "7565ac30f2d9726426fccc71e8e38aff"
  281. }
  282. },
  283. {
  284. "location": {
  285. "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/stdafx.h"
  286. },
  287. "hashes": {
  288. "md5": "1670d257289af5a4bf0cc9741805575e"
  289. }
  290. },
  291. {
  292. "location": {
  293. "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/targetver.h"
  294. },
  295. "hashes": {
  296. "md5": "20a1397a4f718d91f76e2681bef085b6"
  297. }
  298. },
  299. {
  300. "location": {
  301. "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/tcpipscf.h"
  302. },
  303. "hashes": {
  304. "md5": "2dfc6ea39fd53034c01f05e97f175491"
  305. }
  306. },
  307. {
  308. "location": {
  309. "uri": "file:///e:/deliver/include/resdataobject.h"
  310. },
  311. "hashes": {
  312. "md5": "5952703846c703003535fa667ae9a289"
  313. }
  314. },
  315. {
  316. "location": {
  317. "uri": "file:///e:/deliver/include/dioslock.h"
  318. },
  319. "hashes": {
  320. "md5": "19f422bc4ce2ba8a2fd99f23bd1218fc"
  321. }
  322. },
  323. {
  324. "location": {
  325. "uri": "file:///e:/deliver/include/logger.h"
  326. },
  327. "hashes": {
  328. "md5": "dcc81685c0ed303899127b874b73f16e"
  329. }
  330. },
  331. {
  332. "location": {
  333. "uri": "file:///e:/deliver/include/diosthread.h"
  334. },
  335. "hashes": {
  336. "md5": "f79dd78165d55ab364f98e65e1049af4"
  337. }
  338. },
  339. {
  340. "location": {
  341. "uri": "file:///e:/dios_v2/driverplatform/scf/tcpipscf/scketfuncs.h"
  342. },
  343. "hashes": {
  344. "md5": "a8a1195a979ac62d8d74d24e92699241"
  345. }
  346. }
  347. ]
  348. }
  349. ]
  350. }