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