[FFmpeg-devel] [PATCH 04/13] lavf/brstm: allow larger block sizes

Paul B Mahol onemda at gmail.com
Thu Jun 18 11:27:59 CEST 2015


Dana 18. 6. 2015. 11:04 osoba "Rodger Combs" <rodger.combs at gmail.com>
napisala je:
>
> ---
>  libavformat/brstm.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/libavformat/brstm.c b/libavformat/brstm.c
> index 15e63b8..5dc1e2b 100644
> --- a/libavformat/brstm.c
> +++ b/libavformat/brstm.c
> @@ -223,8 +223,6 @@ static int read_header(AVFormatContext *s)
>      }
>
>      b->block_size = read32(s);
> -    if (b->block_size > UINT16_MAX / st->codec->channels)
> -        return AVERROR_INVALIDDATA;
>      b->block_size *= st->codec->channels;
>
>      b->samples_per_block = read32(s);
> --
> 2.4.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Is there actual files this fixes?
There is overflow possible so better to use uint32_t.


More information about the ffmpeg-devel mailing list