Fix ICY decoder overflow causing streams to die
This commit is contained in:
1 parent
397aee8c19
commit
5b45a79cf7
3 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user