lz4: allow LZ4_decompress_safe_partial to be used

- erofs is currently the only user.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
John Galt 2022-05-03 16:33:10 -04:00 committed by azrim
parent 607eff5412
commit f76c7bd799
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C
2 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ int LZ4_decompress_safe(const char *source, char *dest, int compressedSize,
* or a negative result in case of error
*
*/
static int LZ4_decompress_safe_partial(const char *source, char *dest,
int LZ4_decompress_safe_partial(const char *source, char *dest,
int compressedSize, int targetOutputSize, int maxDecompressedSize);
/*-************************************************************************

View File

@ -462,7 +462,7 @@ int LZ4_decompress_safe(const char *source, char *dest,
noDict, (BYTE *)dest, NULL, 0);
}
static int LZ4_decompress_safe_partial(const char *src, char *dst,
int LZ4_decompress_safe_partial(const char *src, char *dst,
int compressedSize, int targetOutputSize, int dstCapacity)
{
dstCapacity = min(targetOutputSize, dstCapacity);