diff options
author | vdrfan <vdrfan@svn> | 2010-07-21 15:32:52 +0000 |
---|---|---|
committer | vdrfan <vdrfan@svn> | 2010-07-21 15:32:52 +0000 |
commit | 86b33f13ab65e8c62a3edb0026d03ba008d4cebe (patch) | |
tree | abb41b450468bbf2a5f6705ecdcaecd9dc6c1977 | |
parent | 91d52f4310eae5bb31c4f837f94720bd89b04f45 (diff) |
fixed: Ticket #9695 - ParseMP3Genre array index out of bounds error (thanks Malard)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32042 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/Id3Tag.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/Id3Tag.cpp b/xbmc/Id3Tag.cpp index 2797b73c0e..1f0a7d04d5 100644 --- a/xbmc/Id3Tag.cpp +++ b/xbmc/Id3Tag.cpp @@ -485,6 +485,9 @@ CStdString CID3Tag::ParseMP3Genre(const CStdString& str) const // remove any leading spaces strTemp.TrimLeft(); + if (strTemp.IsEmpty()) + break; + // start off looking for (something) if (strTemp[0] == '(') { |