Import file-5.05.
[dragonfly.git] / contrib / file / ChangeLog
1 2011-01-16  19:31  Reuben Thomas <rrt@sc3d.org>
2
3         * Fix two potential buffer overruns in apprentice_list.
4
5 2011-01-14  22:33  Reuben Thomas <rrt@sc3d.org>
6
7         * New Python binding in pure Python.
8         * Update libmagic(3).
9
10 2011-01-06  21:40  Reuben Thomas <rrt@sc3d.org>
11
12         * Fix Python bindings (including recent Python 3 compatibility
13           update).
14
15 2011-01-04  18:43  Reuben Thomas <rrt@sc3d.org>
16
17         * magic/Makefile.am: make it easier to recover from magic build failures.
18         * Fix pstring length specifier parsing to avoid generating invalid
19           magic files.
20         * Add pstring length "J" (for "JPEG") to specify that the length
21           include itself.
22         * Fix JPEG comment parsing at last using pstring/HJ!
23         * Ignore section 5 man pages in doc/.cvsignore.
24
25 2010-12-22  13:12  Christos Zoulas <christos@zoulas.com>
26
27         * Add pstring/BHhLl to specify the type of the length of pascal
28           strings.
29
30 2010-11-26  18:39  Reuben Thomas <rrt@sc3d.org>
31
32         * Fix "-e soft": it was ignored when softmagic was called
33           during asciimagic.
34         * Improve comments and use "unsigned char" in tar.h/is_tar.c.
35
36 2010-11-05  17:26  Reuben Thomas <rrt@sc3d.org>
37
38         * Make bug reporting addresses more visible.
39
40 2010-11-01  18:35  Reuben Thomas <rrt@sc3d.org>
41
42         * Add tcl magic from Gustaf Neumann
43
44 2010-10-24  10:42  Christos Zoulas <christos@zoulas.com>
45
46         * Fix the whitespace comparing code (Christopher Chittleborough)
47
48 2010-10-06  21:05  Christos Zoulas <christos@zoulas.com>
49
50         * allow string/t to work (Jan Kaluza)
51
52 2010-09-20  22:11  Reuben Thomas <rrt@sc3d.org>
53
54         * Apply some patches from Ubuntu and Fedora.
55
56 2010-09-20  21:16  Reuben Thomas <rrt@sc3d.org>
57
58         * Apply all patches from Debian package 5.04-6 which have not
59           already been applied and are not Debian-specific.
60
61 2010-09-20  15:24  Reuben Thomas <rrt@sc3d.org>
62
63         * Minor security fix to softmagic.c (don't use untrusted
64           string as printf format).
65
66 2010-07-21  12:20  Christos Zoulas <christos@zoulas.com>
67
68         * MINGW32 portability from LRN
69
70         * Don't warn about escaping magic regex chars when we are in a regex.
71
72 2010-07-19  10:55  Christos Zoulas <christos@zoulas.com>
73
74         * Only try to print prpsinfo for core files. (Jan Kaluza)
75
76 2010-04-22  12:55  Christos Zoulas <christos@zoulas.com>
77
78         * Try more elf offsets for Debian core files.  (Arnaud Giersch)
79
80 2010-02-20  15:18  Reuben Thomas <rrt@sc3d.org>
81
82         * Clarify which sort of CDF we mean.
83
84 2010-02-14  22:58  Reuben Thomas <rrt@sc3d.org>
85
86         * Re-jig Zip file type magic so that unsupported special
87           Zip types (those with "mimetype" at offset 30) can be
88           recognized.
89
90 2010-02-02  21:50  Reuben Thomas <rrt@sc3d.org>
91
92         * Add support for OCF (EPUB) files (application/epub+zip)
93
94 2010-01-28  18:25  Christos Zoulas <christos@zoulas.com>
95
96         * Fix core-dump from unbound loop:
97           https://bugzilla.redhat.com/show_bug.cgi?id=533245
98
99 2010-01-22  15:45  Christos Zoulas <christos@zoulas.com>
100
101         * print proper mime for crystal reports file
102
103         * print the last summary information of a cdf document, not the
104           first so that nested documents print the right info
105
106 2010-01-16  18:42  Charles Longeau <chl@tuxfamily.org>
107
108         * bring back some fixes from OpenBSD:
109                 - make gcc2 builds file
110                 - fix typos in a magic file comment
111
112 2009-11-17  18:35  Christos Zoulas <christos@zoulas.com>
113
114         * ctime/asctime can return NULL on some OS's although
115           they should not (Toshit Antani)
116
117 2009-09-14  13:49  Christos Zoulas <christos@zoulas.com>
118
119         * Centralize magic path handling routines and remove the
120           special-casing from file.c so that the python module for
121           example comes up with the same magic path (Fixes ~/.magic
122           handling) (from Gab)
123
124 2009-09-11  23:38  Reuben Thomas <rrt@sc3d.org>
125
126         * When magic argument is a directory, read the files in
127           strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
128
129 2009-09-11  13:11  Reuben Thomas <rrt@sc3d.org>
130
131         * Combine overlapping epoc and psion magic files into one (epoc).
132
133         * Add some more EPOC MIME types.
134
135 2009-08-19  15:55  Christos Zoulas <christos@zoulas.com>
136
137         * Fix 3 bugs (From Ian Darwin):
138             - file_showstr could move one past the end of the array
139             - parse_apple did not nul terminate the string in the overflow case
140             - parse_mime truncated the wrong string in the overflow case
141
142 2009-08-12  12:28  Robert Byrnes  <byrnes@wildpumpkin.net>
143
144         * Include Localstuff when compiling magic.
145
146 2009-07-15  10:05  Christos Zoulas <christos@zoulas.com>
147
148         * Fix logic for including mygetopts.h
149
150         * Make cdf.c compile again with debugging
151
152         * Add the necessary field handling for crystal reports files to work
153
154 2009-06-23 01:34  Reuben Thomas <rrt@sc3d.org>
155
156         * Stop "(if" identifying Lisp files, that's plain dumb!
157
158 2009-06-09 22:13  Reuben Thomas <rrt@sc3d.org>
159
160         * Add a couple of missing MP3 MIME types.
161
162 2009-05-27 23:00  Reuben Thomas <rrt@sc3d.org>
163
164         * Add full range of hash-bang tests for Python and Ruby.
165
166         * Add MIME types for Python and Ruby scripts.
167
168 2009-05-13  10:44  Christos Zoulas <christos@zoulas.com>
169
170         * off by one in parsing hw capabilities in elf
171           (Cheng Renquan)
172
173 2009-05-08  13:40  Christos Zoulas <christos@zoulas.com>
174         
175         * lint fixes and more from NetBSD
176
177 2009-05-06  10:25  Christos Zoulas <christos@zoulas.com>
178
179         * Avoid null dereference in cdf code (Drew Yao)
180
181         * More cdf bounds checks and overflow checks
182
183 2009-05-01  18:37  Christos Zoulas <christos@zoulas.com>
184
185         * Buffer overflow fixes from Drew Yao
186
187 2009-04-30  17:10  Christos Zoulas <christos@zoulas.com>
188
189         * Fix more cdf lossage. All the documents I have
190           right now print the correct information.
191
192 2009-03-27  18:43  Christos Zoulas <christos@zoulas.com>
193
194         * don't print \012- separators in the same magic entry 
195           if it consists of multiple magic printing lines.
196
197 2009-03-23  10:20  Christos Zoulas <christos@zoulas.com>
198
199         * Avoid file descriptor leak in compress code from
200           (Daniel Novotny)
201
202 2009-03-18  16:50  Christos Zoulas <christos@zoulas.com>
203
204         * Allow escaping of relation characters, so that we can say \^[A-Z]
205           and the ^ is not eaten as a relation char.
206
207         * Fix troff and fortran to their previous glory using
208           regex. This was broken since their removel from ascmagic.
209
210 2009-03-10  16:50  Christos Zoulas <christos@zoulas.com>
211
212         * don't use strlen in strndup() (Toby Peterson)
213
214 2009-03-10  7:45  Christos Zoulas <christos@zoulas.com>
215
216         * avoid c99 syntax.
217
218 2009-02-23 15:45  Christos Zoulas <christos@zoulas.com>
219
220         * make the cdf code use the buffer first if available,
221           and then the fd code.
222
223 2009-02-13 13:45  Christos Zoulas <christos@zoulas.com>
224
225         * look for struct option to determine if getopt.h is usable for IRIX.
226
227         * sanitize cdf document strings
228
229 2009-02-04 13:25  Christos Zoulas <christos@zoulas.com>
230
231         * fix OS/2 warnings.
232
233 2008-12-12 15:50  Christos Zoulas <christos@zoulas.com>
234
235         * fix initial offset calculation for non 4K sector files
236
237         * add loop limits to avoid DoS attacks by constructing
238           looping sector references.
239
240 2008-12-03 13:05  Christos Zoulas <christos@zoulas.com>
241
242         * fix memory botches on cdf file parsing.
243
244         * exit with non-zero value for any error, not just for the last
245           file processed.
246
247 2008-11-09 20:42  Charles Longeau <chl@tuxfamily.org>
248
249         * Replace all str{cpy,cat} functions with strl{cpy,cat}
250         * Ensure that strl{cpy,cat} are included in libmagic,
251           as needed.
252
253 2008-11-06 18:18  Christos Zoulas <christos@zoulas.com>
254
255         * Handle ID3 format files.
256
257 2008-11-06 23:00  Reuben Thomas <rrt@sc3d.org>
258
259         * Fix --mime, --mime-type and --mime-encoding under new scheme.
260
261         * Rename "ascii" to "text" and add "encoding" test.
262
263         * Return a precise ("utf-16le" or "utf-16be") MIME charset for
264           UTF-16.
265
266         * Fix error in comment caused by automatic indentation adding
267           words!
268
269 2008-11-06 10:35  Christos Zoulas <christos@astron.com>
270
271         * use memchr instead of strchr because the string
272           might not be NUL terminated (Scott MacVicar)
273
274 2008-11-03 07:31  Reuben Thomas <rrt@sc3d.org>
275
276         * Fix a printf with a non-literal format string.
277
278         * Fix formatting and punctuation of help for "--apple".
279
280 2008-10-30 11:00  Reuben Thomas <rrt@sc3d.org>
281
282         * Correct words counts in comments of struct magic.
283
284         * Fix handle_annotation to allow both Apple and MIME types to be
285           printed, and to return correct code if MIME type is
286           printed (1, not 0) or if there's an error (-1 not 1).
287
288         * Fix output of charset for MIME type (precede with semi-colon;
289           fixes Debian bug #501460).
290
291         * Fix potential attacks via conversion specifications in magic
292           strings.
293
294         * Add a FIXME for Debian bug #488562 (magic files should be
295           read in a defined order, by sorting the names).
296
297 2008-10-18 16:45  Christos Zoulas <christos@astron.com>
298
299         * Added APPLE file creator/type
300
301 2008-10-12 10:20  Christos Zoulas <christos@astron.com>
302
303         * Added CDF parsing
304
305 2008-10-09 16:40  Christos Zoulas <christos@astron.com>
306
307         * filesystem and msdos patches (Joerg Jenderek)
308
309 2008-10-09 13:20  Christos Zoulas <christos@astron.com>
310
311         * correct --exclude documentation issues: remove troff and fortran
312           and rename "token" to "tokens". (Randy McMurchy)
313
314 2008-10-01 10:30  Christos Zoulas <christos@astron.com>
315
316         * Read ~/.magic in addition to the default magic file not instead
317           of, as documented in the man page.
318
319 2008-09-10 21:30  Reuben Thomas  <rrt@sc3d.org>
320
321         * Comment out graphviz patterns, as they match too many files.
322
323 2008-08-30 12:54  Christos Zoulas <christos@astron.com>
324
325         * Don't eat trailing \n in magic enties.
326
327         * Cast defines to allow compilation using a c++ compiler.
328
329 2008-08-25 23:56  Reuben Thomas  <rrt@sc3d.org>
330
331         * Add text/x-lua MIME type for Lua scripts.
332
333         * Escape { in regex in graphviz patterns.
334
335 2008-07-26 00:59  Reuben Thomas  <rrt@sc3d.org>
336
337         * Add MIME types for special files.
338
339         * Use access to give more accurate information for files that
340           can't be opened.
341
342         * Add a TODO list.
343
344 2008-07-02 11:15  Christos Zoulas  <christos@astron.com>
345
346         * add !:strength op to adjust magic strength (experimental)
347
348 2008-06-16 21:41  Reuben Thomas  <rrt@sc3d.org>
349
350         * Fix automake error in configure.ac.
351
352         * Add MIME type for Psion Sketch files.
353
354 2008-06-05 08:59  Christos Zoulas  <christos@astron.com>
355
356         * Don't print warnings about bad namesize in stripped
357           binaries with PT_NOTE is still there, and the actual
358           note is gone (Jakub Jelinek)
359
360 2008-05-28 15:12  Robert Byrnes  <byrnes@wildpumpkin.net>
361
362         * magic/Magdir/elf:
363           Note invalid byte order for little-endian SPARC32PLUS.
364           Add SPARC V9 vendor extensions and memory model.
365
366         * src/elfclass.h:
367           Pass target machine to doshn (for Solaris hardware capabilities).
368
369         * src/readelf.c (doshn):
370           Add support for Solaris hardware/software capabilities.
371
372         * src/readelf.h:
373           Ditto.
374
375         * src/vasprintf.c (dispatch):
376           Add support for ll modifier.
377
378 2008-05-16 10:25  Christos Zoulas  <christos@astron.com>
379
380         * Fix compiler warnings.
381
382         * remove stray printf, and fix a vprintf bug. (Martin Dorey)
383
384 2008-05-06 00:13  Robert Byrnes  <byrnes@wildpumpkin.net>
385
386         * src/Makefile.am:
387           Ensure that getopt_long and [v]asprintf are included in libmagic,
388           as needed.
389
390           Remove unnecessary EXTRA_DIST.
391
392         * src/Makefile.in:
393           Rerun automake.
394
395         * src/vasprintf.c (dispatch):
396           Fix variable precision bug: be sure to step past '*'.
397
398         * src/vasprintf.c (core):
399           Remove unreachable code.
400
401         * src/apprentice.c (set_test_type):
402           Add cast to avoid compiler warning.
403
404 2008-04-22 23:45  Christos Zoulas  <christos@astron.com>
405
406         * Add magic submission guidelines (Abel Cheung)
407
408         * split msdos and windows magic (Abel Cheung)
409
410 2008-04-04 11:00  Christos Zoulas  <christos@astron.com>
411
412         * >= <= is not supported, so fix the magic and warn about it.
413           reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
414
415 2008-03-27 16:16  Robert Byrnes  <byrnes@wildpumpkin.net>
416
417         * src/readelf.c (donote):
418           ELF core file command name/line bug fixes and enhancements:
419
420           Try larger offsets first to avoid false matches
421           from earlier data that happen to look like strings;
422           this primarily affected SunOS 5.x 32-bit Intel core files.
423
424           Add support for command line (instead of just short name)
425           for SunOS 5.x.
426
427           Add information about NT_PSINFO for SunOS 5.x.
428
429           Only trim whitespace from end of command line.
430
431 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
432
433         * Change strength of ! from MULT to 0, as it matches almost
434                   anything (Reuben Thomas)
435
436         * Debian fixes (Reuben Thomas)
437
438 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
439
440         * Clarify UTF-8 BOM message (Reuben Thomas)
441
442         * Add HTML comment to token list in names.h
443
444 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
445
446         * Debian fixes (Reuben Thomas)
447
448 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
449
450         * !:mime annotations in magic files (Reuben Thomas)
451
452 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
453
454         * zero out utime/utimes structs (Gavin Atkinson)
455
456 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
457
458         * reduce writable data from Diego "Flameeyes" Petten
459
460 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
461
462         * strtof detection
463
464         * remove bogus regex magic that could cause a DoS
465
466         * better mismatch version message
467
468 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
469
470         * bring back some fixes from OpenBSD
471
472         * treat ELF dynamic objects as executables
473
474         * fix gcc warnings
475
476 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
477
478         * make sure we have zlib.h and libz to compile the builtin
479           decompress code
480
481 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
482
483         * float and double magic support (Behan Webster)
484
485 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
486
487         * Convert fortran to a soft test (Reuben Thomas)
488
489 2007-10-23  5:25 Christos Zoulas <christos@astron.com>
490
491         * Add --with-filename, and --no-filename (Reuben Thomas)
492
493 2007-10-23  3:59 Christos Zoulas <christos@astron.com>
494
495         * Rest of the mime split (Reuben Thomas)
496
497         * Make usage message generated from the flags so that
498           they stay consistent (Reuben Thomas)
499
500 2007-10-20  3:06 Christos Zoulas <christos@astron.com>
501
502         * typo in comment, missing ifdef QUICK, remove unneeded code
503                 (Charles Longeau)
504
505 2007-10-17  3:33 Christos Zoulas <christos@astron.com>
506
507         * Fix problem printing -\012 in some entries
508
509         * Separate magic type and encoding flags (Reuben Thomas)
510
511 2007-10-09  3:55 Christos Zoulas <christos@astron.com>
512
513         * configure fix for int64 and strndup (Reuben Thomas)
514
515 2007-09-26  4:45 Christos Zoulas <christos@astron.com>
516
517         * Add magic_descriptor() function.
518
519         * Fix regression in elf reading code where the core name was
520           not being printed.
521
522         * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
523
524 2007-08-19  6:30 Christos Zoulas <christos@astron.com>
525
526         * Make mime format consistent so that it can
527           be easily parsed:
528               mimetype [charset=character-set] [encoding=encoding-mime-type]
529
530           Remove spurious extra text from some MIME type printouts
531           (mostly in is_tar).
532
533           Fix one case where -i produced nothing at all (for a 1-byte file,
534           which is now classed as application/octet-stream).
535
536           Remove 7/8bit classifications, since they were arbitrary
537           and not based on the file data.
538
539           This work was done by Reuben Thomas
540
541 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
542
543         * Fix another integer overflow (Colin Percival)
544
545 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
546
547         * make sure that all of struct magic_set is initialized appropriately
548           (Brett)
549
550 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
551
552         * reset left bytes in the buffer (Dmitry V. Levin)
553
554         * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
555           (Peter Avalos)
556
557 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
558
559         * fix fortran and nroff reversed tests (Dmitry V. Levin)
560
561         * fix exclude option (Dmitry V. Levin)
562
563 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
564
565         * fix integer underflow in file_printf which can lead to
566           to exploitable heap overflow (Jean-Sebastien Guay-Lero)
567
568 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
569
570         * make socket/pipe reading more robust
571
572 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
573
574         * Centralize all the tests in file_buffer.
575
576         * Add exclude flag.
577
578 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
579
580         * Move the "type" detection code from parse() into its own table
581           driven routine.  This avoids maintaining multiple lists in
582           file.h.
583
584         * Add an optional conditional field (ust before the type field).
585           This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
586           likely to go away.
587
588 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
589
590         * Fix an initialization bug in check_mem().
591
592 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
593
594         * Add a "default" type to print a message if nothing previously
595           matched at that level or since the last default at that
596           level.  This is useful for setting up switch-like statements.
597           It can also be used to do if/else constructions without a
598           redundant second test.
599
600         * Fix the "x" special case test so that one can test for that
601           string with "=x".
602
603         * Allow "search" to search the entire buffer if the "/N"
604           search count is missing.
605
606         * Make "regex" work!  It now starts its search at the
607           specified offset and takes an (optional) "/N" line count to
608           specify the search range; otherwise it searches to the end
609           of the file.  The match is now grabbed correctly for format
610           strings and the offset set to the end of the match.
611
612         * Add a "/s" flag to "regex" and "search" to set the offset to
613           the start of the match.  By default the offset is set to the
614           end of the match, as it is with other tests.  This is mostly
615           useful for "regex".
616
617         * Make "search", "string" and "pstring" use the same
618           file_strncmp() routine so that they support the same flags;
619           "bestring16" and "lestring16" call the same routine, but
620           with flags = 0.  Also add a "/C" flag (in analogy to "/c")
621           to ignore the case on uppercase (lowercase) characters in
622           the test string.
623
624         * Strict adherence to C style string escapes.  A warnings are
625           printed when compiling.  Note: previously "\a" was
626           incorrectly translated to 'a' instead of an <alert> (i.e.,
627           BELL, typically 0x07).
628
629         * Make this compile with "-Wall -Wextra" and all the warning
630           flags used with WARNS=4 in the NetBSD source.  Also make it
631           pass lint.
632
633         * Many "cleanups" and hopefully not too many new bugs!
634
635 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
636
637         * make several more files compile with gcc warnings
638           on and also make them pass lint.
639
640 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
641
642         * fix a puts()/putc() usage goof in file.c
643
644         * make file.c compile with gcc warnings and pass lint
645
646 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
647
648         * fix byteswapping issue
649
650         * report the number of bytes we tried to
651           allocate when allocation fails
652
653         * add a few missed cases in the strength routine
654
655 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
656
657         * store and print the line number of the magic
658           entry for debugging.
659
660         * if the magic entry did not print anything,
661           don't treat it as a match
662
663         * change the magic strength algorithm to take
664           into account the relationship op.
665
666         * fix a bug in search where we could accidentally
667           return a match.
668
669         * propagate the error return from match to
670           file_softmagic.
671
672 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
673
674         * Don't store the current offset in the magic
675           struct, because it needs to be restored and
676           it was not done properly all the time. Bug
677           found by: Arkadiusz Miskiewicz
678
679         * Fix problem in the '\0' separator; and don't
680           print it as an additional separator; print
681           it as the only separator.
682
683 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
684
685         * Added a -0 option to print a '\0' separator
686           Etienne Buira <etienne.buira@free.fr>
687
688 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
689
690         * Check offset before copying (Mike Frysinger)
691
692         * merge duplicated code
693
694         * add quad date support
695
696         * make sure that we nul terminate desc (Ryoji Kanai)
697
698         * don't process elf notes multiple times
699
700         * allow -z to report empty compressed files
701
702         * use calloc to initialize the ascii buffers (Jos van den Oever)
703
704 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
705
706         * QNX fixes (Mike Gorchak)
707
708         * Add quad support.
709
710         * FIFO checks (Dr. Werner Fink)
711
712         * Linux ELF fixes (Dr. Werner Fink)
713
714         * Magic format checks (Dr. Werner Fink)
715
716         * Magic format function improvent (Karl Chen)
717
718 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
719
720         * Pick up some elf changes and some constant fixes from SUSE
721
722         * Identify gnu tar vs. posix tar
723
724         * When keep going, don't print spurious newlines (Radek Vokál)
725
726 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
727
728         * Use calloc instead of malloc (Mike Frysinger)
729
730         * Fix configure script to detect wctypes.h (Mike Frysinger)
731
732 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
733
734         * Print empty if the file is (Mike Frysinger)
735
736         * Don't try to read past the end of the buffer (Mike Frysinger)
737
738         * Sort magic entries by strength [experimental]
739
740 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
741
742         * Use iswprint() to convert the output string.
743             (Bastien Nocera)
744
745 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
746
747         * Fix regression where the core info was not completely processed
748             (Radek Vokál)
749
750 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
751
752         * Middle Endian magic (Diomidis Spinellis)
753
754 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
755
756         * Open with O_BINARY for CYGWIN (Corinna Vinschen)
757
758         * Don't close stdin (Arkadiusz Miskiewicz)
759
760         * Look for note sections in non executables.
761
762 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
763
764         * Don't print SVR4 Style in core files multiple times
765             (Radek Vokál)
766
767 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
768
769         * Cygwin changes Corinna Vinschen
770
771 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
772
773         * Remove erroreous mention of /etc/magic in the file man page
774           This is gentoo bug 101639. (Mike Frysinger)
775
776         * Cross-compile support and detection (Mike Frysinger)
777
778 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
779
780         * Add -h flag and dereference symlinks if POSIXLY_CORRECT
781           is set.
782
783 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
784
785         * Avoid search and regex buffer overflows (Kelledin)
786
787 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
788
789         * Provide stub implementations for {v,}nsprintf() for older
790           OS's that don't have them.
791         * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
792           to AC_TYPE_MBSTATE_T.
793
794 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
795
796         * Dynamically allocate the string buffers and make the
797           default read size 256K.
798
799 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
800
801         * Dragonfly ELF note support
802
803 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
804
805         * Avoid NULL pointer dereference in time conversion.
806
807 2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
808
809         * Add indirect magic offset support, and search mode.
810
811 2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
812
813         * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
814           If a CRLF text file happens to have CR at offset HOWMANY - 1
815           (currently 0xffff), it should not be counted as CR line
816           terminator.
817           If a line has length exactly MAXLINELEN, it should not yet be
818           treated as a ``very long line'', as MAXLINELEN is ``longest sane
819           line length''.
820           With CRLF, the line length was not computed correctly, and even
821           lines of length MAXLINELEN - 1 were treated as ``very long''.
822
823 2004-12-07 14:15  Christos Zoulas  <christos@astron.com>
824
825         * bzip2 needs a lot of input buffer space on some files
826           before it can begin uncompressing. This makes file -z
827           fail on some bz2 files. Fix it by giving it a copy of
828           the file descriptor to read as much as it wants if we
829           have access to it. <christos@astron.com>
830
831 2004-11-24 12:39  Christos Zoulas  <christos@astron.com>
832
833         * Stack smash fix, and ELF more conservative reading.
834           Jakub Bogusz <qboosh@pld-linux.org>
835
836 2004-11-20 18:50  Christos Zoulas  <christos@astron.com>
837
838         * New FreeBSD version parsing code:
839           Jon Noack <noackjr@alumni.rice.edu>
840
841         * Hackish support for ucs16 strings <christos@astron.com>
842
843 2004-11-13 03:07  Christos Zoulas  <christos@astron.com>
844
845         * print the file name and line number in syntax errors.
846
847 2004 10-12 10:50  Christos Zoulas  <christos@astron.com>
848
849         * Fix stack overwriting on 0 length strings: Tim Waugh
850             <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
851
852 2004-09-27 11:30  Christos Zoulas  <christos@astron.com>
853
854         * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
855
856         * Fix small memory leaks; caught by: Tamas Sarlos
857             <stamas@csillag.ilab.sztaki.hu>
858
859 2004-07-24 16:33  Christos Zoulas  <christos@astron.com>
860
861         * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
862
863         * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
864
865         * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
866
867         * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
868
869 2004-04-12 10:55  Christos Zoulas  <christos@astron.com>
870
871         * make sure that magic formats match magic types during compilation
872
873         * fix broken sgi magic file
874
875 2004-04-06 20:36  Christos Zoulas  <christos@astron.com>
876
877         * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
878
879         * magic fixes
880
881 2004-03-22 15:25  Christos Zoulas  <christos@astron.com>
882
883         * Lots of mime fixes
884           (Joerg Ostertag) <ostertag@rechengilde.de>
885
886         * FreeBSD ELF version handling
887           (Edwin Groothuis) <edwin@mavetju.org>
888
889         * correct cleanup in all cases; don't just close the file.
890           (Christos Zoulas) <christos@astron.com>
891
892         * add gettext message catalogue support
893           (Michael Piefel) <piefel@debian.org>
894
895         * better printout for unreadable files
896           (Michael Piefel) <piefel@debian.org>
897
898         * compensate for missing MAXPATHLEN
899           (Michael Piefel) <piefel@debian.org>
900
901         * add wide character string length computation
902           (Michael Piefel) <piefel@debian.org>
903
904         * Avoid infinite loops caused by bad elf alignments
905           or name and description note sizes. Reported by
906           (Mikael Magnusson) <mmikael@comhem.se>
907
908 2004-03-09 13:55  Christos Zoulas  <christos@astron.com>
909
910         * Fix possible memory leak on error and add missing regfree
911           (Dmitry V. Levin) <ldv@altlinux.org>
912
913 2003-12-23 12:12  Christos Zoulas  <christos@astron.com>
914
915         * fix -k flag (Maciej W. Rozycki)
916
917 2003-11-18 14:10  Christos Zoulas  <christos@astron.com>
918
919         * Try to give us much info as possible on corrupt elf files.
920           (Willy Tarreau) <willy@w.ods.org>
921         * Updated python bindings (Brett Funderburg)
922            <brettf@deepfile.com>
923
924 2003-11-11 15:03  Christos Zoulas  <christos@astron.com>
925
926         * Include file.h first, because it includes config.h
927           breaks largefile test macros otherwise.
928           (Paul Eggert <eggert@CS.UCLA.EDU> via
929            Lars Hecking <lhecking@nmrc.ie>)
930
931 2003-10-14 21:39  Christos Zoulas  <christos@astron.com>
932
933         * Python bindings (Brett Funderburg) <brettf@deepfile.com>
934         * Don't lookup past the end of the buffer
935           (Chad Hanson) <chanson@tcs-sec.com>
936         * Add MAGIC_ERROR and api on magic_errno()
937
938 2003-10-08 12:40  Christos Zoulas  <christos@astron.com>
939
940         * handle error conditions from compile as fatal
941           (Antti Kantee) <pooka@netbsd.org>
942         * handle magic filename parsing sanely
943         * more magic fixes.
944         * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
945         * describe magic file handling
946           (Bryan Henderson) <bryanh@giraffe-data.com>
947
948 2003-09-12 15:09  Christos Zoulas  <christos@astron.com>
949
950         * update magic files.
951         * remove largefile support from file.h; it breaks things on most OS's
952
953 2003-08-10 10:25  Christos Zoulas  <christos@astron.com>
954
955         * fix unmapping'ing of mmaped files.
956
957 2003-07-10 12:03  Christos Zoulas  <christos@astron.com>
958
959         * don't exit with -1 on error; always exit 1 (Marty Leisner)
960         * restore utimes code.
961
962 2003-06-10 17:03  Christos Zoulas  <christos@astron.com>
963
964         * make sure we don't access uninitialized memory.
965         * pass lint
966         * #ifdef __cplusplus in magic.h
967
968 2003-05-25 19:23  Christos Zoulas  <christos@astron.com>
969
970         * rename cvs magic file to revision to deal with
971           case insensitive filesystems.
972
973 2003-05-23 17:03  Christos Zoulas  <christos@astron.com>
974
975         * documentation fixes from Michael Piefel <piefel@debian.org>
976         * magic fixes (various)
977         * revert basename magic in .mgc name determination
978         * buffer protection in uncompress,
979           signness issues,
980           close files
981           Maciej W. Rozycki <macro@ds2.pg.gda.pl
982
983 2003-04-21 20:12  Christos Zoulas  <christos@astron.com>
984
985         * fix zsh magic
986
987 2003-04-04 16:59  Christos Zoulas  <christos@astron.com>
988
989         * fix operand sort order in string.
990
991 2003-04-02 17:30  Christos Zoulas  <christos@astron.com>
992
993         * cleanup namespace in magic.h
994
995 2003-04-02 13:50  Christos Zoulas  <christos@astron.com>
996
997         * Magic additions (Alex Ott)
998         * Fix bug that broke VPATH compilation (Peter Breitenlohner)
999
1000 2003-03-28 16:03  Christos Zoulas  <christos@astron.com>
1001
1002         * remove packed attribute from magic struct.
1003         * make the magic struct properly aligned.
1004         * bump version number of compiled files to 2.
1005
1006 2003-03-27 13:10  Christos Zoulas  <christos@astron.com>
1007
1008         * separate tar detection and run it before softmagic.
1009         * fix reversed symlink test.
1010         * fix version printing.
1011         * make separator a string instead of a char.
1012         * update manual page and sort options.
1013
1014 2003-03-26 11:00  Christos Zoulas  <christos@astron.com>
1015
1016         * Pass lint
1017         * make NULL in magic_file mean stdin
1018         * Fix "-" argument to file to pass NULL to magic_file
1019         * avoid pointer casts by using memcpy
1020         * rename magic_buf -> magic_buffer
1021         * keep only the first error
1022         * manual page: new sentence, new line
1023         * fix typo in api function (magic_buf -> magic_buffer)