[vlc-commits] str_format_meta: NULL dereference

Rémi Denis-Courmont git at videolan.org
Mon Nov 17 18:03:25 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 17 17:51:08 2014 +0200| [090a04a3e80a9bf0a7cda391c869e223f170e4da] | committer: Rémi Denis-Courmont

str_format_meta: NULL dereference

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=090a04a3e80a9bf0a7cda391c869e223f170e4da
---

 src/text/strings.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/text/strings.c b/src/text/strings.c
index d7212ea..a57014b 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -761,6 +761,8 @@ char *str_format_meta(input_thread_t *input, const char *s)
                 fputc('\n', stream);
                 break;
             case 'Z':
+                if (item == NULL)
+                    break;
                 if (write_meta(stream, item, vlc_meta_NowPlaying) == EOF)
                 {
                     char *title = input_item_GetTitleFbName(item);



More information about the vlc-commits mailing list