You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '07a0c0f0005072d115ace61e60f46be68582cc3a'
* commit '07a0c0f0005072d115ace61e60f46be68582cc3a': opt: check memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -143,6 +143,8 @@ static int set_string_binary(void *obj, const AVOption *o, const char *val, uint
|
|||||||
len /= 2;
|
len /= 2;
|
||||||
|
|
||||||
ptr = bin = av_malloc(len);
|
ptr = bin = av_malloc(len);
|
||||||
|
if (!ptr)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
while (*val) {
|
while (*val) {
|
||||||
int a = hexchar2int(*val++);
|
int a = hexchar2int(*val++);
|
||||||
int b = hexchar2int(*val++);
|
int b = hexchar2int(*val++);
|
||||||
|
Reference in New Issue
Block a user