summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-01-15 01:26:57 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-01-15 01:26:57 +0000
commit51630cbac1dcb04345fb1384812f1576f0ea29db (patch)
treed73212d1a8388495ae30cd2ce7b216aed9d5591a
parentb3cba9021f0b5437afbacc286b5e026c84ef7141 (diff)
downloadrockbox-51630cbac1dcb04345fb1384812f1576f0ea29db.tar.gz
rockbox-51630cbac1dcb04345fb1384812f1576f0ea29db.zip
outright reject any tags which need a special parser in the wps playlist viewer. There is no intention of even trying to support them and without this possible upcoming changes will cause crashes if any of those tags are used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24229 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 435a3a1f3f..9157ffaa3c 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -779,7 +779,12 @@ static int parse_playlistview_text(struct playlistviewer *viewer,
779 taglen = i; 779 taglen = i;
780 } 780 }
781 else 781 else
782 { 782 {
783 if (tag->parse_func)
784 {
785 /* unsupported tag, reject */
786 return -1;
787 }
783 taglen = strlen(tag->name); 788 taglen = strlen(tag->name);
784 viewer->lines[line].tokens[viewer->lines[line].count++] = tag->type; 789 viewer->lines[line].tokens[viewer->lines[line].count++] = tag->type;
785 } 790 }