From 667f8ea1c88e4929d2d05826fbe2282a38e7bab5 Mon Sep 17 00:00:00 2001 From: "yann.collet.73@gmail.com" Date: Wed, 26 Oct 2011 20:15:33 +0000 Subject: [PATCH] Corrected a bug in LZ4_uncompress_unknownOutputSize(), which reported incorrect decodedSize when maxOutputSize=decodedSize. Thanks to Clayton Stangeland for report and solution. git-svn-id: https://lz4.googlecode.com/svn/trunk@37 650e7d94-2a16-8b24-b05c-7c0b3f6821cd --- lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lz4.c b/lz4.c index a5cb605..e83090c 100644 --- a/lz4.c +++ b/lz4.c @@ -540,7 +540,7 @@ int LZ4_uncompress_unknownOutputSize( { if (ref > oend) goto _output_error; memcpy(op, ip, length); - ip += length; + op += length; break; // Necessarily EOF } LZ4_WILDCOPY(ip, op, ref); ip -= (op-ref); op = ref; -- 2.7.4