CodeAnalysisLog.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="f:\program files\microsoft visual studio\2022\community\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
  3. <FxCopReport Version="17.0">
  4. <Targets>
  5. <Target Name="C:\Users\231010\AppData\Local\Temp\tmp71DC.tmp.cadir\bin\App_Web_d14g42xv.dll">
  6. <Modules>
  7. <Module Name="app_web_d14g42xv.dll">
  8. <Namespaces>
  9. <Namespace Name="">
  10. <Types>
  11. <Type Name="plug_oImports" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  12. <Members>
  13. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  14. <Messages>
  15. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  16. <Issue Certainty="75" Level="Warning" Path="g:\git\ERP\Web\plug" File="oImports.aspx.cs" Line="112">可以在方法 'plug_oImports.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 112</Issue>
  17. </Message>
  18. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  19. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="g:\git\ERP\Web\plug" File="oImports.aspx.cs" Line="108">传递给 'plug_oImports.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  20. </Message>
  21. </Messages>
  22. </Member>
  23. </Members>
  24. </Type>
  25. </Types>
  26. </Namespace>
  27. </Namespaces>
  28. </Module>
  29. </Modules>
  30. </Target>
  31. <Target Name="C:\Users\231010\AppData\Local\Temp\tmp71DC.tmp.cadir\bin\App_Web_n2sqp2kj.dll">
  32. <Modules>
  33. <Module Name="app_web_n2sqp2kj.dll">
  34. <Namespaces>
  35. <Namespace Name="">
  36. <Types>
  37. <Type Name="EAfterSale_AfterSaleImportUpload" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  38. <Members>
  39. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  40. <Messages>
  41. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  42. <Issue Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EAfterSale" File="AfterSaleImportUpload.aspx.cs" Line="144">可以在方法 'EAfterSale_AfterSaleImportUpload.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 144</Issue>
  43. </Message>
  44. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  45. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EAfterSale" File="AfterSaleImportUpload.aspx.cs" Line="140">传递给 'EAfterSale_AfterSaleImportUpload.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  46. </Message>
  47. </Messages>
  48. </Member>
  49. </Members>
  50. </Type>
  51. </Types>
  52. </Namespace>
  53. </Namespaces>
  54. </Module>
  55. </Modules>
  56. </Target>
  57. <Target Name="C:\Users\231010\AppData\Local\Temp\tmp71DC.tmp.cadir\bin\App_Web_n4yacezx.dll">
  58. <Modules>
  59. <Module Name="app_web_n4yacezx.dll">
  60. <Namespaces>
  61. <Namespace Name="">
  62. <Types>
  63. <Type Name="EDelivery_DeliveredImportUpload" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  64. <Members>
  65. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  66. <Messages>
  67. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  68. <Issue Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EDelivery" File="DeliveredImportUpload.aspx.cs" Line="201">可以在方法 'EDelivery_DeliveredImportUpload.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 201</Issue>
  69. </Message>
  70. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  71. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EDelivery" File="DeliveredImportUpload.aspx.cs" Line="197">传递给 'EDelivery_DeliveredImportUpload.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  72. </Message>
  73. </Messages>
  74. </Member>
  75. </Members>
  76. </Type>
  77. </Types>
  78. </Namespace>
  79. </Namespaces>
  80. </Module>
  81. </Modules>
  82. </Target>
  83. <Target Name="C:\Users\231010\AppData\Local\Temp\tmp71DC.tmp.cadir\bin\App_Web_puiv434g.dll">
  84. <Modules>
  85. <Module Name="app_web_puiv434g.dll">
  86. <Namespaces>
  87. <Namespace Name="">
  88. <Types>
  89. <Type Name="Test" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  90. <Members>
  91. <Member Name="#inet_addr(System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
  92. <Messages>
  93. <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="Breaking">
  94. <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.inet_addr(string)'。</Issue>
  95. </Message>
  96. <Message Id="0" TypeName="SpecifyMarshalingForPInvokeStringArguments" Category="Microsoft.Globalization" CheckId="CA2101" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="NonBreaking">
  97. <Issue Name="ParameterImplicitAnsi" Certainty="75" Level="Error">为了降低安全风险,请将参数 'ip' 封送为 Unicode,方法是将 DllImport.CharSet 设置为 CharSet.Unicode,或者将该参数显式封送为 UnmanagedType.LPWStr。如果您需要将该字符串封送为 ANSI 或者与系统相关的编码,请显式指定 MarshalAs,并设置 BestFitMapping=false;为了提高安全性,还应设置 ThrowOnUnmappableChar=true。</Issue>
  98. </Message>
  99. </Messages>
  100. </Member>
  101. <Member Name="#SendARP(System.Int32,System.Int32,System.Int64&amp;,System.Int32&amp;)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
  102. <Messages>
  103. <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="Breaking">
  104. <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.SendARP(int, int, ref long, ref int)'。</Issue>
  105. </Message>
  106. </Messages>
  107. </Member>
  108. </Members>
  109. </Type>
  110. </Types>
  111. </Namespace>
  112. </Namespaces>
  113. </Module>
  114. </Modules>
  115. </Target>
  116. <Target Name="C:\Users\231010\AppData\Local\Temp\tmp71DC.tmp.cadir\bin\App_Web_v3wecq5z.dll">
  117. <Modules>
  118. <Module Name="app_web_v3wecq5z.dll">
  119. <Namespaces>
  120. <Namespace Name="">
  121. <Types>
  122. <Type Name="EFinance_ImportBill" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  123. <Members>
  124. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  125. <Messages>
  126. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  127. <Issue Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EFinance" File="ImportBill.aspx.cs" Line="131">可以在方法 'EFinance_ImportBill.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 131</Issue>
  128. </Message>
  129. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  130. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EFinance" File="ImportBill.aspx.cs" Line="127">传递给 'EFinance_ImportBill.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  131. </Message>
  132. </Messages>
  133. </Member>
  134. </Members>
  135. </Type>
  136. <Type Name="EFinance_ImportSample" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  137. <Members>
  138. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  139. <Messages>
  140. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  141. <Issue Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EFinance" File="ImportSample.aspx.cs" Line="267">可以在方法 'EFinance_ImportSample.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 267</Issue>
  142. </Message>
  143. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2024-02-01 01:50:41Z" FixCategory="DependsOnFix">
  144. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="g:\git\ERP\Web\EFinance" File="ImportSample.aspx.cs" Line="263">传递给 'EFinance_ImportSample.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  145. </Message>
  146. </Messages>
  147. </Member>
  148. </Members>
  149. </Type>
  150. </Types>
  151. </Namespace>
  152. </Namespaces>
  153. </Module>
  154. </Modules>
  155. </Target>
  156. </Targets>
  157. <Rules>
  158. <Rule TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060">
  159. <Name>将 P/Invoke 移动到 NativeMethods 类</Name>
  160. <Description>此类型包含具有 DllImport 特性的成员。具有 DllImport 特性的成员应包含在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中。</Description>
  161. <Resolution Name="Default">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 {0}。</Resolution>
  162. <Owner />
  163. <Url>http://msdn.microsoft.com/library/ms182161.aspx</Url>
  164. <Email>[none]</Email>
  165. <MessageLevel Certainty="95">CriticalWarning</MessageLevel>
  166. <File Name="designrules.dll" Version="17.0.0.0" />
  167. </Rule>
  168. <Rule TypeName="SpecifyMarshalingForPInvokeStringArguments" Category="Microsoft.Globalization" CheckId="CA2101">
  169. <Name>指定对 P/Invoke 字符串参数进行封送处理</Name>
  170. <Description>在将字符串封送为 ANSI (在 Win9x 上为 Auto)时,某些字符可能会改变。如果启用了最佳匹配映射,则采用 Unicode 编码时显示样式不同的字符串将封送到相同的 ANSI 字符串,这可能会导致错误的安全决策。禁用最佳匹配映射会降低此风险,因为所有没有等效项的字符都将映射到“?”。另外,请注意,CharSet.Ansi 是所有字符串的默认封送设置;Unicode 封送必须显式指定为 DllImport 或 StructLayout 的 CharSet 设置,或者指定为具有 Unicode (或与系统相关的) UnmanagedType 的 MarshalAs 特性。</Description>
  171. <Resolution Name="ParameterImplicitAnsi">为了降低安全风险,请将参数 {0} 封送为 Unicode,方法是将 DllImport.CharSet 设置为 CharSet.Unicode,或者将该参数显式封送为 UnmanagedType.LPWStr。如果您需要将该字符串封送为 ANSI 或者与系统相关的编码,请显式指定 MarshalAs,并设置 BestFitMapping=false;为了提高安全性,还应设置 ThrowOnUnmappableChar=true。</Resolution>
  172. <Owner />
  173. <Url>http://msdn.microsoft.com/library/ms182319.aspx</Url>
  174. <Email>[none]</Email>
  175. <MessageLevel Certainty="75">Error</MessageLevel>
  176. <File Name="globalizationrules.dll" Version="17.0.0.0" />
  177. </Rule>
  178. <Rule TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202">
  179. <Name>不要多次释放对象</Name>
  180. <Description>可以多次调用正确实现的 Dispose 方法,而不会引发异常。但是,并不保证所有情况下都会如此。若要避免生成 System.ObjectDisposedException,您不应对一个对象多次调用 Dispose。</Description>
  181. <Resolution Name="Default">可以在方法 {1} 中多次释放对象 {0}。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 144</Resolution>
  182. <Owner>RuleOwner</Owner>
  183. <Url>http://msdn.microsoft.com/library/ms182334.aspx</Url>
  184. <Email />
  185. <MessageLevel Certainty="75">Warning</MessageLevel>
  186. <File Name="dataflowrules.dll" Version="17.0.0.0" />
  187. </Rule>
  188. <Rule TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100">
  189. <Name>检查 SQL 查询是否存在安全漏洞</Name>
  190. <Description>通过用户输入生成的 SQL 命令字符串容易受到 SQL 注入式攻击。Microsoft SQL Server 和其他数据库服务器支持存储过程和参数化 SQL 查询,这将降低受到注入式攻击的风险。</Description>
  191. <Resolution Name="WithNonLiterals">传递给 {1} 中的 {0} 的查询字符串可能包含以下变量 {2}。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Resolution>
  192. <Owner>RuleOwner</Owner>
  193. <Url>http://msdn.microsoft.com/library/ms182310.aspx</Url>
  194. <Email />
  195. <MessageLevel Certainty="75">Warning</MessageLevel>
  196. <File Name="dataflowrules.dll" Version="17.0.0.0" />
  197. </Rule>
  198. </Rules>
  199. <Localized>
  200. <String Key="Category">类别</String>
  201. <String Key="Certainty">确定性</String>
  202. <String Key="CollapseAll">全部折叠</String>
  203. <String Key="CheckId">检查 ID</String>
  204. <String Key="Error">错误</String>
  205. <String Key="Errors">错误</String>
  206. <String Key="ExpandAll">全部展开</String>
  207. <String Key="Help">帮助</String>
  208. <String Key="Line">行</String>
  209. <String Key="Messages">消息</String>
  210. <String Key="LocationNotStoredInPdb">[位置未存储在 Pdb 中]</String>
  211. <String Key="Project">项目</String>
  212. <String Key="Resolution">解析</String>
  213. <String Key="Rule">规则</String>
  214. <String Key="RuleFile">规则文件</String>
  215. <String Key="RuleDescription">规则说明</String>
  216. <String Key="Source">源</String>
  217. <String Key="Status">状态</String>
  218. <String Key="Target">目标</String>
  219. <String Key="Warning">警告</String>
  220. <String Key="Warnings">警告</String>
  221. <String Key="ReportTitle">Code Analysis 报告</String>
  222. </Localized>
  223. </FxCopReport>