On Fri, Jan 11, 2013 at 05:09:03AM +0100, Luca Barbato wrote:
> Prevent the crash on fuzzed files as reported in bug 63.
> ---
>  libavcodec/zmbv.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
> index 8e0db8b..5d4254a 100644
> --- a/libavcodec/zmbv.c
> +++ b/libavcodec/zmbv.c
> @@ -428,6 +428,8 @@ static int decode_frame(AVCodecContext *avctx, void 
> *data, int *got_frame, AVPac
>          c->fmt = buf[3];
>          c->bw = buf[4];
>          c->bh = buf[5];
> +        c->decode_intra = NULL;
> +        c->decode_xor = NULL;
>  
>          buf += 6;
>          len -= 6;
> -- 

probably OK (and somebody might ask you to CC:stable)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to