mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 03:09:51 +00:00
CVE-2023-51794
Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
This commit is contained in:
parent
0bb69b4677
commit
319f4165f3
@ -74,6 +74,8 @@ static int config_input(AVFilterLink *inlink)
|
||||
|
||||
s->length = s->delay * inlink->sample_rate / 1000;
|
||||
s->length *= 2;
|
||||
if (s->length == 0)
|
||||
return AVERROR(EINVAL);
|
||||
s->buffer = av_calloc(s->length, sizeof(*s->buffer));
|
||||
if (!s->buffer)
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user