decoder/dsd: allow 4 MB ID3 tags

Closes #277
This commit is contained in:
Max Kellermann 2018-05-07 10:53:48 +02:00
parent 6522d2f722
commit b763852f57
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ ver 0.20.20 (not yet released)
- fix "modified-since" filter regression
* decoder
- dsdiff, dsf: support more MIME types
- dsdiff, dsf: allow 4 MB ID3 tags
ver 0.20.19 (2018/04/26)
* protocol

View File

@ -128,7 +128,7 @@ dsdlib_tag_id3(InputStream &is,
return;
const auto count64 = size - tagoffset;
if (count64 < 10 || count64 > 1024 * 1024)
if (count64 < 10 || count64 > 4 * 1024 * 1024)
return;
if (!dsdlib_skip_to(nullptr, is, tagoffset))