[FFmpeg-cvslog] avcodec/takdec: Use memove, avoid undefined memcpy() use

Michael Niedermayer git at videolan.org
Thu Nov 26 01:44:26 CET 2015


ffmpeg | branch: release/2.7 | Michael Niedermayer <michael at niedermayer.cc> | Sat Nov  7 20:05:27 2015 +0100| [27f3696502e10eb3b6aaec8af73f7ef082e2d913] | committer: 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: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 7cea3430a56fb0ff6ef60f08620fd3875e7bfeb6)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=27f3696502e10eb3b6aaec8af73f7ef082e2d913
---

 libavcodec/takdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 45c7650..28f884a 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -656,7 +656,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();



More information about the ffmpeg-cvslog mailing list