| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?xml version="1.0" encoding="utf-8"?>
- <?xml-stylesheet type="text/xsl" href="c:\program files\microsoft visual studio\2022\community\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
- <FxCopReport Version="17.0">
- <Targets>
- <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_323yd5vj.dll">
- <Modules>
- <Module Name="app_web_323yd5vj.dll">
- <Namespaces>
- <Namespace Name="">
- <Types>
- <Type Name="Test" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#inet_addr(System.String)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="Breaking">
- <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.inet_addr(string)'。</Issue>
- </Message>
- <Message Id="0" TypeName="SpecifyMarshalingForPInvokeStringArguments" Category="Microsoft.Globalization" CheckId="CA2101" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="NonBreaking">
- <Issue Name="ParameterImplicitAnsi" Certainty="75" Level="Error">为了降低安全风险,请将参数 'ip' 封送为 Unicode,方法是将 DllImport.CharSet 设置为 CharSet.Unicode,或者将该参数显式封送为 UnmanagedType.LPWStr。如果您需要将该字符串封送为 ANSI 或者与系统相关的编码,请显式指定 MarshalAs,并设置 BestFitMapping=false;为了提高安全性,还应设置 ThrowOnUnmappableChar=true。</Issue>
- </Message>
- </Messages>
- </Member>
- <Member Name="#SendARP(System.Int32,System.Int32,System.Int64&,System.Int32&)" Kind="Method" Static="True" Accessibility="Private" ExternallyVisible="False">
- <Messages>
- <Message TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="Breaking">
- <Issue Certainty="95" Level="CriticalWarning">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 'Test.SendARP(int, int, ref long, ref int)'。</Issue>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_444vtzhn.dll">
- <Modules>
- <Module Name="app_web_444vtzhn.dll">
- <Namespaces>
- <Namespace Name="">
- <Types>
- <Type Name="EFinance_ImportBill" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- <Type Name="EFinance_ImportSample" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_fizus4ba.dll">
- <Modules>
- <Module Name="app_web_fizus4ba.dll">
- <Namespaces>
- <Namespace Name="">
- <Types>
- <Type Name="EDelivery_DeliveredImportUpload" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_hrt4kg0y.dll">
- <Modules>
- <Module Name="app_web_hrt4kg0y.dll">
- <Namespaces>
- <Namespace Name="">
- <Types>
- <Type Name="plug_oImports" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- <Target Name="C:\Users\231128\AppData\Local\Temp\tmp3E96.tmp.cadir\bin\App_Web_jesx2e2k.dll">
- <Modules>
- <Module Name="app_web_jesx2e2k.dll">
- <Namespaces>
- <Namespace Name="">
- <Types>
- <Type Name="EAfterSale_AfterSaleImportUpload" Kind="Class" Accessibility="Public" ExternallyVisible="True">
- <Members>
- <Member Name="#ExcelDataSource(System.String)" Kind="Method" Static="True" Accessibility="Public" ExternallyVisible="True">
- <Messages>
- <Message TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- <Message TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100" Status="Active" Created="2023-12-02 09:16:32Z" FixCategory="DependsOnFix">
- <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>
- </Message>
- </Messages>
- </Member>
- </Members>
- </Type>
- </Types>
- </Namespace>
- </Namespaces>
- </Module>
- </Modules>
- </Target>
- </Targets>
- <Rules>
- <Rule TypeName="MovePInvokesToNativeMethodsClass" Category="Microsoft.Design" CheckId="CA1060">
- <Name>将 P/Invoke 移动到 NativeMethods 类</Name>
- <Description>此类型包含具有 DllImport 特性的成员。具有 DllImport 特性的成员应包含在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中。</Description>
- <Resolution Name="Default">由于是 P/Invoke 方法,因此,应在名为 NativeMethods、SafeNativeMethods 或 UnsafeNativeMethods 的类中定义 {0}。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/ms182161.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="95">CriticalWarning</MessageLevel>
- <File Name="designrules.dll" Version="17.0.0.0" />
- </Rule>
- <Rule TypeName="SpecifyMarshalingForPInvokeStringArguments" Category="Microsoft.Globalization" CheckId="CA2101">
- <Name>指定对 P/Invoke 字符串参数进行封送处理</Name>
- <Description>在将字符串封送为 ANSI (在 Win9x 上为 Auto)时,某些字符可能会改变。如果启用了最佳匹配映射,则采用 Unicode 编码时显示样式不同的字符串将封送到相同的 ANSI 字符串,这可能会导致错误的安全决策。禁用最佳匹配映射会降低此风险,因为所有没有等效项的字符都将映射到“?”。另外,请注意,CharSet.Ansi 是所有字符串的默认封送设置;Unicode 封送必须显式指定为 DllImport 或 StructLayout 的 CharSet 设置,或者指定为具有 Unicode (或与系统相关的) UnmanagedType 的 MarshalAs 特性。</Description>
- <Resolution Name="ParameterImplicitAnsi">为了降低安全风险,请将参数 {0} 封送为 Unicode,方法是将 DllImport.CharSet 设置为 CharSet.Unicode,或者将该参数显式封送为 UnmanagedType.LPWStr。如果您需要将该字符串封送为 ANSI 或者与系统相关的编码,请显式指定 MarshalAs,并设置 BestFitMapping=false;为了提高安全性,还应设置 ThrowOnUnmappableChar=true。</Resolution>
- <Owner />
- <Url>http://msdn.microsoft.com/library/ms182319.aspx</Url>
- <Email>[none]</Email>
- <MessageLevel Certainty="75">Error</MessageLevel>
- <File Name="globalizationrules.dll" Version="17.0.0.0" />
- </Rule>
- <Rule TypeName="不要多次释放对象" Category="Microsoft.Usage" CheckId="CA2202">
- <Name>不要多次释放对象</Name>
- <Description>可以多次调用正确实现的 Dispose 方法,而不会引发异常。但是,并不保证所有情况下都会如此。若要避免生成 System.ObjectDisposedException,您不应对一个对象多次调用 Dispose。</Description>
- <Resolution Name="Default">可以在方法 {1} 中多次释放对象 {0}。若要避免生成 System.ObjectDisposedException,不应对一个对象多次调用 Dispose。: Lines: 145</Resolution>
- <Owner>RuleOwner</Owner>
- <Url>http://msdn.microsoft.com/library/ms182334.aspx</Url>
- <Email />
- <MessageLevel Certainty="75">Warning</MessageLevel>
- <File Name="dataflowrules.dll" Version="17.0.0.0" />
- </Rule>
- <Rule TypeName="检查 SQL 查询是否存在安全漏洞" Category="Microsoft.Security" CheckId="CA2100">
- <Name>检查 SQL 查询是否存在安全漏洞</Name>
- <Description>通过用户输入生成的 SQL 命令字符串容易受到 SQL 注入式攻击。Microsoft SQL Server 和其他数据库服务器支持存储过程和参数化 SQL 查询,这将降低受到注入式攻击的风险。</Description>
- <Resolution Name="WithNonLiterals">传递给 {1} 中的 {0} 的查询字符串可能包含以下变量 {2}。如果其中的任意变量可能来自用户输入,请考虑使用存储过程或参数化 SQL 查询,而不是通过字符串串联来生成查询。</Resolution>
- <Owner>RuleOwner</Owner>
- <Url>http://msdn.microsoft.com/library/ms182310.aspx</Url>
- <Email />
- <MessageLevel Certainty="75">Warning</MessageLevel>
- <File Name="dataflowrules.dll" Version="17.0.0.0" />
- </Rule>
- </Rules>
- <Localized>
- <String Key="Category">类别</String>
- <String Key="Certainty">确定性</String>
- <String Key="CollapseAll">全部折叠</String>
- <String Key="CheckId">检查 ID</String>
- <String Key="Error">错误</String>
- <String Key="Errors">错误</String>
- <String Key="ExpandAll">全部展开</String>
- <String Key="Help">帮助</String>
- <String Key="Line">行</String>
- <String Key="Messages">消息</String>
- <String Key="LocationNotStoredInPdb">[位置未存储在 Pdb 中]</String>
- <String Key="Project">项目</String>
- <String Key="Resolution">解析</String>
- <String Key="Rule">规则</String>
- <String Key="RuleFile">规则文件</String>
- <String Key="RuleDescription">规则说明</String>
- <String Key="Source">源</String>
- <String Key="Status">状态</String>
- <String Key="Target">目标</String>
- <String Key="Warning">警告</String>
- <String Key="Warnings">警告</String>
- <String Key="ReportTitle">Code Analysis 报告</String>
- </Localized>
- </FxCopReport>
|