On 2025-01-05 05:44 +0100, Michael Niedermayer wrote:
> Fixes: out of array read
>
> Found-by: Elias Myllymäki <elias.myllymaki...@gmail.com>
> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>
> ---
>  libavfilter/vf_addroi.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavfilter/vf_addroi.c b/libavfilter/vf_addroi.c
> index de857eced44..d6765e9d8cb 100644
> --- a/libavfilter/vf_addroi.c
> +++ b/libavfilter/vf_addroi.c
> @@ -39,6 +39,7 @@ enum {
>  static const char *const addroi_var_names[] = {
>      "iw",
>      "ih",
> +    NULL,
>  };
>
>  typedef struct AddROIContext {
> --

LGTM

Thanks,
  Alexander

P.S.
It's a bit funny how we talk in allmost all filters about
variables because these are called constants when it comes
down to the av_expr_parse_and_eval call.

Guess it's a point of view thing. From filter POV they
can be variable, from the POV of the single expression
evaluation they are constant :)
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to