Also Assert Equivalency When Filling MatchState with Prefix

This commit is contained in:
W. Felix Handte
2018-09-28 17:10:42 -07:00
parent 6cb2454646
commit 3483f89101
+3
View File
@@ -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)