Commit 8beb5d17 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Andreas Cadhalpun

avcodec/takdec: Use memove, avoid undefined memcpy() use

Fixes: e214333cbd94c91228e624ff39329ce6/asan_generic_4a5159_6412_96cda2530e80607210ab41ccae3d456d.tak

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7cea3430)
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
parent 4636eb89
...@@ -656,7 +656,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length) ...@@ -656,7 +656,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
*p1++ = v; *p1++ = v;
} }
memcpy(s->residues, &s->residues[tmp], 2 * filter_order); memmove(s->residues, &s->residues[tmp], 2 * filter_order);
} }
emms_c(); emms_c();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment