[FFmpeg-devel] [PATCH 1/2] avfilter/vf_addroi: Add missing NULL termination to addroi_var_names[]()

Michael Niedermayer michael at niedermayer.cc
Tue Jan 7 14:51:23 EET 2025


Hi

On Sun, Jan 05, 2025 at 11:26:17AM +0100, Alexander Strasser via ffmpeg-devel wrote:
> On 2025-01-05 05:44 +0100, Michael Niedermayer wrote:
> > Fixes: out of array read
> >
> > Found-by: Elias Myllymäki <elias.myllymaki04p at gmail.com>
> > Signed-off-by: Michael Niedermayer <michael at 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

will apply

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Some Animals are More Equal Than Others. - George Orwell's book Animal Farm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250107/1fcdf1c5/attachment.sig>


More information about the ffmpeg-devel mailing list