gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14577 - in libmicrohttpd: . src/daemon


From: gnunet
Subject: [GNUnet-SVN] r14577 - in libmicrohttpd: . src/daemon
Date: Thu, 3 Mar 2011 21:45:20 +0100

Author: grothoff
Date: 2011-03-03 21:45:20 +0100 (Thu, 03 Mar 2011)
New Revision: 14577

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/base64.c
Log:
fixing 1666

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2011-03-03 18:22:06 UTC (rev 14576)
+++ libmicrohttpd/ChangeLog     2011-03-03 20:45:20 UTC (rev 14577)
@@ -1,3 +1,7 @@
+Thu Mar  3 21:42:47 CET 2011
+       Fixing issue where Base64 decode fails when char is defined 
+        as unsigned char  (Mantis 1666). -CG/tmayer
+
 Tue Mar  1 13:58:04 CET 2011
        Allow use of 'poll' in combination with the external select mode.
        Avoid using pthread signals (SIGALRM), use pipe instead. 

Modified: libmicrohttpd/src/daemon/base64.c
===================================================================
--- libmicrohttpd/src/daemon/base64.c   2011-03-03 18:22:06 UTC (rev 14576)
+++ libmicrohttpd/src/daemon/base64.c   2011-03-03 20:45:20 UTC (rev 14577)
@@ -46,10 +46,10 @@
                char c = base64_digits[(unsigned char)*(src++)];
                char d = base64_digits[(unsigned char)*(src++)];
                *(dest++) = (a << 2) | ((b & 0x30) >> 4);
-               if (c == -1)
+               if (c == (char)-1)
                        break;
                *(dest++) = ((b & 0x0f) << 4) | ((c & 0x3c) >> 2);
-               if (d == -1)
+               if (d == (char)-1)
                        break;
                *(dest++) = ((c & 0x03) << 6) | d;
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]