From f51ba6464adf1d2324c418e106b66da525f01587 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 15 Nov 2009 18:44:53 +0100 Subject: [PATCH] id3: allow 4 MB RIFF/AIFF tags Allow RIFF/AIFF ID3 tags up to 4 MB (old limit was 256 kB). This might still be too small for some users, and when somebody complains, we might do something more clever (like streaming the data into libid3tag?). --- NEWS | 2 ++ src/tag_id3.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a037115b7..8bd2369d2 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,8 @@ ver 0.15.6 (2009/??/??) - input/mms: require libmms 0.4 * archive: - zzip: require libzzip 0.13 +* tags: + - id3: allow 4 MB RIFF/AIFF tags * decoders: - ffmpeg: convert metadata - ffmpeg: align the output buffer diff --git a/src/tag_id3.c b/src/tag_id3.c index ce0386a51..0ae37f3ec 100644 --- a/src/tag_id3.c +++ b/src/tag_id3.c @@ -481,7 +481,7 @@ tag_id3_riff_aiff_load(FILE *file) if (size == 0) return NULL; - if (size > 256 * 1024) + if (size > 4 * 1024 * 1024) /* too large, don't allocate so much memory */ return NULL;