mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-14 19:40:29 +00:00
avformat/iamf_parse.c: Fix potential integer overflow in opus_decoder_config()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 016a241102)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d1b0069077
commit
d26ce3ec60
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ static int opus_decoder_config(IAMFCodecConfig *codec_config,
|
|||
{
|
||||
int ret, left = len - avio_tell(pb);
|
||||
|
||||
if (left < 11 || codec_config->audio_roll_distance >= 0)
|
||||
if (left < 11 || codec_config->audio_roll_distance >= 0 || left > INT_MAX - 8)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
codec_config->extradata = av_malloc(left + 8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue