mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Prevented infinite loop in skipBytes()
This commit is contained in:
@ -101,6 +101,9 @@ public class ID3Reader {
|
||||
*/
|
||||
protected void skipBytes(InputStream input, int number) throws IOException {
|
||||
int skipped = 0;
|
||||
if (number <= 0) {
|
||||
number = 1;
|
||||
}
|
||||
while (skipped < number) {
|
||||
skipped += input.skip(number - skipped);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user