From: Christos Zoulas Date: Fri, 29 May 2015 14:21:58 +0000 (+0000) Subject: PR/449: Limit matching of mach-o multi-architecture magic X-Git-Tag: FILE5_23~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=724e39ee1a2d7020bc0c39210d0050e0f69ac3c6;p=file PR/449: Limit matching of mach-o multi-architecture magic --- diff --git a/magic/Magdir/cafebabe b/magic/Magdir/cafebabe index 74f0738d..aaa731af 100644 --- a/magic/Magdir/cafebabe +++ b/magic/Magdir/cafebabe @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: cafebabe,v 1.18 2015/02/05 19:04:03 christos Exp $ +# $File: cafebabe,v 1.19 2015/05/21 18:28:41 christos Exp $ # Cafe Babes unite! # # Since Java bytecode and Mach-O universal binaries have the same magic number, @@ -59,9 +59,11 @@ !:mime application/x-mach-binary >>>8 use mach-o \b >>>28 use mach-o \b ->>4 belong >2 +>>4 belong 2 >>>48 use mach-o \b ->>4 belong >3 +>>4 belong 3 >>>68 use mach-o \b +>>4 belong 4 +>>>88 use mach-o \b ### MACH-O END ###