On Sun, Jun 23, 2013 at 08:50:08AM +0200, Luca Barbato wrote:
> --- a/libavcodec/jpeg2000dec.c
> +++ b/libavcodec/jpeg2000dec.c
> @@ -438,6 +438,9 @@ static int get_sot(Jpeg2000DecoderContext *s, int n)
>  
>      Isot = bytestream2_get_be16u(&s->g);        // Isot
> +    if (Isot >= s->numXtiles * s->numYtiles) {
> +        return AVERROR_INVALIDDATA;
> +    }

pointless {}

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

Reply via email to