CodeAnalysisLog.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet type="text/xsl" href="c:\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\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_323yd5vj.dll">
  6. <Modules>
  7. <Module Name="app_web_323yd5vj.dll">
  8. <Namespaces>
  9. <Namespace Name="">
  10. <Types>
  11. <Type Name="Test" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  12. <Members>
  13. <Member Name="#inet_addr(System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
  14. <Messages>
  15. <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="Breaking">
  16. <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.inet_addr(string)'。</Issue>
  17. </Message>
  18. <Message Id="0" TypeName="SpecifyMarshalingForPInvokeStringArguments" Category="Microsoft.Globalization" CheckId="CA2101" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="NonBreaking">
  19. <Issue Name="ParameterImplicitAnsi" Certainty="75" Level="Error">为了降低安全风险,请将参数 'ip' 封送为 Unicode,方法是将 DllImport.CharSet 设置为 CharSet.Unicode,或者将该参数显式封送为 UnmanagedType.LPWStr。如果您需要将该字符串封送为 ANSI 或者与系统相关的编码,请显式指定 MarshalAs,并设置 BestFitMapping=false;为了提高安全性,还应设置 ThrowOnUnmappableChar=true。</Issue>
  20. </Message>
  21. </Messages>
  22. </Member>
  23. <Member Name="#SendARP(System.Int32,System.Int32,System.Int64&amp;,System.Int32&amp;)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
  24. <Messages>
  25. <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="Breaking">
  26. <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.SendARP(int, int, ref long, ref int)'。</Issue>
  27. </Message>
  28. </Messages>
  29. </Member>
  30. </Members>
  31. </Type>
  32. </Types>
  33. </Namespace>
  34. </Namespaces>
  35. </Module>
  36. </Modules>
  37. </Target>
  38. <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_444vtzhn.dll">
  39. <Modules>
  40. <Module Name="app_web_444vtzhn.dll">
  41. <Namespaces>
  42. <Namespace Name="">
  43. <Types>
  44. <Type Name="EFinance_ImportBill" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  45. <Members>
  46. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  47. <Messages>
  48. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  49. <Issue Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EFinance" File="ImportBill.aspx.cs" Line="131">可以在方法 'EFinance_ImportBill.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 131</Issue>
  50. </Message>
  51. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  52. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EFinance" File="ImportBill.aspx.cs" Line="127">传递给 'EFinance_ImportBill.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  53. </Message>
  54. </Messages>
  55. </Member>
  56. </Members>
  57. </Type>
  58. <Type Name="EFinance_ImportSample" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  59. <Members>
  60. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  61. <Messages>
  62. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  63. <Issue Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EFinance" File="ImportSample.aspx.cs" Line="268">可以在方法 'EFinance_ImportSample.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 268</Issue>
  64. </Message>
  65. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  66. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EFinance" File="ImportSample.aspx.cs" Line="264">传递给 'EFinance_ImportSample.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  67. </Message>
  68. </Messages>
  69. </Member>
  70. </Members>
  71. </Type>
  72. </Types>
  73. </Namespace>
  74. </Namespaces>
  75. </Module>
  76. </Modules>
  77. </Target>
  78. <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_fizus4ba.dll">
  79. <Modules>
  80. <Module Name="app_web_fizus4ba.dll">
  81. <Namespaces>
  82. <Namespace Name="">
  83. <Types>
  84. <Type Name="EDelivery_DeliveredImportUpload" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  85. <Members>
  86. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  87. <Messages>
  88. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  89. <Issue Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EDelivery" File="DeliveredImportUpload.aspx.cs" Line="202">可以在方法 'EDelivery_DeliveredImportUpload.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 202</Issue>
  90. </Message>
  91. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  92. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EDelivery" File="DeliveredImportUpload.aspx.cs" Line="198">传递给 'EDelivery_DeliveredImportUpload.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  93. </Message>
  94. </Messages>
  95. </Member>
  96. </Members>
  97. </Type>
  98. </Types>
  99. </Namespace>
  100. </Namespaces>
  101. </Module>
  102. </Modules>
  103. </Target>
  104. <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_hrt4kg0y.dll">
  105. <Modules>
  106. <Module Name="app_web_hrt4kg0y.dll">
  107. <Namespaces>
  108. <Namespace Name="">
  109. <Types>
  110. <Type Name="plug_oImports" Kind="Class" Accessibility="Public" ExternallyVisible="True">
  111. <Members>
  112. <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
  113. <Messages>
  114. <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  115. <Issue Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\plug" File="oImports.aspx.cs" Line="112">可以在方法 'plug_oImports.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 112</Issue>
  116. </Message>
  117. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  118. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\plug" File="oImports.aspx.cs" Line="108">传递给 'plug_oImports.ExcelDataSource(string)' 中的 'OleDbDataAdapter.OleDbDataAdapter(string, string)' 的查询字符串可能包含以下变量 'al[0]'。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Issue>
  119. </Message>
  120. </Messages>
  121. </Member>
  122. </Members>
  123. </Type>
  124. </Types>
  125. </Namespace>
  126. </Namespaces>
  127. </Module>
  128. </Modules>
  129. </Target>
  130. <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_jesx2e2k.dll">
  131. <Modules>
  132. <Module Name="app_web_jesx2e2k.dll">
  133. <Namespaces>
  134. <Namespace Name="">
  135. <Types>
  136. <Type Name="EAfterSale_AfterSaleImportUpload" 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="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  141. <Issue Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EAfterSale" File="AfterSaleImportUpload.aspx.cs" Line="145">可以在方法 'EAfterSale_AfterSaleImportUpload.ExcelDataSource(string)' 中多次释放对象 'conn'。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 145</Issue>
  142. </Message>
  143. <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
  144. <Issue Name="WithNonLiterals" Certainty="75" Level="Warning" Path="f:\erp1\erp\Web\EAfterSale" File="AfterSaleImportUpload.aspx.cs" Line="141">传递给 'EAfterSale_AfterSaleImportUpload.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: 145</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>