From f8120136c61c9f690716941ee20ab60bd9be5b0e Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 14 Feb 2015 17:24:30 +0000 Subject: [PATCH] Bump buffer size --- ChangeLog | 4 ++++ doc/file.man | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index da81f576..9ee8a1ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-02-14 12:23 Christos Zoulas + + * Bump file search buffer size to 1M. + 2015-01-09 14:35 Christos Zoulas * Fix multiple issues with date formats reported by Christoph Biedl: diff --git a/doc/file.man b/doc/file.man index 07b32db5..39d541a7 100644 --- a/doc/file.man +++ b/doc/file.man @@ -1,5 +1,5 @@ -.\" $File: file.man,v 1.110 2014/11/28 02:46:39 christos Exp $ -.Dd December 16, 2014 +.\" $File: file.man,v 1.111 2014/12/16 23:18:40 christos Exp $ +.Dd February 14, 2015 .Dt FILE __CSECTION__ .Os .Sh NAME @@ -599,7 +599,7 @@ Add syntax for relative offsets after current level (Debian bug #466037). Make file -ki work, i.e. give multiple MIME types. .Pp Add a zip library so we can peek inside Office2007 documents to -figure out what they are. +print more details about their contents. .Pp Add an option to print URLs for the sources of the file descriptions. .Pp @@ -626,6 +626,15 @@ Make more efficient by keeping a sorted list of names. Special-case ^ to flip endianness in the parser so that it does not have to be escaped, and document it. +.Pp +If the offsets specified internally in the file exceed the buffer size +( +.Dv HOWMANY +variable in file.h), then we don't seek to that offset, but we give up. +It would be better if buffer managements was done when the file descriptor +is available so move around the file. +One must be careful though because this has performance (and thus security +considerations). .Sh AVAILABILITY You can obtain the original author's latest version by anonymous FTP on -- 2.40.0