Author: gonzalo
Date: 2005-06-27 09:50:09 -0400 (Mon, 27 Jun 2005)
New Revision: 46554
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/icall.c
Log:
2005-06-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* icall.c: handle spaces correctly for base64 strings.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-06-27 12:59:30 UTC (rev 46553)
+++ trunk/mono/mono/metadata/ChangeLog 2005-06-27 13:50:09 UTC (rev 46554)
@@ -1,3 +1,7 @@
+2005-06-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * icall.c: handle spaces correctly for base64 strings.
+
2005-06-26 Ben Maurer <[EMAIL PROTECTED]>
* *.c: Kill some warnings.
Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c 2005-06-27 12:59:30 UTC (rev 46553)
+++ trunk/mono/mono/metadata/icall.c 2005-06-27 13:50:09 UTC (rev 46554)
@@ -6059,11 +6059,11 @@
for (i = 0; i < ilength; ) {
int k;
- for (k = 0; k < 4 && i < ilength; k++) {
+ for (k = 0; k < 4 && i < ilength;) {
c = start [i++];
if (isspace (c))
continue;
-
+
a [k] = (guchar) c;
if (((b [k] = dbase64 [c]) & 0x80) != 0) {
exc = mono_exception_from_name_msg
(mono_get_corlib (),
@@ -6071,6 +6071,7 @@
"Invalid character found.");
mono_raise_exception (exc);
}
+ k++;
}
*res_ptr++ = (b [0] << 2) | (b [1] >> 4);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches