improve lyrics handling
@@ -100,6 +100,10 @@ public class LyricsHandler {
int tagLen = Integer.parseInt(
lyrics.substring(pos+3, pos+8)
);
+ if (tagLen < 1 || tagLen > lyrics.length()) {
+ //something went wrong
+ break;
+ }
int startPos = pos + 8;
int endPos = startPos + tagLen;
