ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Sun 
Jan  5 02:36:25 2025 +0100| [b72de492959fb19eab37368232e65a4371c367f7] | 
committer: Michael Niedermayer

avfilter/vf_addroi: Add missing NULL termination to addroi_var_names[]()

Fixes: out of array read

Found-by: Elias Myllymäki <elias.myllymaki...@gmail.com>
Reviewed-by: Alexander Strasser <eclip...@gmx.net>
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b72de492959fb19eab37368232e65a4371c367f7
---

 libavfilter/vf_addroi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_addroi.c b/libavfilter/vf_addroi.c
index de857eced4..d6765e9d8c 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 {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

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

Reply via email to