From owner-freebsd-arch@FreeBSD.ORG  Thu May 24 07:42:37 2007
Return-Path: <owner-freebsd-arch@FreeBSD.ORG>
X-Original-To: freebsd-arch@freebsd.org
Delivered-To: freebsd-arch@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4556516A468;
	Thu, 24 May 2007 07:42:37 +0000 (UTC) (envelope-from imp@bsdimp.com)
Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85])
	by mx1.freebsd.org (Postfix) with ESMTP id 0304313C465;
	Thu, 24 May 2007 07:42:36 +0000 (UTC) (envelope-from imp@bsdimp.com)
Received: from localhost (localhost [127.0.0.1])
	by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4O7fI9W081827;
	Thu, 24 May 2007 01:41:18 -0600 (MDT) (envelope-from imp@bsdimp.com)
Date: Thu, 24 May 2007 01:41:31 -0600 (MDT)
Message-Id: <20070524.014131.756908450.imp@bsdimp.com>
To: cperciva@freebsd.org
From: "M. Warner Losh" <imp@bsdimp.com>
In-Reply-To: <46553A6B.7070904@freebsd.org>
References: <20070523213251.GA14733@keltia.freenix.fr>
	<20070523.161038.-1989860747.imp@bsdimp.com>
	<46553A6B.7070904@freebsd.org>
X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0
	(harmony.bsdimp.com [127.0.0.1]);
	Thu, 24 May 2007 01:41:19 -0600 (MDT)
Cc: freebsd-arch@freebsd.org
Subject: Re: RFC: Removing file(1)+libmagic(3) from the base system
X-BeenThere: freebsd-arch@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussion related to FreeBSD architecture <freebsd-arch.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-arch>,
	<mailto:freebsd-arch-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arch>
List-Post: <mailto:freebsd-arch@freebsd.org>
List-Help: <mailto:freebsd-arch-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-arch>,
	<mailto:freebsd-arch-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2007 07:42:37 -0000

In message: <46553A6B.7070904@freebsd.org>
            Colin Percival <cperciva@freebsd.org> writes:
: > I guess I fail to see how this is any different than the .gz bugs that
: > were found a while ago.  Nobody suggested removing .gz from the tree
: > because a few bugs were found.  Everybody suggested updating right
: > away to fix those bugs.  File is no different, and really should
: > remain in the tree.
: 
: Deflate is one file format which is used quite often.  File parses several
: different formats, including several which are not tested often (i.e., have
: a much higher chance of including parse bugs).

Now you are really reaching...  File does it work by reading in meta
data (in one format, well tested) that describes how to parse the
files using a simple meta-language to describe offsets.  I think you
are really reaching here, unless you can show some conclusive evidence
to support that this can cause problems (apart from core dumps from
memory exhaustion, and the like).  Can you point to one of the magic
meta files that has a description so complex that it will likely cause
these kinds of things to happen?

Warner