[FFmpeg-cvslog] asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
Michael Niedermayer
git at videolan.org
Thu Oct 11 03:05:12 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 03:00:34 2012 +0200| [989c91b5042c19c9914a3b205b1ca6e1598c66ba] | committer: Michael Niedermayer
asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()
Fixes CID733842
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=989c91b5042c19c9914a3b205b1ca6e1598c66ba
---
libavfilter/asrc_aevalsrc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c
index 71eadfc..c8b5e02 100644
--- a/libavfilter/asrc_aevalsrc.c
+++ b/libavfilter/asrc_aevalsrc.c
@@ -91,6 +91,12 @@ static int init(AVFilterContext *ctx, const char *args)
eval->class = &aevalsrc_class;
av_opt_set_defaults(eval);
+ if (!args1) {
+ av_log(ctx, AV_LOG_ERROR, "Argument is empty\n");
+ ret = args ? AVERROR(ENOMEM) : AVERROR(EINVAL);
+ goto end;
+ }
+
/* parse expressions */
buf = args1;
i = 0;
More information about the ffmpeg-cvslog
mailing list