From b07bbb928a73cdaefdba28f54ac4f8b5938df940 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Thu, 6 Jun 2019 12:44:25 +0200
Subject: [PATCH] decoder/dsdiff: allow longer tag values

---
 src/decoder/plugins/DsdiffDecoderPlugin.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/decoder/plugins/DsdiffDecoderPlugin.cxx b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
index f10f266fb..1e4d9799c 100644
--- a/src/decoder/plugins/DsdiffDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
@@ -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;