Changed "silly frame size" to be something more reasonable for ID3v2
Attached album art (APIC) can be quite large
This commit is contained in:
parent
73fb47f2e5
commit
add143bccc
@ -83,7 +83,8 @@ public class ID3v2File extends Common {
|
|||||||
slen = unsyncsafe(slen);
|
slen = unsyncsafe(slen);
|
||||||
|
|
||||||
/* Abort on silly sizes */
|
/* Abort on silly sizes */
|
||||||
if(slen < 1 || slen > 524288)
|
long bytesRemaining = payload_len - bread;
|
||||||
|
if(slen < 1 || slen > (bytesRemaining))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
byte[] xpl = new byte[slen];
|
byte[] xpl = new byte[slen];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user