ChangeLog revision 169942
1169942Sobrien2006-12-11 16:49 Christos Zoulas <christos@zoulas.com>
2169942Sobrien
3169942Sobrien	* fix byteswapping issue
4169942Sobrien
5169942Sobrien	* report the number of bytes we tried to
6169942Sobrien	  allocate when allocation fails
7169942Sobrien
8169942Sobrien	* add a few missed cases in the strength routine
9169942Sobrien
10169942Sobrien2006-12-08 16:32 Christos Zoulas <christos@zoulas.com>
11169942Sobrien
12169942Sobrien	* store and print the line number of the magic
13169942Sobrien	  entry for debugging.         
14169942Sobrien
15169942Sobrien	* if the magic entry did not print anything,
16169942Sobrien	  don't treat it as a match
17169942Sobrien
18169942Sobrien	* change the magic strength algorithm to take
19169942Sobrien	  into account the relationship op.
20169942Sobrien
21169942Sobrien	* fix a bug in search where we could accidentally
22169942Sobrien	  return a match.
23169942Sobrien
24169942Sobrien	* propagate the error return from match to
25169942Sobrien	  file_softmagic.
26169942Sobrien
27169942Sobrien2006-11-25 13:35 Christos Zoulas <christos@zoulas.com>
28169942Sobrien	
29169942Sobrien	* Don't store the current offset in the magic
30169942Sobrien	  struct, because it needs to be restored and
31169942Sobrien	  it was not done properly all the time. Bug
32169942Sobrien	  found by: Arkadiusz Miskiewicz
33169942Sobrien
34169942Sobrien	* Fix problem in the '\0' separator; and don't
35169942Sobrien	  print it as an additional separator; print
36169942Sobrien	  it as the only separator.
37169942Sobrien
38169942Sobrien2006-11-17 10:51 Christos Zoulas <christos@zoulas.com>
39169942Sobrien
40169942Sobrien	* Added a -0 option to print a '\0' separator
41169942Sobrien	  Etienne Buira <etienne.buira@free.fr>
42169942Sobrien
43169942Sobrien2006-10-31 15:14 Christos Zoulas <christos@zoulas.com>
44169942Sobrien
45169942Sobrien	* Check offset before copying (Mike Frysinger)
46169942Sobrien
47169942Sobrien	* merge duplicated code
48169942Sobrien
49169942Sobrien	* add quad date support
50169942Sobrien
51169942Sobrien	* make sure that we nul terminate desc (Ryoji Kanai)
52169942Sobrien
53169942Sobrien	* don't process elf notes multiple times
54169942Sobrien
55169942Sobrien	* allow -z to report empty compressed files
56169942Sobrien
57169942Sobrien	* use calloc to initialize the ascii buffers (Jos van den Oever)
58169942Sobrien
59169942Sobrien2006-06-08 11:11 Christos Zoulas <christos@zoulas.com>
60169942Sobrien
61169942Sobrien	* QNX fixes (Mike Gorchak)
62169942Sobrien
63169942Sobrien	* Add quad support.
64169942Sobrien
65169942Sobrien	* FIFO checks (Dr. Werner Fink)
66169942Sobrien
67169942Sobrien	* Linux ELF fixes (Dr. Werner Fink)
68169942Sobrien
69169942Sobrien	* Magic format checks (Dr. Werner Fink)
70169942Sobrien
71169942Sobrien	* Magic format function improvent (Karl Chen)
72169942Sobrien
73169942Sobrien2006-05-03 11:11 Christos Zoulas <christos@zoulas.com>
74169942Sobrien
75169942Sobrien	* Pick up some elf changes and some constant fixes from SUSE
76169942Sobrien
77169942Sobrien	* Identify gnu tar vs. posix tar
78169942Sobrien
79169942Sobrien	* When keep going, don't print spurious newlines (Radek Vok�l)
80169942Sobrien
81169942Sobrien2006-04-01 12:02 Christos Zoulas <christos@zoulas.com>
82169942Sobrien
83169942Sobrien	* Use calloc instead of malloc (Mike Frysinger)
84169942Sobrien
85169942Sobrien	* Fix configure script to detect wctypes.h (Mike Frysinger)
86169942Sobrien
87159764Sobrien2006-03-02 16:06 Christos Zoulas <christos@zoulas.com>
88159764Sobrien
89159764Sobrien	* Print empty if the file is (Mike Frysinger)
90159764Sobrien
91159764Sobrien	* Don't try to read past the end of the buffer (Mike Frysinger)
92159764Sobrien
93159764Sobrien	* Sort magic entries by strength [experimental]
94159764Sobrien
95159764Sobrien2005-11-29 13:26 Christos Zoulas <christos@zoulas.com>
96159764Sobrien
97159764Sobrien	* Use iswprint() to convert the output string.
98159764Sobrien	    (Bastien Nocera)
99159764Sobrien
100159764Sobrien2005-10-31 8:54 Christos Zoulas <christos@zoulas.com>
101159764Sobrien
102159764Sobrien	* Fix regression where the core info was not completely processed
103159764Sobrien	    (Radek Vok�l)
104159764Sobrien
105159764Sobrien2005-10-20 11:15 Christos Zoulas <christos@zoulas.com>
106159764Sobrien
107159764Sobrien	* Middle Endian magic (Diomidis Spinellis)
108159764Sobrien
109159764Sobrien2005-10-17 11:15 Christos Zoulas <christos@zoulas.com>
110159764Sobrien
111159764Sobrien	* Open with O_BINARY for CYGWIN (Corinna Vinschen)
112159764Sobrien
113159764Sobrien	* Don't close stdin (Arkadiusz Miskiewicz)
114159764Sobrien
115159764Sobrien	* Look for note sections in non executables.
116159764Sobrien
117159764Sobrien2005-09-20 13:33 Christos Zoulas <christos@zoulas.com>
118159764Sobrien	
119159764Sobrien	* Don't print SVR4 Style in core files multiple times
120159764Sobrien	    (Radek Vok�l)
121159764Sobrien
122159764Sobrien2005-08-27 04:09 Christos Zoulas <christos@zoulas.com>
123159764Sobrien
124159764Sobrien	* Cygwin changes Corinna Vinschen
125159764Sobrien
126159764Sobrien2005-08-18 09:53 Christos Zoulas <christos@zoulas.com>
127159764Sobrien
128159764Sobrien	* Remove erroreous mention of /etc/magic in the file man page
129159764Sobrien	  This is gentoo bug 101639. (Mike Frysinger) 
130159764Sobrien
131159764Sobrien	* Cross-compile support and detection (Mike Frysinger) 
132159764Sobrien
133159764Sobrien2005-08-12 10:17 Christos Zoulas <christos@zoulas.com>
134159764Sobrien
135159764Sobrien	* Add -h flag and dereference symlinks if POSIXLY_CORRECT
136159764Sobrien	  is set.
137159764Sobrien
138159764Sobrien2005-07-29 13:57 Christos Zoulas <christos@zoulas.com>
139159764Sobrien
140159764Sobrien	* Avoid search and regex buffer overflows (Kelledin)
141159764Sobrien
142159764Sobrien2005-07-12 11:48 Christos Zoulas <christos@zoulas.com>
143159764Sobrien
144159764Sobrien	* Provide stub implementations for {v,}nsprintf() for older
145159764Sobrien	  OS's that don't have them.
146159764Sobrien	* Change mbstate_t autoconf detection macro from AC_MBSTATE_T
147159764Sobrien	  to AC_TYPE_MBSTATE_T.
148159764Sobrien
149159764Sobrien2005-06-25 11:48 Christos Zoulas <christos@zoulas.com>
150159764Sobrien
151159764Sobrien	* Dynamically allocate the string buffers and make the
152159764Sobrien	  default read size 256K.
153159764Sobrien
154159764Sobrien2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
155159764Sobrien
156159764Sobrien	* Dragonfly ELF note support
157159764Sobrien
158159764Sobrien2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
159159764Sobrien
160159764Sobrien	* Avoid NULL pointer dereference in time conversion.
161159764Sobrien
162159764Sobrien2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
163159764Sobrien	
164159764Sobrien	* Add indirect magic offset support, and search mode.
165159764Sobrien
166159764Sobrien2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
167159764Sobrien
168159764Sobrien        * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
169159764Sobrien          If a CRLF text file happens to have CR at offset HOWMANY - 1
170159764Sobrien          (currently 0xffff), it should not be counted as CR line
171159764Sobrien          terminator.
172159764Sobrien          If a line has length exactly MAXLINELEN, it should not yet be
173159764Sobrien          treated as a ``very long line'', as MAXLINELEN is ``longest sane
174159764Sobrien          line length''.
175159764Sobrien          With CRLF, the line length was not computed correctly, and even
176159764Sobrien          lines of length MAXLINELEN - 1 were treated as ``very long''.
177159764Sobrien
178159764Sobrien2004-12-07 14:15  Christos Zoulas  <christos@zoulas.com>
179159764Sobrien
180159764Sobrien	* bzip2 needs a lot of input buffer space on some files
181159764Sobrien	  before it can begin uncompressing. This makes file -z
182159764Sobrien	  fail on some bz2 files. Fix it by giving it a copy of
183159764Sobrien	  the file descriptor to read as much as it wants if we
184159764Sobrien	  have access to it. <christos@zoulas.com>
185159764Sobrien
186139368Sobrien2004-11-24 12:39  Christos Zoulas  <christos@zoulas.com>
187133359Sobrien
188139368Sobrien	* Stack smash fix, and ELF more conservative reading.
189139368Sobrien	  Jakub Bogusz <qboosh@pld-linux.org>
190139368Sobrien
191139368Sobrien2004-11-20 18:50  Christos Zoulas  <christos@zoulas.com>
192139368Sobrien
193139368Sobrien	* New FreeBSD version parsing code:
194139368Sobrien	  Jon Noack <noackjr@alumni.rice.edu>
195139368Sobrien
196139368Sobrien	* Hackish support for ucs16 strings <christos@zoulas.com>
197139368Sobrien
198139368Sobrien2004-11-13 03:07  Christos Zoulas  <christos@zoulas.com>
199139368Sobrien
200139368Sobrien	* print the file name and line number in syntax errors.
201139368Sobrien
202139368Sobrien2004 10-12 10:50  Christos Zoulas  <christos@zoulas.com>
203139368Sobrien
204139368Sobrien	* Fix stack overwriting on 0 length strings: Tim Waugh
205139368Sobrien	    <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
206139368Sobrien
207139368Sobrien2004-09-27 11:30  Christos Zoulas  <christos@zoulas.com>
208139368Sobrien
209139368Sobrien	* Remove 3rd and 4th copyright clause; approved by Ian Darwin.
210139368Sobrien
211139368Sobrien	* Fix small memory leaks; caught by: Tamas Sarlos 
212139368Sobrien	    <stamas@csillag.ilab.sztaki.hu>
213139368Sobrien
214133359Sobrien2004-07-24 16:33  Christos Zoulas  <christos@zoulas.com>
215133359Sobrien
216133359Sobrien	* magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 
217133359Sobrien
218133359Sobrien	* FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
219133359Sobrien
220133359Sobrien	* utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
221133359Sobrien
222133359Sobrien  	* errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
223133359Sobrien
224133359Sobrien2004-04-12 10:55  Christos Zoulas  <christos@zoulas.com>
225133359Sobrien
226133359Sobrien	* make sure that magic formats match magic types during compilation
227133359Sobrien
228133359Sobrien	* fix broken sgi magic file
229133359Sobrien
230133359Sobrien2004-04-06 20:36  Christos Zoulas  <christos@zoulas.com>
231133359Sobrien
232133359Sobrien	* detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
233133359Sobrien
234133359Sobrien	* magic fixes
235133359Sobrien
236133359Sobrien2004-03-22 15:25  Christos Zoulas  <christos@zoulas.com>
237133359Sobrien
238133359Sobrien	* Lots of mime fixes
239133359Sobrien	  (Joerg Ostertag) <ostertag@rechengilde.de>
240133359Sobrien
241133359Sobrien	* FreeBSD ELF version handling
242133359Sobrien	  (Edwin Groothuis) <edwin@mavetju.org>
243133359Sobrien
244133359Sobrien	* correct cleanup in all cases; don't just close the file.
245133359Sobrien	  (Christos Zoulas) <christos@zoulas.com>
246133359Sobrien
247133359Sobrien	* add gettext message catalogue support
248133359Sobrien	  (Michael Piefel) <piefel@debian.org>
249133359Sobrien
250133359Sobrien	* better printout for unreadable files
251133359Sobrien	  (Michael Piefel) <piefel@debian.org>
252133359Sobrien
253133359Sobrien	* compensate for missing MAXPATHLEN
254133359Sobrien	  (Michael Piefel) <piefel@debian.org>
255133359Sobrien
256133359Sobrien	* add wide character string length computation
257133359Sobrien	  (Michael Piefel) <piefel@debian.org>
258133359Sobrien
259133359Sobrien	* Avoid infinite loops caused by bad elf alignments
260133359Sobrien	  or name and description note sizes. Reported by
261133359Sobrien	  (Mikael Magnusson) <mmikael@comhem.se>
262133359Sobrien
263133359Sobrien2004-03-09 13:55  Christos Zoulas  <christos@zoulas.com>
264133359Sobrien
265133359Sobrien	* Fix possible memory leak on error and add missing regfree
266133359Sobrien	  (Dmitry V. Levin) <ldv@altlinux.org>
267133359Sobrien
268133359Sobrien2003-12-23 12:12  Christos Zoulas  <christos@zoulas.com>
269133359Sobrien
270133359Sobrien	* fix -k flag (Maciej W. Rozycki)
271133359Sobrien
272133359Sobrien2003-11-18 14:10  Christos Zoulas  <christos@zoulas.com>
273133359Sobrien
274133359Sobrien	* Try to give us much info as possible on corrupt elf files.
275133359Sobrien	  (Willy Tarreau) <willy@w.ods.org>
276133359Sobrien	* Updated python bindings (Brett Funderburg)
277133359Sobrien	   <brettf@deepfile.com>
278133359Sobrien
279133359Sobrien2003-11-11 15:03  Christos Zoulas  <christos@zoulas.com>
280133359Sobrien
281133359Sobrien	* Include file.h first, because it includes config.h
282133359Sobrien	  breaks largefile test macros otherwise.
283133359Sobrien	  (Paul Eggert <eggert@CS.UCLA.EDU> via
284133359Sobrien	   Lars Hecking <lhecking@nmrc.ie>)
285133359Sobrien
286133359Sobrien2003-10-14 21:39  Christos Zoulas  <christos@zoulas.com>
287133359Sobrien
288133359Sobrien	* Python bindings (Brett Funderburg) <brettf@deepfile.com>
289133359Sobrien	* Don't lookup past the end of the buffer
290133359Sobrien	  (Chad Hanson) <chanson@tcs-sec.com>
291133359Sobrien	* Add MAGIC_ERROR and api on magic_errno()
292133359Sobrien
293133359Sobrien2003-10-08 12:40  Christos Zoulas  <christos@zoulas.com>
294133359Sobrien
295133359Sobrien	* handle error conditions from compile as fatal
296133359Sobrien	  (Antti Kantee) <pooka@netbsd.org>
297133359Sobrien	* handle magic filename parsing sanely
298133359Sobrien	* more magic fixes.
299133359Sobrien	* fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
300133359Sobrien	* describe magic file handling
301133359Sobrien	  (Bryan Henderson) <bryanh@giraffe-data.com>
302133359Sobrien
303133359Sobrien2003-09-12 15:09  Christos Zoulas  <christos@zoulas.com>
304133359Sobrien
305133359Sobrien	* update magic files.
306133359Sobrien	* remove largefile support from file.h; it breaks things on most OS's
307133359Sobrien
308133359Sobrien2003-08-10 10:25  Christos Zoulas  <christos@zoulas.com>
309133359Sobrien
310133359Sobrien	* fix unmapping'ing of mmaped files.
311133359Sobrien
312133359Sobrien2003-07-10 12:03  Christos Zoulas  <christos@zoulas.com>
313133359Sobrien
314133359Sobrien	* don't exit with -1 on error; always exit 1 (Marty Leisner)
315133359Sobrien	* restore utimes code.
316133359Sobrien
317133359Sobrien2003-06-10 17:03  Christos Zoulas  <christos@zoulas.com>
318133359Sobrien
319133359Sobrien	* make sure we don't access uninitialized memory.
320133359Sobrien	* pass lint
321133359Sobrien	* #ifdef __cplusplus in magic.h
322133359Sobrien
323133359Sobrien2003-05-25 19:23  Christos Zoulas  <christos@zoulas.com>
324133359Sobrien
325133359Sobrien	* rename cvs magic file to revision to deal with
326133359Sobrien	  case insensitive filesystems.
327133359Sobrien
328133359Sobrien2003-05-23 17:03  Christos Zoulas  <christos@zoulas.com>
329133359Sobrien
330133359Sobrien	* documentation fixes from Michael Piefel <piefel@debian.org>
331133359Sobrien	* magic fixes (various)
332133359Sobrien	* revert basename magic in .mgc name determination
333133359Sobrien	* buffer protection in uncompress,
334133359Sobrien	  signness issues,
335133359Sobrien	  close files
336133359Sobrien	  Maciej W. Rozycki <macro@ds2.pg.gda.pl
337133359Sobrien
338133359Sobrien2003-04-21 20:12  Christos Zoulas  <christos@zoulas.com>
339133359Sobrien
340133359Sobrien	* fix zsh magic
341133359Sobrien
342133359Sobrien2003-04-04 16:59  Christos Zoulas  <christos@zoulas.com>
343133359Sobrien
344133359Sobrien	* fix operand sort order in string.
345133359Sobrien
346133359Sobrien2003-04-02 17:30  Christos Zoulas  <christos@zoulas.com>
347133359Sobrien
348133359Sobrien	* cleanup namespace in magic.h
349133359Sobrien
350133359Sobrien2003-04-02 13:50  Christos Zoulas  <christos@zoulas.com>
351133359Sobrien
352133359Sobrien	* Magic additions (Alex Ott)
353133359Sobrien	* Fix bug that broke VPATH compilation (Peter Breitenlohner)
354133359Sobrien
355133359Sobrien2003-03-28 16:03  Christos Zoulas  <christos@zoulas.com>
356133359Sobrien
357133359Sobrien	* remove packed attribute from magic struct.
358133359Sobrien	* make the magic struct properly aligned.
359133359Sobrien	* bump version number of compiled files to 2.
360133359Sobrien
361133359Sobrien2003-03-27 13:10  Christos Zoulas  <christos@zoulas.com>
362133359Sobrien
363133359Sobrien	* separate tar detection and run it before softmagic.
364133359Sobrien	* fix reversed symlink test.
365133359Sobrien	* fix version printing.
366133359Sobrien	* make separator a string instead of a char.
367133359Sobrien	* update manual page and sort options.
368133359Sobrien
369133359Sobrien2003-03-26 11:00  Christos Zoulas  <christos@zoulas.com>
370133359Sobrien
371133359Sobrien	* Pass lint
372133359Sobrien	* make NULL in magic_file mean stdin
373133359Sobrien	* Fix "-" argument to file to pass NULL to magic_file
374133359Sobrien	* avoid pointer casts by using memcpy
375133359Sobrien	* rename magic_buf -> magic_buffer
376133359Sobrien	* keep only the first error
377133359Sobrien	* manual page: new sentence, new line
378133359Sobrien	* fix typo in api function (magic_buf -> magic_buffer)
379