[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


           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

Unhandled Exception: System.ArgumentOutOfRangeException: Non-negative number
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)
  at MonoGetBytesTest.Program.Main (System.String[] args) [0x00000]
c221:~ #

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

Size: 32

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