OSSP CVS Repository

ossp - Check-in [4292]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4292
Date: 2001-Aug-08 11:50:27 (local)
2001-Aug-08 09:50:27 (UTC)
User:simons
Branch:
Comment: Fixed base64_(en|de)code()'s problem with buffer's of input size zero.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xml-decode-octetstream.c      1.2->removed
ossp-pkg/xds/xml-encode-octetstream.c      1.1->removed

ossp-pkg/xds/xml-decode-octetstream.c 1.2 -> 1.3

--- xml-decode-octetstream.c     2001/08/08 09:23:39     1.2
+++ xml-decode-octetstream.c     2001/08/08 09:50:27     1.3
@@ -36,7 +36,7 @@
     char *pos;
 
     if (srclen == 0)
-        srclen = strlen(src);
+        return 0;
     state = 0;
     dstidx = 0;
     res = 0;


ossp-pkg/xds/xml-encode-octetstream.c 1.1 -> 1.2

--- xml-encode-octetstream.c     2001/08/02 17:24:50     1.1
+++ xml-encode-octetstream.c     2001/08/08 09:50:27     1.2
@@ -41,7 +41,7 @@
     size_t i;
 
     if (srclen == 0)
-        return -1;
+        return 0;
     if (dst == NULL)
         {
         /* just calculate required length of dst */

CVSTrac 2.0.1