File 0001-prevent-infinite-recursion.patch of Package file.openSUSE_Evergreen_11.4

Based on 3c081560c23f20b2985c285338b52c7aae9fdb0f Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
Date: Tue, 11 Feb 2014 15:41:25 +0000
Subject: [PATCH] prevent infinite recursion.

--- src/softmagic.c
+++ src/softmagic.c	2014-03-04 13:09:53.642735576 +0000
@@ -1578,6 +1578,8 @@ mget(struct magic_set *ms, const unsigne
 		break;
 
 	case FILE_INDIRECT:
+		if (offset == 0)
+			return 0;
 		if (OFFSET_OOB(nbytes, offset, 0))
 			return 0;
 	  	if ((ms->flags & (MAGIC_MIME|MAGIC_APPLE)) == 0 &&