You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/http: Fix null check on allocated value
probably fixes CID 1292299 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
8b152c355f
commit
919d13d238
@@ -495,7 +495,7 @@ static int cookie_string(AVDictionary *dict, char **cookies)
|
|||||||
e = NULL;
|
e = NULL;
|
||||||
if (*cookies) av_free(*cookies);
|
if (*cookies) av_free(*cookies);
|
||||||
*cookies = av_malloc(len);
|
*cookies = av_malloc(len);
|
||||||
if (!cookies) return AVERROR(ENOMEM);
|
if (!*cookies) return AVERROR(ENOMEM);
|
||||||
*cookies[0] = '\0';
|
*cookies[0] = '\0';
|
||||||
|
|
||||||
// write out the cookies
|
// write out the cookies
|
||||||
|
Reference in New Issue
Block a user