From 0a93396cdeab4eb96c7e21531a2d9e2dfde15a2b Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Wed, 2 Feb 2011 09:28:48 +0000 Subject: Do not parse into 'ilst' atom if size is 0. Fixes playability issue in FS#11916. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29185 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/mp4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/metadata/mp4.c b/apps/metadata/mp4.c index b3ff348..a59b3f9 100644 --- a/apps/metadata/mp4.c +++ b/apps/metadata/mp4.c @@ -596,7 +596,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3, break; case MP4_ilst: - if (handler == MP4_mdir) + /* We need at least a size of 8 to read the next atom. */ + if (handler == MP4_mdir && size>8) { rc = read_mp4_tags(fd, id3, size); size = 0; -- cgit v1.1