diff --git a/lib/legacy/zstd_v03.c b/lib/legacy/zstd_v03.c index 5b1fd7175c..8ec2e7350b 100644 --- a/lib/legacy/zstd_v03.c +++ b/lib/legacy/zstd_v03.c @@ -2711,7 +2711,7 @@ static size_t ZSTD_execSequence(BYTE* op, if (litEnd > litLimit) return ERROR(corruption_detected); /* overRead beyond lit buffer */ /* copy Literals */ - ZSTD_wildcopy(op, *litPtr, sequence.litLength); /* note : oLitEnd <= oend-8 : no risk of overwrite beyond oend */ + ZSTD_memmove(op, *litPtr, sequence.litLength); /* note : used to be wildCopy, changed to fix a bug in 32-bit mode (oss-fuzz case 55714) */ op = oLitEnd; *litPtr = litEnd; /* update for next sequence */