- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
[dragonfly/netmp.git] / contrib / file-4 / ChangeLog
blob2beffb0cfd775916180d03c7340313ef3eb21409
1 2007-12-28 15:06 Christos Zoulas <christos@zoulas.com>
3         * strtof detection
5         * remove bogus regex magic that could cause a DoS
7         * better mismatch version message
9 2007-12-27 11:35 Christos Zoulas <christos@zoulas.com>
11         * bring back some fixes from OpenBSD
13         * treat ELF dynamic objects as executables
15         * fix gcc warnings
17 2007-12-01 19:55 Christos Zoulas <christos@zoulas.com>
19         * make sure we have zlib.h and libz to compile the builtin
20           decompress code
22 2007-10-28 20:48 Christos Zoulas <christos@zoulas.com>
24         * float and double magic support (Behan Webster) 
26 2007-10-28 20:48 Christos Zoulas <christos@zoulas.com>
28         * Convert fortran to a soft test (Reuben Thomas)
30 2007-10-23  5:25 Christos Zoulas <christos@zoulas.com>
32         * Add --with-filename, and --no-filename (Reuben Thomas)
34 2007-10-23  3:59 Christos Zoulas <christos@zoulas.com>
36         * Rest of the mime split (Reuben Thomas)
38         * Make usage message generated from the flags so that
39           they stay consistent (Reuben Thomas)
41 2007-10-20  3:06 Christos Zoulas <christos@zoulas.com>
43         * typo in comment, missing ifdef QUICK, remove unneeded code
44                 (Charles Longeau)
46 2007-10-17  3:33 Christos Zoulas <christos@zoulas.com>
48         * Fix problem printing -\012 in some entries
50         * Separate magic type and encoding flags (Reuben Thomas)
52 2007-10-09  3:55 Christos Zoulas <christos@zoulas.com>
54         * configure fix for int64 and strndup (Reuben Thomas)
56 2007-09-26  4:45 Christos Zoulas <christos@zoulas.com>
58         * Add magic_descriptor() function.
60         * Fix regression in elf reading code where the core name was
61           not being printed.
63         * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
65 2007-08-19  6:30 Christos Zoulas <christos@zoulas.com>
67         * Make mime format consistent so that it can
68           be easily parsed:
69               mimetype [charset=character-set] [encoding=encoding-mime-type]
71           Remove spurious extra text from some MIME type printouts 
72           (mostly in is_tar).
74           Fix one case where -i produced nothing at all (for a 1-byte file,
75           which is now classed as application/octet-stream).
77           Remove 7/8bit classifications, since they were arbitrary
78           and not based on the file data.
80           This work was done by Reuben Thomas
82 2007-05-24 10:00 Christos Zoulas <christos@zoulas.com>
84         * Fix another integer overflow (Colin Percival)
86 2007-03-26 13:58 Christos Zoulas <christos@zoulas.com>
88         * make sure that all of struct magic_set is initialized appropriately
89           (Brett)
91 2007-03-25 17:44 Christos Zoulas <christos@zoulas.com>
93         * reset left bytes in the buffer (Dmitry V. Levin)
95         * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
96           (Peter Avalos)
98 2007-03-15 10:51 Christos Zoulas <christos@zoulas.com>
100         * fix fortran and nroff reversed tests (Dmitry V. Levin)
101         
102         * fix exclude option (Dmitry V. Levin)
104 2007-02-08 17:30 Christos Zoulas <christos@zoulas.com>
106         * fix integer underflow in file_printf which can lead to
107           to exploitable heap overflow (Jean-Sebastien Guay-Lero)
109 2007-02-05 11:35 Christos Zoulas <christos@zoulas.com>
111         * make socket/pipe reading more robust
113 2007-01-25 16:01 Christos Zoulas <christos@zoulas.com>
115         * Centralize all the tests in file_buffer.
117         * Add exclude flag.
119 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
120         
121         * Move the "type" detection code from parse() into its own table
122           driven routine.  This avoids maintaining multiple lists in
123           file.h.
125         * Add an optional conditional field (ust before the type field).
126           This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
127           likely to go away.
128         
129 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
131         * Fix an initialization bug in check_mem().
133 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
135         * Add a "default" type to print a message if nothing previously
136           matched at that level or since the last default at that
137           level.  This is useful for setting up switch-like statements.
138           It can also be used to do if/else constructions without a
139           redundant second test.
141         * Fix the "x" special case test so that one can test for that
142           string with "=x".
144         * Allow "search" to search the entire buffer if the "/N"
145           search count is missing.
147         * Make "regex" work!  It now starts its search at the
148           specified offset and takes an (optional) "/N" line count to
149           specify the search range; otherwise it searches to the end
150           of the file.  The match is now grabbed correctly for format
151           strings and the offset set to the end of the match.
153         * Add a "/s" flag to "regex" and "search" to set the offset to
154           the start of the match.  By default the offset is set to the
155           end of the match, as it is with other tests.  This is mostly
156           useful for "regex".
158         * Make "search", "string" and "pstring" use the same
159           file_strncmp() routine so that they support the same flags;
160           "bestring16" and "lestring16" call the same routine, but
161           with flags = 0.  Also add a "/C" flag (in analogy to "/c")
162           to ignore the case on uppercase (lowercase) characters in
163           the test string.
165         * Strict adherence to C style string escapes.  A warnings are
166           printed when compiling.  Note: previously "\a" was
167           incorrectly translated to 'a' instead of an <alert> (i.e.,
168           BELL, typically 0x07).
170         * Make this compile with "-Wall -Wextra" and all the warning
171           flags used with WARNS=4 in the NetBSD source.  Also make it
172           pass lint.
174         * Many "cleanups" and hopefully not too many new bugs!
176 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
178         * make several more files compile with gcc warnings
179           on and also make them pass lint.
181 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
183         * fix a puts()/putc() usage goof in file.c
185         * make file.c compile with gcc warnings and pass lint
187 2006-12-11 16:49 Christos Zoulas <christos@zoulas.com>
189         * fix byteswapping issue
191         * report the number of bytes we tried to
192           allocate when allocation fails
194         * add a few missed cases in the strength routine
196 2006-12-08 16:32 Christos Zoulas <christos@zoulas.com>
198         * store and print the line number of the magic
199           entry for debugging.         
201         * if the magic entry did not print anything,
202           don't treat it as a match
204         * change the magic strength algorithm to take
205           into account the relationship op.
207         * fix a bug in search where we could accidentally
208           return a match.
210         * propagate the error return from match to
211           file_softmagic.
213 2006-11-25 13:35 Christos Zoulas <christos@zoulas.com>
214         
215         * Don't store the current offset in the magic
216           struct, because it needs to be restored and
217           it was not done properly all the time. Bug
218           found by: Arkadiusz Miskiewicz
220         * Fix problem in the '\0' separator; and don't
221           print it as an additional separator; print
222           it as the only separator.
224 2006-11-17 10:51 Christos Zoulas <christos@zoulas.com>
226         * Added a -0 option to print a '\0' separator
227           Etienne Buira <etienne.buira@free.fr>
229 2006-10-31 15:14 Christos Zoulas <christos@zoulas.com>
231         * Check offset before copying (Mike Frysinger)
233         * merge duplicated code
235         * add quad date support
237         * make sure that we nul terminate desc (Ryoji Kanai)
239         * don't process elf notes multiple times
241         * allow -z to report empty compressed files
243         * use calloc to initialize the ascii buffers (Jos van den Oever)
245 2006-06-08 11:11 Christos Zoulas <christos@zoulas.com>
247         * QNX fixes (Mike Gorchak)
249         * Add quad support.
251         * FIFO checks (Dr. Werner Fink)
253         * Linux ELF fixes (Dr. Werner Fink)
255         * Magic format checks (Dr. Werner Fink)
257         * Magic format function improvent (Karl Chen)
259 2006-05-03 11:11 Christos Zoulas <christos@zoulas.com>
261         * Pick up some elf changes and some constant fixes from SUSE
263         * Identify gnu tar vs. posix tar
265         * When keep going, don't print spurious newlines (Radek Vokál)
267 2006-04-01 12:02 Christos Zoulas <christos@zoulas.com>
269         * Use calloc instead of malloc (Mike Frysinger)
271         * Fix configure script to detect wctypes.h (Mike Frysinger)
273 2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
275         * Print empty if the file is (Mike Frysinger)
277         * Don't try to read past the end of the buffer (Mike Frysinger)
279         * Sort magic entries by strength [experimental]
281 2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
283         * Use iswprint() to convert the output string.
284             (Bastien Nocera)
286 2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
288         * Fix regression where the core info was not completely processed
289             (Radek Vokál)
291 2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
293         * Middle Endian magic (Diomidis Spinellis)
295 2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
297         * Open with O_BINARY for CYGWIN (Corinna Vinschen)
299         * Don't close stdin (Arkadiusz Miskiewicz)
301         * Look for note sections in non executables.
303 2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
304         
305         * Don't print SVR4 Style in core files multiple times
306             (Radek Vokál)
308 2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
310         * Cygwin changes Corinna Vinschen
312 2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
314         * Remove erroreous mention of /etc/magic in the file man page
315           This is gentoo bug 101639. (Mike Frysinger) 
317         * Cross-compile support and detection (Mike Frysinger) 
319 2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
321         * Add -h flag and dereference symlinks if POSIXLY_CORRECT
322           is set.
324 2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
326         * Avoid search and regex buffer overflows (Kelledin)
328 2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
330         * Provide stub implementations for {v,}nsprintf() for older
331           OS's that don't have them.
332         * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
333           to AC_TYPE_MBSTATE_T.
335 2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
337         * Dynamically allocate the string buffers and make the
338           default read size 256K.
340 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
342         * Dragonfly ELF note support
344 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
346         * Avoid NULL pointer dereference in time conversion.
348 2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
349         
350         * Add indirect magic offset support, and search mode.
352 2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
354         * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
355           If a CRLF text file happens to have CR at offset HOWMANY - 1
356           (currently 0xffff), it should not be counted as CR line
357           terminator.
358           If a line has length exactly MAXLINELEN, it should not yet be
359           treated as a ``very long line'', as MAXLINELEN is ``longest sane
360           line length''.
361           With CRLF, the line length was not computed correctly, and even
362           lines of length MAXLINELEN - 1 were treated as ``very long''.
364 2004-12-07 14:15  Christos Zoulas  <christos@zoulas.com>
366         * bzip2 needs a lot of input buffer space on some files
367           before it can begin uncompressing. This makes file -z
368           fail on some bz2 files. Fix it by giving it a copy of
369           the file descriptor to read as much as it wants if we
370           have access to it. <christos@zoulas.com>
372 2004-11-24 12:39  Christos Zoulas  <christos@zoulas.com>
374         * Stack smash fix, and ELF more conservative reading.
375           Jakub Bogusz <qboosh@pld-linux.org>
377 2004-11-20 18:50  Christos Zoulas  <christos@zoulas.com>
379         * New FreeBSD version parsing code:
380           Jon Noack <noackjr@alumni.rice.edu>
382         * Hackish support for ucs16 strings <christos@zoulas.com>
384 2004-11-13 03:07  Christos Zoulas  <christos@zoulas.com>
386         * print the file name and line number in syntax errors.
388 2004 10-12 10:50  Christos Zoulas  <christos@zoulas.com>
390         * Fix stack overwriting on 0 length strings: Tim Waugh
391             <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
393 2004-09-27 11:30  Christos Zoulas  <christos@zoulas.com>
395         * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
397         * Fix small memory leaks; caught by: Tamas Sarlos 
398             <stamas@csillag.ilab.sztaki.hu>
400 2004-07-24 16:33  Christos Zoulas  <christos@zoulas.com>
402         * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 
404         * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
406         * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
408         * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
410 2004-04-12 10:55  Christos Zoulas  <christos@zoulas.com>
412         * make sure that magic formats match magic types during compilation
414         * fix broken sgi magic file
416 2004-04-06 20:36  Christos Zoulas  <christos@zoulas.com>
418         * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
420         * magic fixes
422 2004-03-22 15:25  Christos Zoulas  <christos@zoulas.com>
424         * Lots of mime fixes
425           (Joerg Ostertag) <ostertag@rechengilde.de>
427         * FreeBSD ELF version handling
428           (Edwin Groothuis) <edwin@mavetju.org>
430         * correct cleanup in all cases; don't just close the file.
431           (Christos Zoulas) <christos@zoulas.com>
433         * add gettext message catalogue support
434           (Michael Piefel) <piefel@debian.org>
436         * better printout for unreadable files
437           (Michael Piefel) <piefel@debian.org>
439         * compensate for missing MAXPATHLEN
440           (Michael Piefel) <piefel@debian.org>
442         * add wide character string length computation
443           (Michael Piefel) <piefel@debian.org>
445         * Avoid infinite loops caused by bad elf alignments
446           or name and description note sizes. Reported by
447           (Mikael Magnusson) <mmikael@comhem.se>
449 2004-03-09 13:55  Christos Zoulas  <christos@zoulas.com>
451         * Fix possible memory leak on error and add missing regfree
452           (Dmitry V. Levin) <ldv@altlinux.org>
454 2003-12-23 12:12  Christos Zoulas  <christos@zoulas.com>
456         * fix -k flag (Maciej W. Rozycki)
458 2003-11-18 14:10  Christos Zoulas  <christos@zoulas.com>
460         * Try to give us much info as possible on corrupt elf files.
461           (Willy Tarreau) <willy@w.ods.org>
462         * Updated python bindings (Brett Funderburg)
463            <brettf@deepfile.com>
465 2003-11-11 15:03  Christos Zoulas  <christos@zoulas.com>
467         * Include file.h first, because it includes config.h
468           breaks largefile test macros otherwise.
469           (Paul Eggert <eggert@CS.UCLA.EDU> via
470            Lars Hecking <lhecking@nmrc.ie>)
472 2003-10-14 21:39  Christos Zoulas  <christos@zoulas.com>
474         * Python bindings (Brett Funderburg) <brettf@deepfile.com>
475         * Don't lookup past the end of the buffer
476           (Chad Hanson) <chanson@tcs-sec.com>
477         * Add MAGIC_ERROR and api on magic_errno()
479 2003-10-08 12:40  Christos Zoulas  <christos@zoulas.com>
481         * handle error conditions from compile as fatal
482           (Antti Kantee) <pooka@netbsd.org>
483         * handle magic filename parsing sanely
484         * more magic fixes.
485         * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
486         * describe magic file handling
487           (Bryan Henderson) <bryanh@giraffe-data.com>
489 2003-09-12 15:09  Christos Zoulas  <christos@zoulas.com>
491         * update magic files.
492         * remove largefile support from file.h; it breaks things on most OS's
494 2003-08-10 10:25  Christos Zoulas  <christos@zoulas.com>
496         * fix unmapping'ing of mmaped files.
498 2003-07-10 12:03  Christos Zoulas  <christos@zoulas.com>
500         * don't exit with -1 on error; always exit 1 (Marty Leisner)
501         * restore utimes code.
503 2003-06-10 17:03  Christos Zoulas  <christos@zoulas.com>
505         * make sure we don't access uninitialized memory.
506         * pass lint
507         * #ifdef __cplusplus in magic.h
509 2003-05-25 19:23  Christos Zoulas  <christos@zoulas.com>
511         * rename cvs magic file to revision to deal with
512           case insensitive filesystems.
514 2003-05-23 17:03  Christos Zoulas  <christos@zoulas.com>
516         * documentation fixes from Michael Piefel <piefel@debian.org>
517         * magic fixes (various)
518         * revert basename magic in .mgc name determination
519         * buffer protection in uncompress,
520           signness issues,
521           close files
522           Maciej W. Rozycki <macro@ds2.pg.gda.pl
524 2003-04-21 20:12  Christos Zoulas  <christos@zoulas.com>
526         * fix zsh magic
528 2003-04-04 16:59  Christos Zoulas  <christos@zoulas.com>
530         * fix operand sort order in string.
532 2003-04-02 17:30  Christos Zoulas  <christos@zoulas.com>
534         * cleanup namespace in magic.h
536 2003-04-02 13:50  Christos Zoulas  <christos@zoulas.com>
538         * Magic additions (Alex Ott)
539         * Fix bug that broke VPATH compilation (Peter Breitenlohner)
541 2003-03-28 16:03  Christos Zoulas  <christos@zoulas.com>
543         * remove packed attribute from magic struct.
544         * make the magic struct properly aligned.
545         * bump version number of compiled files to 2.
547 2003-03-27 13:10  Christos Zoulas  <christos@zoulas.com>
549         * separate tar detection and run it before softmagic.
550         * fix reversed symlink test.
551         * fix version printing.
552         * make separator a string instead of a char.
553         * update manual page and sort options.
555 2003-03-26 11:00  Christos Zoulas  <christos@zoulas.com>
557         * Pass lint
558         * make NULL in magic_file mean stdin
559         * Fix "-" argument to file to pass NULL to magic_file
560         * avoid pointer casts by using memcpy
561         * rename magic_buf -> magic_buffer
562         * keep only the first error
563         * manual page: new sentence, new line
564         * fix typo in api function (magic_buf -> magic_buffer)