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
This commit is contained in:
yann.collet.73@gmail.com 2011-10-26 20:15:33 +00:00
parent 5f0ef5bb63
commit 667f8ea1c8

2
lz4.c
View File

@ -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;