Commit 989c91b5 authored by Michael Niedermayer's avatar Michael Niedermayer

asrc_aevalsrc: Fix use of uninitialized pointer inside av_strtok()

Fixes CID733842
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4e4ae2f8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment