* Fix a possible segfault with a certain type of corrupted MP4 header (huge reported atom size).

This commit is contained in:
Justin Maggard 2009-06-18 01:59:22 +00:00
parent c304e3010a
commit 7e24abe127

View File

@ -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)