[Mono-bugs] [Bug 408738] New: Constructor is calling SetKey, which is a overriden method, in RSAPKCS1KeyExchangeFormatter.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 13 15:37:46 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=408738


           Summary: Constructor is calling SetKey, which is a overriden
                    method, in RSAPKCS1KeyExchangeFormatter.
           Product: Mono: Class Libraries
           Version: SVN
          Platform: PC
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System.Security
        AssignedTo: spouliot at novell.com
        ReportedBy: nestor.salceda at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=227477)
 --> (https://bugzilla.novell.com/attachment.cgi?id=227477)
Patch to the code (with ChangeLog)

I have found this using Gendarme.

Target: System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
Assembly: mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Severity: High  Confidence: High
Location: System.Void
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter::.ctor(System.Security.Cryptography.AsymmetricAlgorithm)
Source: debugging symbols unavailable, IL offset 0x0008
Details: Calling a virtual method, 'System.Void
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter::SetKey(System.Security.Cryptography.AsymmetricAlgorithm)'
from System.Void
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter::.ctor(System.Security.Cryptography.AsymmetricAlgorithm).

And while I was refactoring I had discovered that SetKey should throw an
ArgumentNullException if the RSA key is null, then I attach the patch and the
tests.

You can get more info in the following links:
http://msdn.microsoft.com/en-us/library
/system.security.cryptography.rsapkcs1keyexchangeformatter.setkey.aspx

http://msdn.microsoft.com/en-us/library/kbk5d82f.aspx


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list