mirror of
https://github.com/facebook/zstd.git
synced 2025-12-07 00:02:39 -05:00
Also Assert Equivalency When Filling MatchState with Prefix
This commit is contained in:
parent
6cb2454646
commit
3483f89101
@ -2700,6 +2700,9 @@ static size_t ZSTD_loadDictionaryContent(ZSTD_matchState_t* ms,
|
||||
ZSTD_window_update(&ms->window, src, srcSize);
|
||||
ms->loadedDictEnd = params->forceWindow ? 0 : (U32)(iend - ms->window.base);
|
||||
|
||||
/* Assert that we the ms params match the params we're being given */
|
||||
assert(ZSTD_equivalentCParams(params->cParams, ms->cParams));
|
||||
|
||||
if (srcSize <= HASH_READ_SIZE) return 0;
|
||||
|
||||
switch(params->cParams.strategy)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user