SVN revision: 45200
This commit is contained in:
Sebastian Dransfeld 2010-01-15 20:51:34 +00:00
parent af22e351b2
commit 0903a5be95
1 changed files with 2 additions and 2 deletions

View File

@ -1135,9 +1135,9 @@ efreet_mime_shared_mimeinfo_magic_parse(char *data, int size)
case '~': case '~':
ptr++; ptr++;
entry->word_size = atoi(ptr); entry->word_size = atoi(ptr);
if ((entry->word_size != 0) && ((entry->word_size != 1) if ((entry->word_size != 0) && (((entry->word_size != 1)
&& (entry->word_size != 2) && (entry->word_size != 2)
&& (entry->word_size != 4) && (entry->word_size != 4))
|| (entry->value_len % entry->word_size))) || (entry->value_len % entry->word_size)))
{ {
/* Invalid, Destroy */ /* Invalid, Destroy */