decoder/dsdiff: allow longer tag values

This commit is contained in:
Max Kellermann 2019-06-06 12:44:25 +02:00
parent 3b5a128097
commit b07bbb928a

View File

@ -201,7 +201,7 @@ dsdiff_handle_native_tag(DecoderClient *client, InputStream &is,
uint32_t length = FromBE32(metatag.size);
/* Check and limit size of the tag to prevent a stack overflow */
constexpr size_t MAX_LENGTH = 60;
constexpr size_t MAX_LENGTH = 1024;
if (length == 0 || length > MAX_LENGTH)
return;