[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptog
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptography CryptoTestCase.cs,1.4,1.5 |
Date: |
Tue, 26 Nov 2002 23:20:31 -0500 |
Update of
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Security/Cryptography
In directory
subversions:/tmp/cvs-serv10561/tests/runtime/System/Security/Cryptography
Modified Files:
CryptoTestCase.cs
Log Message:
Fix the range-checking code in "Array.Copy" so that zero-length
copies at the end of an array actually work the way they are
supposed to.
Index: CryptoTestCase.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/tests/runtime/System/Security/Cryptography/CryptoTestCase.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** CryptoTestCase.cs 27 Nov 2002 02:13:22 -0000 1.4
--- CryptoTestCase.cs 27 Nov 2002 04:20:28 -0000 1.5
***************
*** 191,198 ****
// Get the hash value over the input in a
sub-buffer.
byte[] input2 = new byte [input.Length + 20];
! if(input.Length != 0)
! {
! Array.Copy(input, 0, input2, 10,
input.Length);
! }
hash = alg.ComputeHash(input2, 10,
input.Length);
--- 191,195 ----
// Get the hash value over the input in a
sub-buffer.
byte[] input2 = new byte [input.Length + 20];
! Array.Copy(input, 0, input2, 10, input.Length);
hash = alg.ComputeHash(input2, 10,
input.Length);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptography CryptoTestCase.cs,1.4,1.5,
Rhys Weatherley <address@hidden> <=