[gmime/gmime-2-4] Fixed bug #597794



commit ec84bb9ad12fb18c7b63b4ce58b85c6245809fe4
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Oct 10 11:09:30 2009 -0400

    Fixed bug #597794
    
    2009-10-10  Jeffrey Stedfast  <fejj novell com>
    
    	* gmime/gmime-encodings.c (g_mime_encoding_uudecode_step): Fixed a
    	uudecoding bug when uulen % 3 is 2. Thanks to Peter Hartley. Fixes
    	bug #597794.

 ChangeLog               |    6 ++++++
 gmime/gmime-encodings.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c4a8a7b..61d8480 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-10  Jeffrey Stedfast  <fejj novell com>
+
+	* gmime/gmime-encodings.c (g_mime_encoding_uudecode_step): Fixed a
+	uudecoding bug when uulen % 3 is 2. Thanks to Peter Hartley. Fixes
+	bug #597794.
+
 2009-09-03  Jeffrey Stedfast  <fejj novell com>
 
 	* README: Bumped version
diff --git a/gmime/gmime-encodings.c b/gmime/gmime-encodings.c
index 864ab09..8880592 100644
--- a/gmime/gmime-encodings.c
+++ b/gmime/gmime-encodings.c
@@ -830,7 +830,7 @@ g_mime_encoding_uudecode_step (const unsigned char *inbuf, size_t inlen, unsigne
 						*outptr++ = gmime_uu_rank[b0] << 2 | gmime_uu_rank[b1] >> 4;
 						uulen--;
 					}
-					if (uulen >= 2) {
+					if (uulen >= 1) {
 						*outptr++ = gmime_uu_rank[b1] << 4 | gmime_uu_rank[b2] >> 2;
 						uulen--;
 					}



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