Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncramfs-lzma stops after successfully decoding the first block #137

Open
GoogleCodeExporter opened this issue May 30, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

When processing a LZMA-compressed file, uncramfs-lzma stops after successfully 
uncompressing the first file block.

As a consequence, files larger than the block size are truncated after the 
first block (the rest of the file is filled with zeros).

I'm not sure how it was working so far, except when processing CramFS images 
with only "small" files (i.e., files smaller than the LZMA block size).


The following patch should fix the problem:

--- a/lzma-uncramfs.c   2014-08-27 10:18:37.660841457 +0200
+++ b/lzma-uncramfs.c   2014-08-27 10:18:45.336841358 +0200
@@ -114,10 +114,6 @@
     fprintf(stderr,"Uncompression failed");
     return -1;
       }
-      else
-      {
-         return 0;
-      }
    }
    return 0;
 }

Original issue reported on code.google.com by roberto.paleari@gmail.com on 27 Aug 2014 at 8:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant