From 7e24abe1270b112ba44a7fe9c576c8ae47df196a Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 18 Jun 2009 01:59:22 +0000 Subject: [PATCH] * Fix a possible segfault with a certain type of corrupted MP4 header (huge reported atom size). --- tagutils/tagutils-aac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagutils/tagutils-aac.c b/tagutils/tagutils-aac.c index 21b5c47..9a2b60b 100644 --- a/tagutils/tagutils-aac.c +++ b/tagutils/tagutils-aac.c @@ -107,7 +107,7 @@ _get_aactags(char *file, struct song_metadata *psong) current_size = ntohl(current_size); - if(current_size <= 7) // something not right + if(current_size <= 7 || current_size > 1<<24) // something not right break; if(fread(current_atom, 1, 4, fin) != 4)