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 { \
|
||||
int idx = -1; \
|
||||
\
|
||||
if (!*ref) \
|
||||
if (!*ref || !(*ref)->refs) \
|
||||
return; \
|
||||
\
|
||||
FIND_REF_INDEX(ref, idx); \
|
||||
|
Reference in New Issue
Block a user