On 16 September 2013 12:06, Martin Storsjö <mar...@martin.st> wrote:
> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> CC: libav-sta...@libav.org
> ---
>  libavcodec/rv10.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
> index 0d3b648..a73ebfe 100644
> --- a/libavcodec/rv10.c
> +++ b/libavcodec/rv10.c
> @@ -432,6 +432,10 @@ static av_cold int rv10_decode_init(AVCodecContext 
> *avctx)
>          av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
>          return AVERROR_INVALIDDATA;
>      }
> +    if (avctx->coded_width <= 0 || avctx->coded_height <= 0) {
> +        av_log(avctx, AV_LOG_ERROR, "Invalid picture dimensions\n");
> +        return AVERROR_INVALIDDATA;
> +    }
>

Looks OK, is there a maximum dimension?
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to