decoder/DsdLib: raise ID3 tag limit to 1 MB
A bug report was submitted with a 600 kB ID3 tag that could not be read by MPD.
This commit is contained in:
parent
a289dcb9ee
commit
8b5f47d3a3
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.19.9 (not yet released)
|
ver 0.19.9 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- dsdiff, dsf: raise ID3 tag limit to 1 MB
|
||||||
* fix build failure with uClibc
|
* fix build failure with uClibc
|
||||||
* fix build failure on non-POSIX operating systems
|
* fix build failure on non-POSIX operating systems
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ dsdlib_tag_id3(InputStream &is,
|
||||||
|
|
||||||
const id3_length_t count = size - offset;
|
const id3_length_t count = size - offset;
|
||||||
|
|
||||||
if (count < 10 || count > 256*1024)
|
if (count < 10 || count > 1024 * 1024)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
id3_byte_t *const id3_buf = static_cast<id3_byte_t*>(xalloc(count));
|
id3_byte_t *const id3_buf = static_cast<id3_byte_t*>(xalloc(count));
|
||||||
|
|
Loading…
Reference in New Issue