Also Assert Equivalency When Filling MatchState with Prefix
This commit is contained in:
1 parent
6cb2454646
commit
3483f89101
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user