mirror of
https://github.com/facebook/zstd.git
synced 2025-10-10 00:03:36 -04:00
zstreamtest --newapi : reduced maximum allocated memory
This commit is contained in:
parent
8074261d00
commit
bbef058ae6
@ -1363,7 +1363,7 @@ static int fuzzerTests_newAPI(U32 seed, U32 nbTests, unsigned startTest, double
|
|||||||
}
|
}
|
||||||
{ U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? ZSTD_CONTENTSIZE_UNKNOWN : maxTestSize;
|
{ U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? ZSTD_CONTENTSIZE_UNKNOWN : maxTestSize;
|
||||||
ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, pledgedSrcSize, dictSize);
|
ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, pledgedSrcSize, dictSize);
|
||||||
static const U32 windowLogMax = 25;
|
static const U32 windowLogMax = 24;
|
||||||
|
|
||||||
/* mess with compression parameters */
|
/* mess with compression parameters */
|
||||||
cParams.windowLog += (FUZ_rand(&lseed) & 3) - 1;
|
cParams.windowLog += (FUZ_rand(&lseed) & 3) - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user