On 30/07/2017 01:18, Sean McGovern wrote:
> Based on an FFmpeg patch by Michael Niedermayer <[email protected]>
> ---
>  libavformat/mov.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index bf68fbd..8ff6022 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -1875,6 +1875,11 @@ static int mov_read_stsd(MOVContext *c, AVIOContext 
> *pb, MOVAtom atom)
>      avio_rb24(pb); /* flags */
>      entries = avio_rb32(pb);
>  
> +    if (entries <= 0) {
> +        av_log(c->fc, AV_LOG_ERROR, "invalid STSD entries %d\n", entries);
> +        return AVERROR_INVALIDDATA;
> +    }
> +
>      if (sc->extradata) {
>          av_log(c->fc, AV_LOG_ERROR,
>                 "Duplicate stsd found in this track.\n");
> 

Shouldn't hurt.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to