]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix the uu filter. That did not extract uuencoded data when an output file-name is...
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 3 Aug 2011 05:13:37 +0000 (01:13 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 3 Aug 2011 05:13:37 +0000 (01:13 -0400)
SVN-Revision: 3519

libarchive/archive_read_support_filter_uu.c

index c30969153ce74798a92fb7a16c5c486c246a55d0..b5cb8edf3c7e6a9538a3a2bcc03d9845100057d5 100644 (file)
@@ -528,9 +528,9 @@ read_more:
                                    "Invalid format data");
                                return (ARCHIVE_FATAL);
                        }
-                       if (len - nl > 13 && memcmp(b, "begin ", 6) == 0)
+                       if (len - nl >= 11 && memcmp(b, "begin ", 6) == 0)
                                l = 6;
-                       else if (len - nl > 18 &&
+                       else if (len - nl >= 18 &&
                            memcmp(b, "begin-base64 ", 13) == 0)
                                l = 13;
                        else