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:
parent
5f0ef5bb63
commit
667f8ea1c8
2
lz4.c
2
lz4.c
@ -540,7 +540,7 @@ int LZ4_uncompress_unknownOutputSize(
|
|||||||
{
|
{
|
||||||
if (ref > oend) goto _output_error;
|
if (ref > oend) goto _output_error;
|
||||||
memcpy(op, ip, length);
|
memcpy(op, ip, length);
|
||||||
ip += length;
|
op += length;
|
||||||
break; // Necessarily EOF
|
break; // Necessarily EOF
|
||||||
}
|
}
|
||||||
LZ4_WILDCOPY(ip, op, ref); ip -= (op-ref); op = ref;
|
LZ4_WILDCOPY(ip, op, ref); ip -= (op-ref); op = ref;
|
||||||
|
Loading…
Reference in New Issue
Block a user