Fix ICY decoder overflow causing streams to die

This commit is contained in:
Earle F. Philhower, III committed 2017-12-16 16:16:01 -08:00
1 parent 397aee8c19
commit 5b45a79cf7
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class ICYMDReader {
~ICYMDReader() {
// Get rid of any remaining bytes in the MD block
char xxx[16];
if (saved) avail--; // Throw away any unread bytes
if (saved>=0) avail--; // Throw away any unread bytes
while (avail > 16) {
stream->readBytes(xxx, 16);
avail -= 16;