diff options
author | phate89 <phates89@gmail.com> | 2016-12-12 17:39:35 +0100 |
---|---|---|
committer | phate89 <phates89@gmail.com> | 2016-12-12 17:39:35 +0100 |
commit | 2befae898853bba059da7b82c7c714174a980d72 (patch) | |
tree | ba293299fd45ea1da538300b800fab24262300aa /lib | |
parent | f034d17ddfefac6a182511f1401d248beb45b280 (diff) |
platinum: add patch for f034d17ddfefac6a182511f1401d248beb45b280
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libUPnP/patches/0039-platinum-fix-potential-crash-in-parsetaglist.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/libUPnP/patches/0039-platinum-fix-potential-crash-in-parsetaglist.patch b/lib/libUPnP/patches/0039-platinum-fix-potential-crash-in-parsetaglist.patch new file mode 100644 index 0000000000..0375c67179 --- /dev/null +++ b/lib/libUPnP/patches/0039-platinum-fix-potential-crash-in-parsetaglist.patch @@ -0,0 +1,26 @@ +From f034d17ddfefac6a182511f1401d248beb45b280 Mon Sep 17 00:00:00 2001 +From: phate89 <phates89@gmail.com> +Date: Mon, 12 Dec 2016 17:37:44 +0100 +Subject: [PATCH 1/1] platinum: fix potential crash in parsetaglist + +--- + lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp +index 6ecec0f..0a43dab 100644 +--- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp ++++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp +@@ -400,7 +400,8 @@ PLT_MediaServer::ParseTagList(const NPT_String& updates, NPT_Map<NPT_String,NPT_ + for (NPT_List<NPT_XmlNode*>::Iterator children = didl_partial->GetChildren().GetFirstItem(); children; children++) { + NPT_XmlElementNode* child = (*children)->AsElementNode(); + if (!child) continue; +- tags[child->GetTag()] = *child->GetText(); ++ const NPT_String *txt = child->GetText(); ++ tags[child->GetTag()] = txt ? *txt : ""; + } + + return NPT_SUCCESS; +-- +2.10.2.windows.1 + |