You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
lavfi/formats: fix segfault when allocation fails
This is a somewhat subtle failure that can occur when the realloc_array fails in FORMATS_REF. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
@ -445,7 +445,7 @@ do { \
|
|||||||
do { \
|
do { \
|
||||||
int idx = -1; \
|
int idx = -1; \
|
||||||
\
|
\
|
||||||
if (!*ref) \
|
if (!*ref || !(*ref)->refs) \
|
||||||
return; \
|
return; \
|
||||||
\
|
\
|
||||||
FIND_REF_INDEX(ref, idx); \
|
FIND_REF_INDEX(ref, idx); \
|
||||||
|
Reference in New Issue
Block a user