ffmpeg | branch: master | vectronic <hello.vectro...@gmail.com> | Mon Sep 16 
11:44:27 2019 +0100| [598962cd3a68e30662cfbd5e053eef85d2ee3a8a] | committer: 
Steven Liu

avformat/dashdec: fix pointer being freed was not allocated

prevent attempt to call xmlFree if val was not allocated
fixes: 8135

Reviewed-by: Steven Liu <l...@onvideo.cn>
Signed-off-by: vectronic <hello.vectro...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=598962cd3a68e30662cfbd5e053eef85d2ee3a8a
---

 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;
 }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to