aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-06 21:58:42 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-06 21:59:42 +0100
commitdaefd8ab2f2aeb90cd53cb75445faffdc7a3cc79 (patch)
treeb75386d60094e025adcd6d5572c66ce2c21c0cd1 /libavcodec/dirac_parser.c
parent6f1ddc726f0763cd9cc271e33ba0769d821d74da (diff)
downloadffmpeg-daefd8ab2f2aeb90cd53cb75445faffdc7a3cc79.tar.gz
avcodec/dirac_parser: Fix undefined memcpy() use
Fixes: 9d375e415486edd1a0c826f2307d89a4/asan_generic_4a5159_1577_faa333e83dacdd9e4dd322380aeed537.iss Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dirac_parser.c')
-rw-r--r--libavcodec/dirac_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dirac_parser.c b/libavcodec/dirac_parser.c
index 45ded5a779..83c35a2010 100644
--- a/libavcodec/dirac_parser.c
+++ b/libavcodec/dirac_parser.c
@@ -123,7 +123,7 @@ static int dirac_combine_frame(AVCodecParserContext *s, AVCodecContext *avctx,
DiracParseContext *pc = s->priv_data;
if (pc->overread_index) {
- memcpy(pc->buffer, pc->buffer + pc->overread_index,
+ memmove(pc->buffer, pc->buffer + pc->overread_index,
pc->index - pc->overread_index);
pc->index -= pc->overread_index;
pc->overread_index = 0;