[Mono-bugs] [Bug 364360] New: ArgumentOutOfRangeException when calling Rfc2898DeriveBytes.GetBytes() twice

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 23 04:44:56 EST 2008


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


           Summary: ArgumentOutOfRangeException when calling
                    Rfc2898DeriveBytes.GetBytes() twice
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: i586
               URL: http://www.go-mono.com/archive/1.9/
        OS/Version: SLED 10
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: System.Security
        AssignedTo: spouliot at novell.com
        ReportedBy: twiest at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
ArgumentOutOfRangeException when calling Rfc2898DeriveBytes.GetBytes() twice.
This was reported by David Penton from Telligent.


Steps to reproduce the problem:
1. Run the attached testcase
2. Notice the error


Actual Results:
c221:~ # mono MonoGetBytesTest.exe
Size: 16
90.80.142.252.26.134.216.50.27.96.230.88.13.67.8.102.


Unhandled Exception: System.ArgumentOutOfRangeException: Non-negative number
required.
Parameter name: dstOffset
  at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array
dst, Int32 dstOffset, Int32 count) [0x00000]
  at System.Security.Cryptography.Rfc2898DeriveBytes.GetBytes (Int32 cb)
[0x00000]
  at MonoGetBytesTest.Program.Main (System.String[] args) [0x00000]
c221:~ #


Expected Results:
c223:~ # mono MonoGetBytesTest.exe
Size: 16
132.70.86.158.147.77.206.167.20.243.177.238.189.167.6.99.

Size: 32
113.156.26.164.167.151.17.238.30.224.70.170.139.21.214.162.245.87.155.84.161.157.248.154.5.43.0.230.214.41.57.50.

Press return

c223:~ #



How often does this happen? 
Every time.


-- 
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