[FFmpeg-cvslog] avfilter/af_afftfilt: fix possible invalid memory access

Paul B Mahol git at videolan.org
Mon Oct 7 12:39:08 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Oct  7 11:37:05 2019 +0200| [0c4137bcb742bccc29f87145615a120bc5988c24] | committer: Paul B Mahol

avfilter/af_afftfilt: fix possible invalid memory access

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

 libavfilter/af_afftfilt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c
index 86278ef35b..28b4bda8da 100644
--- a/libavfilter/af_afftfilt.c
+++ b/libavfilter/af_afftfilt.c
@@ -188,6 +188,8 @@ static int config_input(AVFilterLink *inlink)
     if (!args)
         return AVERROR(ENOMEM);
 
+    saveptr = NULL;
+    last_expr = "1";
     for (ch = 0; ch < inlink->channels; ch++) {
         char *arg = av_strtok(ch == 0 ? args : NULL, "|", &saveptr);
 



More information about the ffmpeg-cvslog mailing list