From: Stella Lau Date: Wed, 30 Aug 2017 01:04:32 +0000 (-0700) Subject: Use ZSTD_dm_rawContent in zstdmt_compress X-Git-Tag: fuzz-corpora2~29^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623e3cd40b368b48a62456a0f8f950474b969238;p=thirdparty%2Fzstd.git Use ZSTD_dm_rawContent in zstdmt_compress --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index bf418df54..86afe5065 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -768,7 +768,7 @@ size_t ZSTDMT_initCStream_internal( DEBUGLOG(4,"cdictLocal: %08X", (U32)(size_t)zcs->cdictLocal); ZSTD_freeCDict(zcs->cdictLocal); zcs->cdictLocal = ZSTD_createCDict_advanced(dict, dictSize, - ZSTD_dlm_byCopy, ZSTD_dm_auto, /* note : a loadPrefix becomes an internal CDict */ + ZSTD_dlm_byCopy, ZSTD_dm_rawContent, /* note : a loadPrefix becomes an internal CDict */ params.cParams, zcs->cMem); zcs->cdict = zcs->cdictLocal; if (zcs->cdictLocal == NULL) return ERROR(memory_allocation);