Hi,

On Fri, Sep 9, 2011 at 1:28 PM, Alex Converse <[email protected]> wrote:
> ---
>  libavcodec/indeo2.c |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
> index 591c1ce..012b897 100644
> --- a/libavcodec/indeo2.c
> +++ b/libavcodec/indeo2.c
> @@ -156,6 +156,13 @@ static int ir2_decode_frame(AVCodecContext *avctx,
>         return -1;
>     }
>
> +    start = 48; /* hardcoded for now */
> +
> +    if (start >= buf_size) {
> +        av_log(s->avctx, AV_LOG_ERROR, "input buffer size too small (%d)\n", 
> buf_size);
> +        return -1;
> +    }

Stefano would prefer AVERROR_INVALIDDATA. Regardless, I'll leave that
choice to you, patch OK either way.

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

Reply via email to