On 07/03/14 17:47, Vittorio Giovara wrote:
> From: Michael Niedermayer <[email protected]>
> 
> Fixes out of array read.
> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> ---
>  libavcodec/hevcpred_template.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/hevcpred_template.c b/libavcodec/hevcpred_template.c
> index 27f4b9e..8890dc4 100644
> --- a/libavcodec/hevcpred_template.c
> +++ b/libavcodec/hevcpred_template.c
> @@ -156,6 +156,7 @@ static void FUNC(intra_pred)(HEVCContext *s, int x0, int 
> y0, int log2_size, int
>              left[i] = 128;
>              top[i]  = 128;
>          }
> +        top[-1] = 128;
>      }
>      if (cand_bottom_left) {
>          for (i = size + bottom_left_size; i < (size << 1); i++)
> 

Uhm, sounds strange that it would fix an out of array read and maybe
also left[-1] should be initialized as well?

Are you sure the commit message matches the commit? Guillaume what's
your opinion?

PS: for high bits 128 sounds strange, in that case shouldn't be 512 ?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to