[FFmpeg-devel] [PATCH V3 1/2] avformat/dashdec: fix pointer being freed was not allocated
vectronic
hello.vectronic at gmail.com
Fri Sep 20 15:20:27 EEST 2019
> On 16 Sep 2019, at 11:55, Liu Steven <lq at chinaffmpeg.org> wrote:
>
>
>
>> 在 2019年9月16日,下午6:44,vectronic <hello.vectronic at gmail.com> 写道:
>>
>> prevent attempt to call xmlFree if val was not allocated
>>
>> fixes: 8135
>> Signed-off-by: vectronic <hello.vectronic at gmail.com>
>> ---
>> libavformat/dashdec.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
>> index 8c0a9b0102..738bfeaefb 100644
>> --- a/libavformat/dashdec.c
>> +++ b/libavformat/dashdec.c
>> @@ -1203,6 +1203,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
>> }
>> node = xmlNextElementSibling(node);
>> xmlFree(val);
>> + val = NULL;
>> }
>> return 0;
>> }
>> --
>> 2.20.1 (Apple Git-117)
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
> patchset LGTM
>
> Thanks
> Steven
>
Anything else you need or will this be applied at some point?
Thanks
Nick
More information about the ffmpeg-devel
mailing list