1 2011-03-30 15:45 Christos Zoulas <christos@zoulas.com>
3 * Fix cdf string buffer setting (Sven Anders)
5 2011-03-20 16:35 Christos Zoulas <christos@zoulas.com>
7 * Eliminate MAXPATHLEN and use dynamic allocation for
10 2011-03-15 18:15 Christos Zoulas <christos@zoulas.com>
12 * binary tests on magic entries with masks could spuriously
13 get converted to ascii.
15 2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org>
17 * Improve file.man (remove BUGS, present email addresses consistently).
19 2011-03-07 19:38 Christos Zoulas <christos@zoulas.com>
21 * add lrzip support (from Ville Skytta)
23 2011-02-10 16:36 Christos Zoulas <christos@zoulas.com>
25 * fix CDF bounds checking (Guy Helmer)
27 2011-02-10 12:03 Christos Zoulas <christos@zoulas.com>
29 * add cdf_ctime() that prints a meaningful error when time cannot
32 2011-02-02 20:40 Christos Zoulas <christos@zoulas.com>
34 * help and version output to stdout.
36 * When matching softmagic for ascii files, don't just print
37 the softmagic classification, keep going and print the
38 text classification too. This fixes broken troff files when
39 we moved them from keyword recognition to softmagic
40 (they stopped printing "with CRLF" etc.)
41 Reported by Doug McIlroy.
43 2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org>
45 * Fix two potential buffer overruns in apprentice_list.
47 2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org>
49 * New Python binding in pure Python.
52 2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org>
54 * Fix Python bindings (including recent Python 3 compatibility
57 2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org>
59 * magic/Makefile.am: make it easier to recover from magic build failures.
60 * Fix pstring length specifier parsing to avoid generating invalid
62 * Add pstring length "J" (for "JPEG") to specify that the length
64 * Fix JPEG comment parsing at last using pstring/HJ!
65 * Ignore section 5 man pages in doc/.cvsignore.
67 2010-12-22 13:12 Christos Zoulas <christos@zoulas.com>
69 * Add pstring/BHhLl to specify the type of the length of pascal
72 2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org>
74 * Fix "-e soft": it was ignored when softmagic was called
76 * Improve comments and use "unsigned char" in tar.h/is_tar.c.
78 2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org>
80 * Make bug reporting addresses more visible.
82 2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org>
84 * Add tcl magic from Gustaf Neumann
86 2010-10-24 10:42 Christos Zoulas <christos@zoulas.com>
88 * Fix the whitespace comparing code (Christopher Chittleborough)
90 2010-10-06 21:05 Christos Zoulas <christos@zoulas.com>
92 * allow string/t to work (Jan Kaluza)
94 2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org>
96 * Apply some patches from Ubuntu and Fedora.
98 2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org>
100 * Apply all patches from Debian package 5.04-6 which have not
101 already been applied and are not Debian-specific.
103 2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org>
105 * Minor security fix to softmagic.c (don't use untrusted
106 string as printf format).
108 2010-07-21 12:20 Christos Zoulas <christos@zoulas.com>
110 * MINGW32 portability from LRN
112 * Don't warn about escaping magic regex chars when we are in a regex.
114 2010-07-19 10:55 Christos Zoulas <christos@zoulas.com>
116 * Only try to print prpsinfo for core files. (Jan Kaluza)
118 2010-04-22 12:55 Christos Zoulas <christos@zoulas.com>
120 * Try more elf offsets for Debian core files. (Arnaud Giersch)
122 2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org>
124 * Clarify which sort of CDF we mean.
126 2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org>
128 * Re-jig Zip file type magic so that unsupported special
129 Zip types (those with "mimetype" at offset 30) can be
132 2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org>
134 * Add support for OCF (EPUB) files (application/epub+zip)
136 2010-01-28 18:25 Christos Zoulas <christos@zoulas.com>
138 * Fix core-dump from unbound loop:
139 https://bugzilla.redhat.com/show_bug.cgi?id=533245
141 2010-01-22 15:45 Christos Zoulas <christos@zoulas.com>
143 * print proper mime for crystal reports file
145 * print the last summary information of a cdf document, not the
146 first so that nested documents print the right info
148 2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org>
150 * bring back some fixes from OpenBSD:
151 - make gcc2 builds file
152 - fix typos in a magic file comment
154 2009-11-17 18:35 Christos Zoulas <christos@zoulas.com>
156 * ctime/asctime can return NULL on some OS's although
157 they should not (Toshit Antani)
159 2009-09-14 13:49 Christos Zoulas <christos@zoulas.com>
161 * Centralize magic path handling routines and remove the
162 special-casing from file.c so that the python module for
163 example comes up with the same magic path (Fixes ~/.magic
166 2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org>
168 * When magic argument is a directory, read the files in
169 strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
171 2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org>
173 * Combine overlapping epoc and psion magic files into one (epoc).
175 * Add some more EPOC MIME types.
177 2009-08-19 15:55 Christos Zoulas <christos@zoulas.com>
179 * Fix 3 bugs (From Ian Darwin):
180 - file_showstr could move one past the end of the array
181 - parse_apple did not nul terminate the string in the overflow case
182 - parse_mime truncated the wrong string in the overflow case
184 2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net>
186 * Include Localstuff when compiling magic.
188 2009-07-15 10:05 Christos Zoulas <christos@zoulas.com>
190 * Fix logic for including mygetopts.h
192 * Make cdf.c compile again with debugging
194 * Add the necessary field handling for crystal reports files to work
196 2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org>
198 * Stop "(if" identifying Lisp files, that's plain dumb!
200 2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org>
202 * Add a couple of missing MP3 MIME types.
204 2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org>
206 * Add full range of hash-bang tests for Python and Ruby.
208 * Add MIME types for Python and Ruby scripts.
210 2009-05-13 10:44 Christos Zoulas <christos@zoulas.com>
212 * off by one in parsing hw capabilities in elf
215 2009-05-08 13:40 Christos Zoulas <christos@zoulas.com>
217 * lint fixes and more from NetBSD
219 2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
221 * Avoid null dereference in cdf code (Drew Yao)
223 * More cdf bounds checks and overflow checks
225 2009-05-01 18:37 Christos Zoulas <christos@zoulas.com>
227 * Buffer overflow fixes from Drew Yao
229 2009-04-30 17:10 Christos Zoulas <christos@zoulas.com>
231 * Fix more cdf lossage. All the documents I have
232 right now print the correct information.
234 2009-03-27 18:43 Christos Zoulas <christos@zoulas.com>
236 * don't print \012- separators in the same magic entry
237 if it consists of multiple magic printing lines.
239 2009-03-23 10:20 Christos Zoulas <christos@zoulas.com>
241 * Avoid file descriptor leak in compress code from
244 2009-03-18 16:50 Christos Zoulas <christos@zoulas.com>
246 * Allow escaping of relation characters, so that we can say \^[A-Z]
247 and the ^ is not eaten as a relation char.
249 * Fix troff and fortran to their previous glory using
250 regex. This was broken since their removel from ascmagic.
252 2009-03-10 16:50 Christos Zoulas <christos@zoulas.com>
254 * don't use strlen in strndup() (Toby Peterson)
256 2009-03-10 7:45 Christos Zoulas <christos@zoulas.com>
260 2009-02-23 15:45 Christos Zoulas <christos@zoulas.com>
262 * make the cdf code use the buffer first if available,
263 and then the fd code.
265 2009-02-13 13:45 Christos Zoulas <christos@zoulas.com>
267 * look for struct option to determine if getopt.h is usable for IRIX.
269 * sanitize cdf document strings
271 2009-02-04 13:25 Christos Zoulas <christos@zoulas.com>
275 2008-12-12 15:50 Christos Zoulas <christos@zoulas.com>
277 * fix initial offset calculation for non 4K sector files
279 * add loop limits to avoid DoS attacks by constructing
280 looping sector references.
282 2008-12-03 13:05 Christos Zoulas <christos@zoulas.com>
284 * fix memory botches on cdf file parsing.
286 * exit with non-zero value for any error, not just for the last
289 2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org>
291 * Replace all str{cpy,cat} functions with strl{cpy,cat}
292 * Ensure that strl{cpy,cat} are included in libmagic,
295 2008-11-06 18:18 Christos Zoulas <christos@zoulas.com>
297 * Handle ID3 format files.
299 2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org>
301 * Fix --mime, --mime-type and --mime-encoding under new scheme.
303 * Rename "ascii" to "text" and add "encoding" test.
305 * Return a precise ("utf-16le" or "utf-16be") MIME charset for
308 * Fix error in comment caused by automatic indentation adding
311 2008-11-06 10:35 Christos Zoulas <christos@astron.com>
313 * use memchr instead of strchr because the string
314 might not be NUL terminated (Scott MacVicar)
316 2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org>
318 * Fix a printf with a non-literal format string.
320 * Fix formatting and punctuation of help for "--apple".
322 2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org>
324 * Correct words counts in comments of struct magic.
326 * Fix handle_annotation to allow both Apple and MIME types to be
327 printed, and to return correct code if MIME type is
328 printed (1, not 0) or if there's an error (-1 not 1).
330 * Fix output of charset for MIME type (precede with semi-colon;
331 fixes Debian bug #501460).
333 * Fix potential attacks via conversion specifications in magic
336 * Add a FIXME for Debian bug #488562 (magic files should be
337 read in a defined order, by sorting the names).
339 2008-10-18 16:45 Christos Zoulas <christos@astron.com>
341 * Added APPLE file creator/type
343 2008-10-12 10:20 Christos Zoulas <christos@astron.com>
347 2008-10-09 16:40 Christos Zoulas <christos@astron.com>
349 * filesystem and msdos patches (Joerg Jenderek)
351 2008-10-09 13:20 Christos Zoulas <christos@astron.com>
353 * correct --exclude documentation issues: remove troff and fortran
354 and rename "token" to "tokens". (Randy McMurchy)
356 2008-10-01 10:30 Christos Zoulas <christos@astron.com>
358 * Read ~/.magic in addition to the default magic file not instead
359 of, as documented in the man page.
361 2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org>
363 * Comment out graphviz patterns, as they match too many files.
365 2008-08-30 12:54 Christos Zoulas <christos@astron.com>
367 * Don't eat trailing \n in magic enties.
369 * Cast defines to allow compilation using a c++ compiler.
371 2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org>
373 * Add text/x-lua MIME type for Lua scripts.
375 * Escape { in regex in graphviz patterns.
377 2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org>
379 * Add MIME types for special files.
381 * Use access to give more accurate information for files that
386 2008-07-02 11:15 Christos Zoulas <christos@astron.com>
388 * add !:strength op to adjust magic strength (experimental)
390 2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org>
392 * Fix automake error in configure.ac.
394 * Add MIME type for Psion Sketch files.
396 2008-06-05 08:59 Christos Zoulas <christos@astron.com>
398 * Don't print warnings about bad namesize in stripped
399 binaries with PT_NOTE is still there, and the actual
400 note is gone (Jakub Jelinek)
402 2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net>
405 Note invalid byte order for little-endian SPARC32PLUS.
406 Add SPARC V9 vendor extensions and memory model.
409 Pass target machine to doshn (for Solaris hardware capabilities).
411 * src/readelf.c (doshn):
412 Add support for Solaris hardware/software capabilities.
417 * src/vasprintf.c (dispatch):
418 Add support for ll modifier.
420 2008-05-16 10:25 Christos Zoulas <christos@astron.com>
422 * Fix compiler warnings.
424 * remove stray printf, and fix a vprintf bug. (Martin Dorey)
426 2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net>
429 Ensure that getopt_long and [v]asprintf are included in libmagic,
432 Remove unnecessary EXTRA_DIST.
437 * src/vasprintf.c (dispatch):
438 Fix variable precision bug: be sure to step past '*'.
440 * src/vasprintf.c (core):
441 Remove unreachable code.
443 * src/apprentice.c (set_test_type):
444 Add cast to avoid compiler warning.
446 2008-04-22 23:45 Christos Zoulas <christos@astron.com>
448 * Add magic submission guidelines (Abel Cheung)
450 * split msdos and windows magic (Abel Cheung)
452 2008-04-04 11:00 Christos Zoulas <christos@astron.com>
454 * >= <= is not supported, so fix the magic and warn about it.
455 reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
457 2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
459 * src/readelf.c (donote):
460 ELF core file command name/line bug fixes and enhancements:
462 Try larger offsets first to avoid false matches
463 from earlier data that happen to look like strings;
464 this primarily affected SunOS 5.x 32-bit Intel core files.
466 Add support for command line (instead of just short name)
469 Add information about NT_PSINFO for SunOS 5.x.
471 Only trim whitespace from end of command line.
473 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
475 * Change strength of ! from MULT to 0, as it matches almost
476 anything (Reuben Thomas)
478 * Debian fixes (Reuben Thomas)
480 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
482 * Clarify UTF-8 BOM message (Reuben Thomas)
484 * Add HTML comment to token list in names.h
486 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
488 * Debian fixes (Reuben Thomas)
490 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
492 * !:mime annotations in magic files (Reuben Thomas)
494 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
496 * zero out utime/utimes structs (Gavin Atkinson)
498 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
500 * reduce writable data from Diego "Flameeyes" Petten
502 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
506 * remove bogus regex magic that could cause a DoS
508 * better mismatch version message
510 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
512 * bring back some fixes from OpenBSD
514 * treat ELF dynamic objects as executables
518 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
520 * make sure we have zlib.h and libz to compile the builtin
523 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
525 * float and double magic support (Behan Webster)
527 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
529 * Convert fortran to a soft test (Reuben Thomas)
531 2007-10-23 5:25 Christos Zoulas <christos@astron.com>
533 * Add --with-filename, and --no-filename (Reuben Thomas)
535 2007-10-23 3:59 Christos Zoulas <christos@astron.com>
537 * Rest of the mime split (Reuben Thomas)
539 * Make usage message generated from the flags so that
540 they stay consistent (Reuben Thomas)
542 2007-10-20 3:06 Christos Zoulas <christos@astron.com>
544 * typo in comment, missing ifdef QUICK, remove unneeded code
547 2007-10-17 3:33 Christos Zoulas <christos@astron.com>
549 * Fix problem printing -\012 in some entries
551 * Separate magic type and encoding flags (Reuben Thomas)
553 2007-10-09 3:55 Christos Zoulas <christos@astron.com>
555 * configure fix for int64 and strndup (Reuben Thomas)
557 2007-09-26 4:45 Christos Zoulas <christos@astron.com>
559 * Add magic_descriptor() function.
561 * Fix regression in elf reading code where the core name was
564 * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
566 2007-08-19 6:30 Christos Zoulas <christos@astron.com>
568 * Make mime format consistent so that it can
570 mimetype [charset=character-set] [encoding=encoding-mime-type]
572 Remove spurious extra text from some MIME type printouts
575 Fix one case where -i produced nothing at all (for a 1-byte file,
576 which is now classed as application/octet-stream).
578 Remove 7/8bit classifications, since they were arbitrary
579 and not based on the file data.
581 This work was done by Reuben Thomas
583 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
585 * Fix another integer overflow (Colin Percival)
587 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
589 * make sure that all of struct magic_set is initialized appropriately
592 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
594 * reset left bytes in the buffer (Dmitry V. Levin)
596 * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
599 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
601 * fix fortran and nroff reversed tests (Dmitry V. Levin)
603 * fix exclude option (Dmitry V. Levin)
605 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
607 * fix integer underflow in file_printf which can lead to
608 to exploitable heap overflow (Jean-Sebastien Guay-Lero)
610 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
612 * make socket/pipe reading more robust
614 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
616 * Centralize all the tests in file_buffer.
620 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
622 * Move the "type" detection code from parse() into its own table
623 driven routine. This avoids maintaining multiple lists in
626 * Add an optional conditional field (ust before the type field).
627 This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
630 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
632 * Fix an initialization bug in check_mem().
634 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
636 * Add a "default" type to print a message if nothing previously
637 matched at that level or since the last default at that
638 level. This is useful for setting up switch-like statements.
639 It can also be used to do if/else constructions without a
640 redundant second test.
642 * Fix the "x" special case test so that one can test for that
645 * Allow "search" to search the entire buffer if the "/N"
646 search count is missing.
648 * Make "regex" work! It now starts its search at the
649 specified offset and takes an (optional) "/N" line count to
650 specify the search range; otherwise it searches to the end
651 of the file. The match is now grabbed correctly for format
652 strings and the offset set to the end of the match.
654 * Add a "/s" flag to "regex" and "search" to set the offset to
655 the start of the match. By default the offset is set to the
656 end of the match, as it is with other tests. This is mostly
659 * Make "search", "string" and "pstring" use the same
660 file_strncmp() routine so that they support the same flags;
661 "bestring16" and "lestring16" call the same routine, but
662 with flags = 0. Also add a "/C" flag (in analogy to "/c")
663 to ignore the case on uppercase (lowercase) characters in
666 * Strict adherence to C style string escapes. A warnings are
667 printed when compiling. Note: previously "\a" was
668 incorrectly translated to 'a' instead of an <alert> (i.e.,
669 BELL, typically 0x07).
671 * Make this compile with "-Wall -Wextra" and all the warning
672 flags used with WARNS=4 in the NetBSD source. Also make it
675 * Many "cleanups" and hopefully not too many new bugs!
677 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
679 * make several more files compile with gcc warnings
680 on and also make them pass lint.
682 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
684 * fix a puts()/putc() usage goof in file.c
686 * make file.c compile with gcc warnings and pass lint
688 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
690 * fix byteswapping issue
692 * report the number of bytes we tried to
693 allocate when allocation fails
695 * add a few missed cases in the strength routine
697 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
699 * store and print the line number of the magic
702 * if the magic entry did not print anything,
703 don't treat it as a match
705 * change the magic strength algorithm to take
706 into account the relationship op.
708 * fix a bug in search where we could accidentally
711 * propagate the error return from match to
714 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
716 * Don't store the current offset in the magic
717 struct, because it needs to be restored and
718 it was not done properly all the time. Bug
719 found by: Arkadiusz Miskiewicz
721 * Fix problem in the '\0' separator; and don't
722 print it as an additional separator; print
723 it as the only separator.
725 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
727 * Added a -0 option to print a '\0' separator
728 Etienne Buira <etienne.buira@free.fr>
730 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
732 * Check offset before copying (Mike Frysinger)
734 * merge duplicated code
736 * add quad date support
738 * make sure that we nul terminate desc (Ryoji Kanai)
740 * don't process elf notes multiple times
742 * allow -z to report empty compressed files
744 * use calloc to initialize the ascii buffers (Jos van den Oever)
746 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
748 * QNX fixes (Mike Gorchak)
752 * FIFO checks (Dr. Werner Fink)
754 * Linux ELF fixes (Dr. Werner Fink)
756 * Magic format checks (Dr. Werner Fink)
758 * Magic format function improvent (Karl Chen)
760 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
762 * Pick up some elf changes and some constant fixes from SUSE
764 * Identify gnu tar vs. posix tar
766 * When keep going, don't print spurious newlines (Radek Vokál)
768 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
770 * Use calloc instead of malloc (Mike Frysinger)
772 * Fix configure script to detect wctypes.h (Mike Frysinger)
774 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
776 * Print empty if the file is (Mike Frysinger)
778 * Don't try to read past the end of the buffer (Mike Frysinger)
780 * Sort magic entries by strength [experimental]
782 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
784 * Use iswprint() to convert the output string.
787 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
789 * Fix regression where the core info was not completely processed
792 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
794 * Middle Endian magic (Diomidis Spinellis)
796 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
798 * Open with O_BINARY for CYGWIN (Corinna Vinschen)
800 * Don't close stdin (Arkadiusz Miskiewicz)
802 * Look for note sections in non executables.
804 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
806 * Don't print SVR4 Style in core files multiple times
809 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
811 * Cygwin changes Corinna Vinschen
813 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
815 * Remove erroreous mention of /etc/magic in the file man page
816 This is gentoo bug 101639. (Mike Frysinger)
818 * Cross-compile support and detection (Mike Frysinger)
820 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
822 * Add -h flag and dereference symlinks if POSIXLY_CORRECT
825 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
827 * Avoid search and regex buffer overflows (Kelledin)
829 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
831 * Provide stub implementations for {v,}nsprintf() for older
832 OS's that don't have them.
833 * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
834 to AC_TYPE_MBSTATE_T.
836 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
838 * Dynamically allocate the string buffers and make the
839 default read size 256K.
841 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
843 * Dragonfly ELF note support
845 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
847 * Avoid NULL pointer dereference in time conversion.
849 2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
851 * Add indirect magic offset support, and search mode.
853 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
855 * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
856 If a CRLF text file happens to have CR at offset HOWMANY - 1
857 (currently 0xffff), it should not be counted as CR line
859 If a line has length exactly MAXLINELEN, it should not yet be
860 treated as a ``very long line'', as MAXLINELEN is ``longest sane
862 With CRLF, the line length was not computed correctly, and even
863 lines of length MAXLINELEN - 1 were treated as ``very long''.
865 2004-12-07 14:15 Christos Zoulas <christos@astron.com>
867 * bzip2 needs a lot of input buffer space on some files
868 before it can begin uncompressing. This makes file -z
869 fail on some bz2 files. Fix it by giving it a copy of
870 the file descriptor to read as much as it wants if we
871 have access to it. <christos@astron.com>
873 2004-11-24 12:39 Christos Zoulas <christos@astron.com>
875 * Stack smash fix, and ELF more conservative reading.
876 Jakub Bogusz <qboosh@pld-linux.org>
878 2004-11-20 18:50 Christos Zoulas <christos@astron.com>
880 * New FreeBSD version parsing code:
881 Jon Noack <noackjr@alumni.rice.edu>
883 * Hackish support for ucs16 strings <christos@astron.com>
885 2004-11-13 03:07 Christos Zoulas <christos@astron.com>
887 * print the file name and line number in syntax errors.
889 2004 10-12 10:50 Christos Zoulas <christos@astron.com>
891 * Fix stack overwriting on 0 length strings: Tim Waugh
892 <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
894 2004-09-27 11:30 Christos Zoulas <christos@astron.com>
896 * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
898 * Fix small memory leaks; caught by: Tamas Sarlos
899 <stamas@csillag.ilab.sztaki.hu>
901 2004-07-24 16:33 Christos Zoulas <christos@astron.com>
903 * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
905 * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
907 * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
909 * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
911 2004-04-12 10:55 Christos Zoulas <christos@astron.com>
913 * make sure that magic formats match magic types during compilation
915 * fix broken sgi magic file
917 2004-04-06 20:36 Christos Zoulas <christos@astron.com>
919 * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
923 2004-03-22 15:25 Christos Zoulas <christos@astron.com>
926 (Joerg Ostertag) <ostertag@rechengilde.de>
928 * FreeBSD ELF version handling
929 (Edwin Groothuis) <edwin@mavetju.org>
931 * correct cleanup in all cases; don't just close the file.
932 (Christos Zoulas) <christos@astron.com>
934 * add gettext message catalogue support
935 (Michael Piefel) <piefel@debian.org>
937 * better printout for unreadable files
938 (Michael Piefel) <piefel@debian.org>
940 * compensate for missing MAXPATHLEN
941 (Michael Piefel) <piefel@debian.org>
943 * add wide character string length computation
944 (Michael Piefel) <piefel@debian.org>
946 * Avoid infinite loops caused by bad elf alignments
947 or name and description note sizes. Reported by
948 (Mikael Magnusson) <mmikael@comhem.se>
950 2004-03-09 13:55 Christos Zoulas <christos@astron.com>
952 * Fix possible memory leak on error and add missing regfree
953 (Dmitry V. Levin) <ldv@altlinux.org>
955 2003-12-23 12:12 Christos Zoulas <christos@astron.com>
957 * fix -k flag (Maciej W. Rozycki)
959 2003-11-18 14:10 Christos Zoulas <christos@astron.com>
961 * Try to give us much info as possible on corrupt elf files.
962 (Willy Tarreau) <willy@w.ods.org>
963 * Updated python bindings (Brett Funderburg)
964 <brettf@deepfile.com>
966 2003-11-11 15:03 Christos Zoulas <christos@astron.com>
968 * Include file.h first, because it includes config.h
969 breaks largefile test macros otherwise.
970 (Paul Eggert <eggert@CS.UCLA.EDU> via
971 Lars Hecking <lhecking@nmrc.ie>)
973 2003-10-14 21:39 Christos Zoulas <christos@astron.com>
975 * Python bindings (Brett Funderburg) <brettf@deepfile.com>
976 * Don't lookup past the end of the buffer
977 (Chad Hanson) <chanson@tcs-sec.com>
978 * Add MAGIC_ERROR and api on magic_errno()
980 2003-10-08 12:40 Christos Zoulas <christos@astron.com>
982 * handle error conditions from compile as fatal
983 (Antti Kantee) <pooka@netbsd.org>
984 * handle magic filename parsing sanely
986 * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
987 * describe magic file handling
988 (Bryan Henderson) <bryanh@giraffe-data.com>
990 2003-09-12 15:09 Christos Zoulas <christos@astron.com>
992 * update magic files.
993 * remove largefile support from file.h; it breaks things on most OS's
995 2003-08-10 10:25 Christos Zoulas <christos@astron.com>
997 * fix unmapping'ing of mmaped files.
999 2003-07-10 12:03 Christos Zoulas <christos@astron.com>
1001 * don't exit with -1 on error; always exit 1 (Marty Leisner)
1002 * restore utimes code.
1004 2003-06-10 17:03 Christos Zoulas <christos@astron.com>
1006 * make sure we don't access uninitialized memory.
1008 * #ifdef __cplusplus in magic.h
1010 2003-05-25 19:23 Christos Zoulas <christos@astron.com>
1012 * rename cvs magic file to revision to deal with
1013 case insensitive filesystems.
1015 2003-05-23 17:03 Christos Zoulas <christos@astron.com>
1017 * documentation fixes from Michael Piefel <piefel@debian.org>
1018 * magic fixes (various)
1019 * revert basename magic in .mgc name determination
1020 * buffer protection in uncompress,
1023 Maciej W. Rozycki <macro@ds2.pg.gda.pl
1025 2003-04-21 20:12 Christos Zoulas <christos@astron.com>
1029 2003-04-04 16:59 Christos Zoulas <christos@astron.com>
1031 * fix operand sort order in string.
1033 2003-04-02 17:30 Christos Zoulas <christos@astron.com>
1035 * cleanup namespace in magic.h
1037 2003-04-02 13:50 Christos Zoulas <christos@astron.com>
1039 * Magic additions (Alex Ott)
1040 * Fix bug that broke VPATH compilation (Peter Breitenlohner)
1042 2003-03-28 16:03 Christos Zoulas <christos@astron.com>
1044 * remove packed attribute from magic struct.
1045 * make the magic struct properly aligned.
1046 * bump version number of compiled files to 2.
1048 2003-03-27 13:10 Christos Zoulas <christos@astron.com>
1050 * separate tar detection and run it before softmagic.
1051 * fix reversed symlink test.
1052 * fix version printing.
1053 * make separator a string instead of a char.
1054 * update manual page and sort options.
1056 2003-03-26 11:00 Christos Zoulas <christos@astron.com>
1059 * make NULL in magic_file mean stdin
1060 * Fix "-" argument to file to pass NULL to magic_file
1061 * avoid pointer casts by using memcpy
1062 * rename magic_buf -> magic_buffer
1063 * keep only the first error
1064 * manual page: new sentence, new line
1065 * fix typo in api function (magic_buf -> magic_buffer)