[FFmpeg-devel] [PATCH V2] avformat/dashdec: fix pointer being freed was not allocated

vectronic hello.vectronic at gmail.com
Fri Sep 13 21:01:57 EEST 2019


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 4f725ba09a..4753477fd9 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -1185,6 +1185,7 @@ static int parse_programinformation(AVFormatContext *s, xmlNodePtr node)
 
     node = xmlFirstElementChild(node);
     while (node) {
+        val = NULL;
         if (!av_strcasecmp(node->name, "Title")) {
             val = xmlNodeGetContent(node);
             if (val) {
-- 
2.20.1 (Apple Git-117)



More information about the ffmpeg-devel mailing list