From: Yann Collet Date: Wed, 29 Dec 2021 01:41:47 +0000 (-0800) Subject: use ZSTD_memcpy(), for proper redirection within Linux Kernel X-Git-Tag: v1.5.2^2~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7c9fc11e689e105e9c43c016c9160a121ba3b1;p=thirdparty%2Fzstd.git use ZSTD_memcpy(), for proper redirection within Linux Kernel --- diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index 22579ca0b..c406e794b 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -688,7 +688,7 @@ MEM_STATIC repcodes_t ZSTD_newRep(U32 const rep[ZSTD_REP_NUM], U32 const offBase_minus1, U32 const ll0) { repcodes_t newReps; - memcpy(&newReps, rep, sizeof(newReps)); + ZSTD_memcpy(&newReps, rep, sizeof(newReps)); ZSTD_updateRep(newReps.rep, offBase_minus1, ll0); return newReps; }