mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 00:59:38 +00:00
Merge commit '61335ab33e594d47b84fde7367ee10dc66fc3465' into release/2.4
* commit '61335ab33e594d47b84fde7367ee10dc66fc3465': opt: check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
ee910aef38
@ -150,6 +150,8 @@ static int set_string_binary(void *obj, const AVOption *o, const char *val, uint
|
||||
len /= 2;
|
||||
|
||||
ptr = bin = av_malloc(len);
|
||||
if (!ptr)
|
||||
return AVERROR(ENOMEM);
|
||||
while (*val) {
|
||||
int a = hexchar2int(*val++);
|
||||
int b = hexchar2int(*val++);
|
||||
|
Loading…
Reference in New Issue
Block a user