ChangeLog revision 159764
1159764Sobrien2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
2159764Sobrien
3159764Sobrien	* Print empty if the file is (Mike Frysinger)
4159764Sobrien
5159764Sobrien	* Don't try to read past the end of the buffer (Mike Frysinger)
6159764Sobrien
7159764Sobrien	* Sort magic entries by strength [experimental]
8159764Sobrien
9159764Sobrien2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
10159764Sobrien
11159764Sobrien	* Use iswprint() to convert the output string.
12159764Sobrien	    (Bastien Nocera)
13159764Sobrien
14159764Sobrien2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
15159764Sobrien
16159764Sobrien	* Fix regression where the core info was not completely processed
17159764Sobrien	    (Radek Vok�l)
18159764Sobrien
19159764Sobrien2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
20159764Sobrien
21159764Sobrien	* Middle Endian magic (Diomidis Spinellis)
22159764Sobrien
23159764Sobrien2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
24159764Sobrien
25159764Sobrien	* Open with O_BINARY for CYGWIN (Corinna Vinschen)
26159764Sobrien
27159764Sobrien	* Don't close stdin (Arkadiusz Miskiewicz)
28159764Sobrien
29159764Sobrien	* Look for note sections in non executables.
30159764Sobrien
31159764Sobrien2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
32159764Sobrien	
33159764Sobrien	* Don't print SVR4 Style in core files multiple times
34159764Sobrien	    (Radek Vok�l)
35159764Sobrien
36159764Sobrien2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
37159764Sobrien
38159764Sobrien	* Cygwin changes Corinna Vinschen
39159764Sobrien
40159764Sobrien2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
41159764Sobrien
42159764Sobrien	* Remove erroreous mention of /etc/magic in the file man page
43159764Sobrien	  This is gentoo bug 101639. (Mike Frysinger) 
44159764Sobrien
45159764Sobrien	* Cross-compile support and detection (Mike Frysinger) 
46159764Sobrien
47159764Sobrien2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
48159764Sobrien
49159764Sobrien	* Add -h flag and dereference symlinks if POSIXLY_CORRECT
50159764Sobrien	  is set.
51159764Sobrien
52159764Sobrien2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
53159764Sobrien
54159764Sobrien	* Avoid search and regex buffer overflows (Kelledin)
55159764Sobrien
56159764Sobrien2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
57159764Sobrien
58159764Sobrien	* Provide stub implementations for {v,}nsprintf() for older
59159764Sobrien	  OS's that don't have them.
60159764Sobrien	* Change mbstate_t autoconf detection macro from AC_MBSTATE_T
61159764Sobrien	  to AC_TYPE_MBSTATE_T.
62159764Sobrien
63159764Sobrien2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
64159764Sobrien
65159764Sobrien	* Dynamically allocate the string buffers and make the
66159764Sobrien	  default read size 256K.
67159764Sobrien
68159764Sobrien2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
69159764Sobrien
70159764Sobrien	* Dragonfly ELF note support
71159764Sobrien
72159764Sobrien2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
73159764Sobrien
74159764Sobrien	* Avoid NULL pointer dereference in time conversion.
75159764Sobrien
76159764Sobrien2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
77159764Sobrien	
78159764Sobrien	* Add indirect magic offset support, and search mode.
79159764Sobrien
80159764Sobrien2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
81159764Sobrien
82159764Sobrien        * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
83159764Sobrien          If a CRLF text file happens to have CR at offset HOWMANY - 1
84159764Sobrien          (currently 0xffff), it should not be counted as CR line
85159764Sobrien          terminator.
86159764Sobrien          If a line has length exactly MAXLINELEN, it should not yet be
87159764Sobrien          treated as a ``very long line'', as MAXLINELEN is ``longest sane
88159764Sobrien          line length''.
89159764Sobrien          With CRLF, the line length was not computed correctly, and even
90159764Sobrien          lines of length MAXLINELEN - 1 were treated as ``very long''.
91159764Sobrien
92159764Sobrien2004-12-07 14:15  Christos Zoulas  <christos@zoulas.com>
93159764Sobrien
94159764Sobrien	* bzip2 needs a lot of input buffer space on some files
95159764Sobrien	  before it can begin uncompressing. This makes file -z
96159764Sobrien	  fail on some bz2 files. Fix it by giving it a copy of
97159764Sobrien	  the file descriptor to read as much as it wants if we
98159764Sobrien	  have access to it. <christos@zoulas.com>
99159764Sobrien
100139368Sobrien2004-11-24 12:39  Christos Zoulas  <christos@zoulas.com>
101133359Sobrien
102139368Sobrien	* Stack smash fix, and ELF more conservative reading.
103139368Sobrien	  Jakub Bogusz <qboosh@pld-linux.org>
104139368Sobrien
105139368Sobrien2004-11-20 18:50  Christos Zoulas  <christos@zoulas.com>
106139368Sobrien
107139368Sobrien	* New FreeBSD version parsing code:
108139368Sobrien	  Jon Noack <noackjr@alumni.rice.edu>
109139368Sobrien
110139368Sobrien	* Hackish support for ucs16 strings <christos@zoulas.com>
111139368Sobrien
112139368Sobrien2004-11-13 03:07  Christos Zoulas  <christos@zoulas.com>
113139368Sobrien
114139368Sobrien	* print the file name and line number in syntax errors.
115139368Sobrien
116139368Sobrien2004 10-12 10:50  Christos Zoulas  <christos@zoulas.com>
117139368Sobrien
118139368Sobrien	* Fix stack overwriting on 0 length strings: Tim Waugh
119139368Sobrien	    <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
120139368Sobrien
121139368Sobrien2004-09-27 11:30  Christos Zoulas  <christos@zoulas.com>
122139368Sobrien
123139368Sobrien	* Remove 3rd and 4th copyright clause; approved by Ian Darwin.
124139368Sobrien
125139368Sobrien	* Fix small memory leaks; caught by: Tamas Sarlos 
126139368Sobrien	    <stamas@csillag.ilab.sztaki.hu>
127139368Sobrien
128133359Sobrien2004-07-24 16:33  Christos Zoulas  <christos@zoulas.com>
129133359Sobrien
130133359Sobrien	* magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 
131133359Sobrien
132133359Sobrien	* FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
133133359Sobrien
134133359Sobrien	* utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
135133359Sobrien
136133359Sobrien  	* errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
137133359Sobrien
138133359Sobrien2004-04-12 10:55  Christos Zoulas  <christos@zoulas.com>
139133359Sobrien
140133359Sobrien	* make sure that magic formats match magic types during compilation
141133359Sobrien
142133359Sobrien	* fix broken sgi magic file
143133359Sobrien
144133359Sobrien2004-04-06 20:36  Christos Zoulas  <christos@zoulas.com>
145133359Sobrien
146133359Sobrien	* detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
147133359Sobrien
148133359Sobrien	* magic fixes
149133359Sobrien
150133359Sobrien2004-03-22 15:25  Christos Zoulas  <christos@zoulas.com>
151133359Sobrien
152133359Sobrien	* Lots of mime fixes
153133359Sobrien	  (Joerg Ostertag) <ostertag@rechengilde.de>
154133359Sobrien
155133359Sobrien	* FreeBSD ELF version handling
156133359Sobrien	  (Edwin Groothuis) <edwin@mavetju.org>
157133359Sobrien
158133359Sobrien	* correct cleanup in all cases; don't just close the file.
159133359Sobrien	  (Christos Zoulas) <christos@zoulas.com>
160133359Sobrien
161133359Sobrien	* add gettext message catalogue support
162133359Sobrien	  (Michael Piefel) <piefel@debian.org>
163133359Sobrien
164133359Sobrien	* better printout for unreadable files
165133359Sobrien	  (Michael Piefel) <piefel@debian.org>
166133359Sobrien
167133359Sobrien	* compensate for missing MAXPATHLEN
168133359Sobrien	  (Michael Piefel) <piefel@debian.org>
169133359Sobrien
170133359Sobrien	* add wide character string length computation
171133359Sobrien	  (Michael Piefel) <piefel@debian.org>
172133359Sobrien
173133359Sobrien	* Avoid infinite loops caused by bad elf alignments
174133359Sobrien	  or name and description note sizes. Reported by
175133359Sobrien	  (Mikael Magnusson) <mmikael@comhem.se>
176133359Sobrien
177133359Sobrien2004-03-09 13:55  Christos Zoulas  <christos@zoulas.com>
178133359Sobrien
179133359Sobrien	* Fix possible memory leak on error and add missing regfree
180133359Sobrien	  (Dmitry V. Levin) <ldv@altlinux.org>
181133359Sobrien
182133359Sobrien2003-12-23 12:12  Christos Zoulas  <christos@zoulas.com>
183133359Sobrien
184133359Sobrien	* fix -k flag (Maciej W. Rozycki)
185133359Sobrien
186133359Sobrien2003-11-18 14:10  Christos Zoulas  <christos@zoulas.com>
187133359Sobrien
188133359Sobrien	* Try to give us much info as possible on corrupt elf files.
189133359Sobrien	  (Willy Tarreau) <willy@w.ods.org>
190133359Sobrien	* Updated python bindings (Brett Funderburg)
191133359Sobrien	   <brettf@deepfile.com>
192133359Sobrien
193133359Sobrien2003-11-11 15:03  Christos Zoulas  <christos@zoulas.com>
194133359Sobrien
195133359Sobrien	* Include file.h first, because it includes config.h
196133359Sobrien	  breaks largefile test macros otherwise.
197133359Sobrien	  (Paul Eggert <eggert@CS.UCLA.EDU> via
198133359Sobrien	   Lars Hecking <lhecking@nmrc.ie>)
199133359Sobrien
200133359Sobrien2003-10-14 21:39  Christos Zoulas  <christos@zoulas.com>
201133359Sobrien
202133359Sobrien	* Python bindings (Brett Funderburg) <brettf@deepfile.com>
203133359Sobrien	* Don't lookup past the end of the buffer
204133359Sobrien	  (Chad Hanson) <chanson@tcs-sec.com>
205133359Sobrien	* Add MAGIC_ERROR and api on magic_errno()
206133359Sobrien
207133359Sobrien2003-10-08 12:40  Christos Zoulas  <christos@zoulas.com>
208133359Sobrien
209133359Sobrien	* handle error conditions from compile as fatal
210133359Sobrien	  (Antti Kantee) <pooka@netbsd.org>
211133359Sobrien	* handle magic filename parsing sanely
212133359Sobrien	* more magic fixes.
213133359Sobrien	* fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
214133359Sobrien	* describe magic file handling
215133359Sobrien	  (Bryan Henderson) <bryanh@giraffe-data.com>
216133359Sobrien
217133359Sobrien2003-09-12 15:09  Christos Zoulas  <christos@zoulas.com>
218133359Sobrien
219133359Sobrien	* update magic files.
220133359Sobrien	* remove largefile support from file.h; it breaks things on most OS's
221133359Sobrien
222133359Sobrien2003-08-10 10:25  Christos Zoulas  <christos@zoulas.com>
223133359Sobrien
224133359Sobrien	* fix unmapping'ing of mmaped files.
225133359Sobrien
226133359Sobrien2003-07-10 12:03  Christos Zoulas  <christos@zoulas.com>
227133359Sobrien
228133359Sobrien	* don't exit with -1 on error; always exit 1 (Marty Leisner)
229133359Sobrien	* restore utimes code.
230133359Sobrien
231133359Sobrien2003-06-10 17:03  Christos Zoulas  <christos@zoulas.com>
232133359Sobrien
233133359Sobrien	* make sure we don't access uninitialized memory.
234133359Sobrien	* pass lint
235133359Sobrien	* #ifdef __cplusplus in magic.h
236133359Sobrien
237133359Sobrien2003-05-25 19:23  Christos Zoulas  <christos@zoulas.com>
238133359Sobrien
239133359Sobrien	* rename cvs magic file to revision to deal with
240133359Sobrien	  case insensitive filesystems.
241133359Sobrien
242133359Sobrien2003-05-23 17:03  Christos Zoulas  <christos@zoulas.com>
243133359Sobrien
244133359Sobrien	* documentation fixes from Michael Piefel <piefel@debian.org>
245133359Sobrien	* magic fixes (various)
246133359Sobrien	* revert basename magic in .mgc name determination
247133359Sobrien	* buffer protection in uncompress,
248133359Sobrien	  signness issues,
249133359Sobrien	  close files
250133359Sobrien	  Maciej W. Rozycki <macro@ds2.pg.gda.pl
251133359Sobrien
252133359Sobrien2003-04-21 20:12  Christos Zoulas  <christos@zoulas.com>
253133359Sobrien
254133359Sobrien	* fix zsh magic
255133359Sobrien
256133359Sobrien2003-04-04 16:59  Christos Zoulas  <christos@zoulas.com>
257133359Sobrien
258133359Sobrien	* fix operand sort order in string.
259133359Sobrien
260133359Sobrien2003-04-02 17:30  Christos Zoulas  <christos@zoulas.com>
261133359Sobrien
262133359Sobrien	* cleanup namespace in magic.h
263133359Sobrien
264133359Sobrien2003-04-02 13:50  Christos Zoulas  <christos@zoulas.com>
265133359Sobrien
266133359Sobrien	* Magic additions (Alex Ott)
267133359Sobrien	* Fix bug that broke VPATH compilation (Peter Breitenlohner)
268133359Sobrien
269133359Sobrien2003-03-28 16:03  Christos Zoulas  <christos@zoulas.com>
270133359Sobrien
271133359Sobrien	* remove packed attribute from magic struct.
272133359Sobrien	* make the magic struct properly aligned.
273133359Sobrien	* bump version number of compiled files to 2.
274133359Sobrien
275133359Sobrien2003-03-27 13:10  Christos Zoulas  <christos@zoulas.com>
276133359Sobrien
277133359Sobrien	* separate tar detection and run it before softmagic.
278133359Sobrien	* fix reversed symlink test.
279133359Sobrien	* fix version printing.
280133359Sobrien	* make separator a string instead of a char.
281133359Sobrien	* update manual page and sort options.
282133359Sobrien
283133359Sobrien2003-03-26 11:00  Christos Zoulas  <christos@zoulas.com>
284133359Sobrien
285133359Sobrien	* Pass lint
286133359Sobrien	* make NULL in magic_file mean stdin
287133359Sobrien	* Fix "-" argument to file to pass NULL to magic_file
288133359Sobrien	* avoid pointer casts by using memcpy
289133359Sobrien	* rename magic_buf -> magic_buffer
290133359Sobrien	* keep only the first error
291133359Sobrien	* manual page: new sentence, new line
292133359Sobrien	* fix typo in api function (magic_buf -> magic_buffer)
293