mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
607eff5412
commit
f76c7bd799
@ -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);
|
||||
|
||||
/*-************************************************************************
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user