[gmime] Fixed bug #597794



commit 65292a0adae7d37bf3a1b147c2984270e015d32f
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Oct 10 11:12:17 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 |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2f02ed7..c34bf4f 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-10-01  Jeffrey Stedfast  <fejj novell com>
 
 	* gmime/gmime-part.c (mime_part_encode): Shortcut if the currently
diff --git a/gmime/gmime-encodings.c b/gmime/gmime-encodings.c
index 864ab09..4aabbe7 100644
--- a/gmime/gmime-encodings.c
+++ b/gmime/gmime-encodings.c
@@ -830,7 +830,8 @@ 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]