* Fix a possible segfault with a certain type of corrupted MP4 header (huge reported atom size).
This commit is contained in:
parent
c304e3010a
commit
7e24abe127
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user