Fix read-only build of cc41.
[dragonfly/port-amd64.git] / contrib / file-4 / ChangeLog
blobe2c8418e371f8fe2072ab74b632cfc68348ae800
1 2007-05-24 10:00 Christos Zoulas <christos@zoulas.com>
3         * Fix another integer overflow (Colin Percival)
5 2007-03-26 13:58 Christos Zoulas <christos@zoulas.com>
7         * make sure that all of struct magic_set is initialized appropriately
8           (Brett)
10 2007-03-25 17:44 Christos Zoulas <christos@zoulas.com>
12         * reset left bytes in the buffer (Dmitry V. Levin)
14         * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
15           (Peter Avalos)
17 2007-03-15 10:51 Christos Zoulas <christos@zoulas.com>
19         * fix fortran and nroff reversed tests (Dmitry V. Levin)
20         
21         * fix exclude option (Dmitry V. Levin)
23 2007-02-08 17:30 Christos Zoulas <christos@zoulas.com>
25         * fix integer underflow in file_printf which can lead to
26           to exploitable heap overflow (Jean-Sebastien Guay-Lero)
28 2007-02-05 11:35 Christos Zoulas <christos@zoulas.com>
30         * make socket/pipe reading more robust
32 2007-01-25 16:01 Christos Zoulas <christos@zoulas.com>
34         * Centralize all the tests in file_buffer.
36         * Add exclude flag.
38 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
39         
40         * Move the "type" detection code from parse() into its own table
41           driven routine.  This avoids maintaining multiple lists in
42           file.h.
44         * Add an optional conditional field (ust before the type field).
45           This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
46           likely to go away.
47         
48 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
50         * Fix an initialization bug in check_mem().
52 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
54         * Add a "default" type to print a message if nothing previously
55           matched at that level or since the last default at that
56           level.  This is useful for setting up switch-like statements.
57           It can also be used to do if/else constructions without a
58           redundant second test.
60         * Fix the "x" special case test so that one can test for that
61           string with "=x".
63         * Allow "search" to search the entire buffer if the "/N"
64           search count is missing.
66         * Make "regex" work!  It now starts its search at the
67           specified offset and takes an (optional) "/N" line count to
68           specify the search range; otherwise it searches to the end
69           of the file.  The match is now grabbed correctly for format
70           strings and the offset set to the end of the match.
72         * Add a "/s" flag to "regex" and "search" to set the offset to
73           the start of the match.  By default the offset is set to the
74           end of the match, as it is with other tests.  This is mostly
75           useful for "regex".
77         * Make "search", "string" and "pstring" use the same
78           file_strncmp() routine so that they support the same flags;
79           "bestring16" and "lestring16" call the same routine, but
80           with flags = 0.  Also add a "/C" flag (in analogy to "/c")
81           to ignore the case on uppercase (lowercase) characters in
82           the test string.
84         * Strict adherence to C style string escapes.  A warnings are
85           printed when compiling.  Note: previously "\a" was
86           incorrectly translated to 'a' instead of an <alert> (i.e.,
87           BELL, typically 0x07).
89         * Make this compile with "-Wall -Wextra" and all the warning
90           flags used with WARNS=4 in the NetBSD source.  Also make it
91           pass lint.
93         * Many "cleanups" and hopefully not too many new bugs!
95 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
97         * make several more files compile with gcc warnings
98           on and also make them pass lint.
100 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
102         * fix a puts()/putc() usage goof in file.c
104         * make file.c compile with gcc warnings and pass lint
106 2006-12-11 16:49 Christos Zoulas <christos@zoulas.com>
108         * fix byteswapping issue
110         * report the number of bytes we tried to
111           allocate when allocation fails
113         * add a few missed cases in the strength routine
115 2006-12-08 16:32 Christos Zoulas <christos@zoulas.com>
117         * store and print the line number of the magic
118           entry for debugging.         
120         * if the magic entry did not print anything,
121           don't treat it as a match
123         * change the magic strength algorithm to take
124           into account the relationship op.
126         * fix a bug in search where we could accidentally
127           return a match.
129         * propagate the error return from match to
130           file_softmagic.
132 2006-11-25 13:35 Christos Zoulas <christos@zoulas.com>
133         
134         * Don't store the current offset in the magic
135           struct, because it needs to be restored and
136           it was not done properly all the time. Bug
137           found by: Arkadiusz Miskiewicz
139         * Fix problem in the '\0' separator; and don't
140           print it as an additional separator; print
141           it as the only separator.
143 2006-11-17 10:51 Christos Zoulas <christos@zoulas.com>
145         * Added a -0 option to print a '\0' separator
146           Etienne Buira <etienne.buira@free.fr>
148 2006-10-31 15:14 Christos Zoulas <christos@zoulas.com>
150         * Check offset before copying (Mike Frysinger)
152         * merge duplicated code
154         * add quad date support
156         * make sure that we nul terminate desc (Ryoji Kanai)
158         * don't process elf notes multiple times
160         * allow -z to report empty compressed files
162         * use calloc to initialize the ascii buffers (Jos van den Oever)
164 2006-06-08 11:11 Christos Zoulas <christos@zoulas.com>
166         * QNX fixes (Mike Gorchak)
168         * Add quad support.
170         * FIFO checks (Dr. Werner Fink)
172         * Linux ELF fixes (Dr. Werner Fink)
174         * Magic format checks (Dr. Werner Fink)
176         * Magic format function improvent (Karl Chen)
178 2006-05-03 11:11 Christos Zoulas <christos@zoulas.com>
180         * Pick up some elf changes and some constant fixes from SUSE
182         * Identify gnu tar vs. posix tar
184         * When keep going, don't print spurious newlines (Radek Vokál)
186 2006-04-01 12:02 Christos Zoulas <christos@zoulas.com>
188         * Use calloc instead of malloc (Mike Frysinger)
190         * Fix configure script to detect wctypes.h (Mike Frysinger)
192 2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
194         * Print empty if the file is (Mike Frysinger)
196         * Don't try to read past the end of the buffer (Mike Frysinger)
198         * Sort magic entries by strength [experimental]
200 2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
202         * Use iswprint() to convert the output string.
203             (Bastien Nocera)
205 2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
207         * Fix regression where the core info was not completely processed
208             (Radek Vokál)
210 2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
212         * Middle Endian magic (Diomidis Spinellis)
214 2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
216         * Open with O_BINARY for CYGWIN (Corinna Vinschen)
218         * Don't close stdin (Arkadiusz Miskiewicz)
220         * Look for note sections in non executables.
222 2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
223         
224         * Don't print SVR4 Style in core files multiple times
225             (Radek Vokál)
227 2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
229         * Cygwin changes Corinna Vinschen
231 2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
233         * Remove erroreous mention of /etc/magic in the file man page
234           This is gentoo bug 101639. (Mike Frysinger) 
236         * Cross-compile support and detection (Mike Frysinger) 
238 2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
240         * Add -h flag and dereference symlinks if POSIXLY_CORRECT
241           is set.
243 2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
245         * Avoid search and regex buffer overflows (Kelledin)
247 2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
249         * Provide stub implementations for {v,}nsprintf() for older
250           OS's that don't have them.
251         * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
252           to AC_TYPE_MBSTATE_T.
254 2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
256         * Dynamically allocate the string buffers and make the
257           default read size 256K.
259 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
261         * Dragonfly ELF note support
263 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
265         * Avoid NULL pointer dereference in time conversion.
267 2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
268         
269         * Add indirect magic offset support, and search mode.
271 2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
273         * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
274           If a CRLF text file happens to have CR at offset HOWMANY - 1
275           (currently 0xffff), it should not be counted as CR line
276           terminator.
277           If a line has length exactly MAXLINELEN, it should not yet be
278           treated as a ``very long line'', as MAXLINELEN is ``longest sane
279           line length''.
280           With CRLF, the line length was not computed correctly, and even
281           lines of length MAXLINELEN - 1 were treated as ``very long''.
283 2004-12-07 14:15  Christos Zoulas  <christos@zoulas.com>
285         * bzip2 needs a lot of input buffer space on some files
286           before it can begin uncompressing. This makes file -z
287           fail on some bz2 files. Fix it by giving it a copy of
288           the file descriptor to read as much as it wants if we
289           have access to it. <christos@zoulas.com>
291 2004-11-24 12:39  Christos Zoulas  <christos@zoulas.com>
293         * Stack smash fix, and ELF more conservative reading.
294           Jakub Bogusz <qboosh@pld-linux.org>
296 2004-11-20 18:50  Christos Zoulas  <christos@zoulas.com>
298         * New FreeBSD version parsing code:
299           Jon Noack <noackjr@alumni.rice.edu>
301         * Hackish support for ucs16 strings <christos@zoulas.com>
303 2004-11-13 03:07  Christos Zoulas  <christos@zoulas.com>
305         * print the file name and line number in syntax errors.
307 2004 10-12 10:50  Christos Zoulas  <christos@zoulas.com>
309         * Fix stack overwriting on 0 length strings: Tim Waugh
310             <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
312 2004-09-27 11:30  Christos Zoulas  <christos@zoulas.com>
314         * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
316         * Fix small memory leaks; caught by: Tamas Sarlos 
317             <stamas@csillag.ilab.sztaki.hu>
319 2004-07-24 16:33  Christos Zoulas  <christos@zoulas.com>
321         * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 
323         * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
325         * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
327         * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
329 2004-04-12 10:55  Christos Zoulas  <christos@zoulas.com>
331         * make sure that magic formats match magic types during compilation
333         * fix broken sgi magic file
335 2004-04-06 20:36  Christos Zoulas  <christos@zoulas.com>
337         * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
339         * magic fixes
341 2004-03-22 15:25  Christos Zoulas  <christos@zoulas.com>
343         * Lots of mime fixes
344           (Joerg Ostertag) <ostertag@rechengilde.de>
346         * FreeBSD ELF version handling
347           (Edwin Groothuis) <edwin@mavetju.org>
349         * correct cleanup in all cases; don't just close the file.
350           (Christos Zoulas) <christos@zoulas.com>
352         * add gettext message catalogue support
353           (Michael Piefel) <piefel@debian.org>
355         * better printout for unreadable files
356           (Michael Piefel) <piefel@debian.org>
358         * compensate for missing MAXPATHLEN
359           (Michael Piefel) <piefel@debian.org>
361         * add wide character string length computation
362           (Michael Piefel) <piefel@debian.org>
364         * Avoid infinite loops caused by bad elf alignments
365           or name and description note sizes. Reported by
366           (Mikael Magnusson) <mmikael@comhem.se>
368 2004-03-09 13:55  Christos Zoulas  <christos@zoulas.com>
370         * Fix possible memory leak on error and add missing regfree
371           (Dmitry V. Levin) <ldv@altlinux.org>
373 2003-12-23 12:12  Christos Zoulas  <christos@zoulas.com>
375         * fix -k flag (Maciej W. Rozycki)
377 2003-11-18 14:10  Christos Zoulas  <christos@zoulas.com>
379         * Try to give us much info as possible on corrupt elf files.
380           (Willy Tarreau) <willy@w.ods.org>
381         * Updated python bindings (Brett Funderburg)
382            <brettf@deepfile.com>
384 2003-11-11 15:03  Christos Zoulas  <christos@zoulas.com>
386         * Include file.h first, because it includes config.h
387           breaks largefile test macros otherwise.
388           (Paul Eggert <eggert@CS.UCLA.EDU> via
389            Lars Hecking <lhecking@nmrc.ie>)
391 2003-10-14 21:39  Christos Zoulas  <christos@zoulas.com>
393         * Python bindings (Brett Funderburg) <brettf@deepfile.com>
394         * Don't lookup past the end of the buffer
395           (Chad Hanson) <chanson@tcs-sec.com>
396         * Add MAGIC_ERROR and api on magic_errno()
398 2003-10-08 12:40  Christos Zoulas  <christos@zoulas.com>
400         * handle error conditions from compile as fatal
401           (Antti Kantee) <pooka@netbsd.org>
402         * handle magic filename parsing sanely
403         * more magic fixes.
404         * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
405         * describe magic file handling
406           (Bryan Henderson) <bryanh@giraffe-data.com>
408 2003-09-12 15:09  Christos Zoulas  <christos@zoulas.com>
410         * update magic files.
411         * remove largefile support from file.h; it breaks things on most OS's
413 2003-08-10 10:25  Christos Zoulas  <christos@zoulas.com>
415         * fix unmapping'ing of mmaped files.
417 2003-07-10 12:03  Christos Zoulas  <christos@zoulas.com>
419         * don't exit with -1 on error; always exit 1 (Marty Leisner)
420         * restore utimes code.
422 2003-06-10 17:03  Christos Zoulas  <christos@zoulas.com>
424         * make sure we don't access uninitialized memory.
425         * pass lint
426         * #ifdef __cplusplus in magic.h
428 2003-05-25 19:23  Christos Zoulas  <christos@zoulas.com>
430         * rename cvs magic file to revision to deal with
431           case insensitive filesystems.
433 2003-05-23 17:03  Christos Zoulas  <christos@zoulas.com>
435         * documentation fixes from Michael Piefel <piefel@debian.org>
436         * magic fixes (various)
437         * revert basename magic in .mgc name determination
438         * buffer protection in uncompress,
439           signness issues,
440           close files
441           Maciej W. Rozycki <macro@ds2.pg.gda.pl
443 2003-04-21 20:12  Christos Zoulas  <christos@zoulas.com>
445         * fix zsh magic
447 2003-04-04 16:59  Christos Zoulas  <christos@zoulas.com>
449         * fix operand sort order in string.
451 2003-04-02 17:30  Christos Zoulas  <christos@zoulas.com>
453         * cleanup namespace in magic.h
455 2003-04-02 13:50  Christos Zoulas  <christos@zoulas.com>
457         * Magic additions (Alex Ott)
458         * Fix bug that broke VPATH compilation (Peter Breitenlohner)
460 2003-03-28 16:03  Christos Zoulas  <christos@zoulas.com>
462         * remove packed attribute from magic struct.
463         * make the magic struct properly aligned.
464         * bump version number of compiled files to 2.
466 2003-03-27 13:10  Christos Zoulas  <christos@zoulas.com>
468         * separate tar detection and run it before softmagic.
469         * fix reversed symlink test.
470         * fix version printing.
471         * make separator a string instead of a char.
472         * update manual page and sort options.
474 2003-03-26 11:00  Christos Zoulas  <christos@zoulas.com>
476         * Pass lint
477         * make NULL in magic_file mean stdin
478         * Fix "-" argument to file to pass NULL to magic_file
479         * avoid pointer casts by using memcpy
480         * rename magic_buf -> magic_buffer
481         * keep only the first error
482         * manual page: new sentence, new line
483         * fix typo in api function (magic_buf -> magic_buffer)