mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avcodec/mlpdec: Fail if the input is too small
This fixes a infinite loop Fixes Ticket2986 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
+1
-1
@@ -1070,7 +1070,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data,
|
||||
int ret;
|
||||
|
||||
if (buf_size < 4)
|
||||
return 0;
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
length = (AV_RB16(buf) & 0xfff) * 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user