]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
use ZSTD_memcpy(), for proper redirection within Linux Kernel 2962/head
authorYann Collet <cyan@fb.com>
Wed, 29 Dec 2021 01:41:47 +0000 (17:41 -0800)
committerYann Collet <cyan@fb.com>
Wed, 29 Dec 2021 01:41:47 +0000 (17:41 -0800)
lib/compress/zstd_compress_internal.h

index 22579ca0b79038b17f9fefbed7740f82000d0097..c406e794bdb9249788bb3e44e644aec5599dd90c 100644 (file)
@@ -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;
 }