mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Merge commit 'dd0bfc3a6a310e3e3674ce7742672d689a9a0e93'
* commit 'dd0bfc3a6a310e3e3674ce7742672d689a9a0e93':
dsicinav: Bound-check the source buffer when needed
Conflicts:
libavcodec/dsicinav.c
See: 47f0beadba
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
0a28a52d53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user