Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-07 22:05:27 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-07 23:30:07 +0300
commit7cea3430a56fb0ff6ef60f08620fd3875e7bfeb6 (patch)
treec4ac2588b0245ecb0770b9de6693f466a31f8055 /libavcodec/takdec.c
parenta55fbfa4c4967068a9c37f041110ace9fb633d4e (diff)
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/takdec.c')
-rw-r--r--libavcodec/takdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index e5c0723940..dc0449e57d 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -645,7 +645,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
*p1++ = v;
}
- memcpy(s->residues, &s->residues[tmp], 2 * filter_order);
+ memmove(s->residues, &s->residues[tmp], 2 * filter_order);
}
emms_c();