Commit 0a28a52d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'dd0bfc3a'

* commit 'dd0bfc3a':
  dsicinav: Bound-check the source buffer when needed

Conflicts:
	libavcodec/dsicinav.c

See: 47f0beadMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 75fbe41f dd0bfc3a
......@@ -222,7 +222,7 @@ static int cin_decode_rle(const unsigned char *src, int src_size,
av_log(NULL, AV_LOG_ERROR, "RLE overread\n");
return AVERROR_INVALIDDATA;
}
memcpy(dst, src, FFMIN(len, dst_end - dst));
memcpy(dst, src, FFMIN3(len, dst_end - dst, src_end - src));
src += len;
}
dst += len;
......
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