[FFmpeg-devel] [PATCH 1/2] avfilter/vf_addroi: Add missing NULL termination to addroi_var_names[]()
Michael Niedermayer
michael at niedermayer.cc
Sun Jan 5 06:44:25 EET 2025
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 {
--
2.47.0
More information about the ffmpeg-devel
mailing list