On Fri, Jun 28, 2013 at 06:53:32AM +0200, Luca Barbato wrote:
> Prevent some buffer overwrite.
> 
> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> CC: libav-sta...@libav.org
> ---
>  libavcodec/wmaprodec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
> index 0712fb7..2867b87 100644
> --- a/libavcodec/wmaprodec.c
> +++ b/libavcodec/wmaprodec.c
> @@ -716,6 +716,7 @@ static int decode_channel_transform(WMAProDecodeCtx* s)
>                      if (get_bits1(&s->gb)) {
>                          avpriv_request_sample(s->avctx,
>                                                "Unknown channel transform 
> type");
> +                        return AVERROR_PATCHWELCOME;
>                      }
>                  } else {
>                      chgroup->transform = 1;
> -- 

maybe it's better drop the explanation, otherwise OK
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to