]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fixed hang in UUEncode filter 88/head
authorRyan Lucchese <ryan.lucchese@perceptivesoftware.com>
Tue, 2 Sep 2014 23:35:12 +0000 (17:35 -0600)
committerRyan Lucchese <ryan.lucchese@perceptivesoftware.com>
Tue, 2 Sep 2014 23:35:12 +0000 (17:35 -0600)
libarchive/archive_read_support_filter_uu.c

index 3975ec20dfe4040092866cbc1c180d7886464289..787a619f2f3aea80896abf24c7c0967d11223617 100644 (file)
@@ -509,7 +509,7 @@ read_more:
                        return (ARCHIVE_FATAL);
                }
                llen = len;
-               if (nl == 0) {
+               if ((nl == 0) && (uudecode->state != ST_UUEND)) {
                        /*
                         * Save remaining data which does not contain
                         * NL('\n','\r').