diff -uprk.orig file-4.10.orig/src/softmagic.c file-4.10/src/softmagic.c --- file-4.10.orig/src/softmagic.c 2004-07-25 00:38:56 +0400 +++ file-4.10/src/softmagic.c 2004-10-17 01:32:08 +0400 @@ -133,7 +133,7 @@ match(struct magic_set *ms, struct magic * main entry didn't match, * flush its continuations */ - while (magindex < nmagic - 1 && + while (magindex + 1 < nmagic && magic[magindex + 1].cont_level != 0) magindex++; continue;