1 2011-09-01 12:12 Christos Zoulas <christos@zoulas.com>
3 * Don't wait for any subprocess, just the one we forked.
5 2011-08-26 16:40 Christos Zoulas <christos@zoulas.com>
7 * If the application name is not set in a cdf file, try to see
8 if it has a directory with the application name on it.
10 2011-08-17 14:32 Christos Zoulas <christos@zoulas.com>
12 * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
14 2011-08-14 09:03 Christos Zoulas <christos@zoulas.com>
16 * Don't use variable string formats.
18 2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org>
20 * Fix detection of Zip files (Mantis #128).
21 * Make some minor improvements to file(1).
22 * Rename MIME types for filesystem objects for consistency with
23 xdg-utils. Typically this means that application/x-foo becomes
24 inode/foo, but some names also change slightly, e.g.
25 application/x-character-device becomes inode/chardevice.
27 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
29 * fix mingw compilation (Abradoks)
31 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
34 * Fix read past allocated memory caused by double-incrementing
35 a pointer in a loop (reported by Roberto Maar)
37 2011-03-30 15:45 Christos Zoulas <christos@zoulas.com>
39 * Fix cdf string buffer setting (Sven Anders)
41 2011-03-20 16:35 Christos Zoulas <christos@zoulas.com>
43 * Eliminate MAXPATHLEN and use dynamic allocation for
44 path and file buffers.
46 2011-03-15 18:15 Christos Zoulas <christos@zoulas.com>
48 * binary tests on magic entries with masks could spuriously
49 get converted to ascii.
51 2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org>
53 * Improve file.man (remove BUGS, present email addresses consistently).
55 2011-03-07 19:38 Christos Zoulas <christos@zoulas.com>
57 * add lrzip support (from Ville Skytta)
59 2011-02-10 16:36 Christos Zoulas <christos@zoulas.com>
61 * fix CDF bounds checking (Guy Helmer)
63 2011-02-10 12:03 Christos Zoulas <christos@zoulas.com>
65 * add cdf_ctime() that prints a meaningful error when time cannot
68 2011-02-02 20:40 Christos Zoulas <christos@zoulas.com>
70 * help and version output to stdout.
72 * When matching softmagic for ascii files, don't just print
73 the softmagic classification, keep going and print the
74 text classification too. This fixes broken troff files when
75 we moved them from keyword recognition to softmagic
76 (they stopped printing "with CRLF" etc.)
77 Reported by Doug McIlroy.
79 2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org>
81 * Fix two potential buffer overruns in apprentice_list.
83 2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org>
85 * New Python binding in pure Python.
88 2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org>
90 * Fix Python bindings (including recent Python 3 compatibility
93 2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org>
95 * magic/Makefile.am: make it easier to recover from magic build failures.
96 * Fix pstring length specifier parsing to avoid generating invalid
98 * Add pstring length "J" (for "JPEG") to specify that the length
100 * Fix JPEG comment parsing at last using pstring/HJ!
101 * Ignore section 5 man pages in doc/.cvsignore.
103 2010-12-22 13:12 Christos Zoulas <christos@zoulas.com>
105 * Add pstring/BHhLl to specify the type of the length of pascal
108 2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org>
110 * Fix "-e soft": it was ignored when softmagic was called
112 * Improve comments and use "unsigned char" in tar.h/is_tar.c.
114 2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org>
116 * Make bug reporting addresses more visible.
118 2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org>
120 * Add tcl magic from Gustaf Neumann
122 2010-10-24 10:42 Christos Zoulas <christos@zoulas.com>
124 * Fix the whitespace comparing code (Christopher Chittleborough)
126 2010-10-06 21:05 Christos Zoulas <christos@zoulas.com>
128 * allow string/t to work (Jan Kaluza)
130 2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org>
132 * Apply some patches from Ubuntu and Fedora.
134 2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org>
136 * Apply all patches from Debian package 5.04-6 which have not
137 already been applied and are not Debian-specific.
139 2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org>
141 * Minor security fix to softmagic.c (don't use untrusted
142 string as printf format).
144 2010-07-21 12:20 Christos Zoulas <christos@zoulas.com>
146 * MINGW32 portability from LRN
148 * Don't warn about escaping magic regex chars when we are in a regex.
150 2010-07-19 10:55 Christos Zoulas <christos@zoulas.com>
152 * Only try to print prpsinfo for core files. (Jan Kaluza)
154 2010-04-22 12:55 Christos Zoulas <christos@zoulas.com>
156 * Try more elf offsets for Debian core files. (Arnaud Giersch)
158 2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org>
160 * Clarify which sort of CDF we mean.
162 2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org>
164 * Re-jig Zip file type magic so that unsupported special
165 Zip types (those with "mimetype" at offset 30) can be
168 2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org>
170 * Add support for OCF (EPUB) files (application/epub+zip)
172 2010-01-28 18:25 Christos Zoulas <christos@zoulas.com>
174 * Fix core-dump from unbound loop:
175 https://bugzilla.redhat.com/show_bug.cgi?id=533245
177 2010-01-22 15:45 Christos Zoulas <christos@zoulas.com>
179 * print proper mime for crystal reports file
181 * print the last summary information of a cdf document, not the
182 first so that nested documents print the right info
184 2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org>
186 * bring back some fixes from OpenBSD:
187 - make gcc2 builds file
188 - fix typos in a magic file comment
190 2009-11-17 18:35 Christos Zoulas <christos@zoulas.com>
192 * ctime/asctime can return NULL on some OS's although
193 they should not (Toshit Antani)
195 2009-09-14 13:49 Christos Zoulas <christos@zoulas.com>
197 * Centralize magic path handling routines and remove the
198 special-casing from file.c so that the python module for
199 example comes up with the same magic path (Fixes ~/.magic
202 2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org>
204 * When magic argument is a directory, read the files in
205 strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
207 2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org>
209 * Combine overlapping epoc and psion magic files into one (epoc).
211 * Add some more EPOC MIME types.
213 2009-08-19 15:55 Christos Zoulas <christos@zoulas.com>
215 * Fix 3 bugs (From Ian Darwin):
216 - file_showstr could move one past the end of the array
217 - parse_apple did not nul terminate the string in the overflow case
218 - parse_mime truncated the wrong string in the overflow case
220 2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net>
222 * Include Localstuff when compiling magic.
224 2009-07-15 10:05 Christos Zoulas <christos@zoulas.com>
226 * Fix logic for including mygetopts.h
228 * Make cdf.c compile again with debugging
230 * Add the necessary field handling for crystal reports files to work
232 2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org>
234 * Stop "(if" identifying Lisp files, that's plain dumb!
236 2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org>
238 * Add a couple of missing MP3 MIME types.
240 2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org>
242 * Add full range of hash-bang tests for Python and Ruby.
244 * Add MIME types for Python and Ruby scripts.
246 2009-05-13 10:44 Christos Zoulas <christos@zoulas.com>
248 * off by one in parsing hw capabilities in elf
251 2009-05-08 13:40 Christos Zoulas <christos@zoulas.com>
253 * lint fixes and more from NetBSD
255 2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
257 * Avoid null dereference in cdf code (Drew Yao)
259 * More cdf bounds checks and overflow checks
261 2009-05-01 18:37 Christos Zoulas <christos@zoulas.com>
263 * Buffer overflow fixes from Drew Yao
265 2009-04-30 17:10 Christos Zoulas <christos@zoulas.com>
267 * Fix more cdf lossage. All the documents I have
268 right now print the correct information.
270 2009-03-27 18:43 Christos Zoulas <christos@zoulas.com>
272 * don't print \012- separators in the same magic entry
273 if it consists of multiple magic printing lines.
275 2009-03-23 10:20 Christos Zoulas <christos@zoulas.com>
277 * Avoid file descriptor leak in compress code from
280 2009-03-18 16:50 Christos Zoulas <christos@zoulas.com>
282 * Allow escaping of relation characters, so that we can say \^[A-Z]
283 and the ^ is not eaten as a relation char.
285 * Fix troff and fortran to their previous glory using
286 regex. This was broken since their removel from ascmagic.
288 2009-03-10 16:50 Christos Zoulas <christos@zoulas.com>
290 * don't use strlen in strndup() (Toby Peterson)
292 2009-03-10 7:45 Christos Zoulas <christos@zoulas.com>
296 2009-02-23 15:45 Christos Zoulas <christos@zoulas.com>
298 * make the cdf code use the buffer first if available,
299 and then the fd code.
301 2009-02-13 13:45 Christos Zoulas <christos@zoulas.com>
303 * look for struct option to determine if getopt.h is usable for IRIX.
305 * sanitize cdf document strings
307 2009-02-04 13:25 Christos Zoulas <christos@zoulas.com>
311 2008-12-12 15:50 Christos Zoulas <christos@zoulas.com>
313 * fix initial offset calculation for non 4K sector files
315 * add loop limits to avoid DoS attacks by constructing
316 looping sector references.
318 2008-12-03 13:05 Christos Zoulas <christos@zoulas.com>
320 * fix memory botches on cdf file parsing.
322 * exit with non-zero value for any error, not just for the last
325 2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org>
327 * Replace all str{cpy,cat} functions with strl{cpy,cat}
328 * Ensure that strl{cpy,cat} are included in libmagic,
331 2008-11-06 18:18 Christos Zoulas <christos@zoulas.com>
333 * Handle ID3 format files.
335 2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org>
337 * Fix --mime, --mime-type and --mime-encoding under new scheme.
339 * Rename "ascii" to "text" and add "encoding" test.
341 * Return a precise ("utf-16le" or "utf-16be") MIME charset for
344 * Fix error in comment caused by automatic indentation adding
347 2008-11-06 10:35 Christos Zoulas <christos@astron.com>
349 * use memchr instead of strchr because the string
350 might not be NUL terminated (Scott MacVicar)
352 2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org>
354 * Fix a printf with a non-literal format string.
356 * Fix formatting and punctuation of help for "--apple".
358 2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org>
360 * Correct words counts in comments of struct magic.
362 * Fix handle_annotation to allow both Apple and MIME types to be
363 printed, and to return correct code if MIME type is
364 printed (1, not 0) or if there's an error (-1 not 1).
366 * Fix output of charset for MIME type (precede with semi-colon;
367 fixes Debian bug #501460).
369 * Fix potential attacks via conversion specifications in magic
372 * Add a FIXME for Debian bug #488562 (magic files should be
373 read in a defined order, by sorting the names).
375 2008-10-18 16:45 Christos Zoulas <christos@astron.com>
377 * Added APPLE file creator/type
379 2008-10-12 10:20 Christos Zoulas <christos@astron.com>
383 2008-10-09 16:40 Christos Zoulas <christos@astron.com>
385 * filesystem and msdos patches (Joerg Jenderek)
387 2008-10-09 13:20 Christos Zoulas <christos@astron.com>
389 * correct --exclude documentation issues: remove troff and fortran
390 and rename "token" to "tokens". (Randy McMurchy)
392 2008-10-01 10:30 Christos Zoulas <christos@astron.com>
394 * Read ~/.magic in addition to the default magic file not instead
395 of, as documented in the man page.
397 2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org>
399 * Comment out graphviz patterns, as they match too many files.
401 2008-08-30 12:54 Christos Zoulas <christos@astron.com>
403 * Don't eat trailing \n in magic enties.
405 * Cast defines to allow compilation using a c++ compiler.
407 2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org>
409 * Add text/x-lua MIME type for Lua scripts.
411 * Escape { in regex in graphviz patterns.
413 2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org>
415 * Add MIME types for special files.
417 * Use access to give more accurate information for files that
422 2008-07-02 11:15 Christos Zoulas <christos@astron.com>
424 * add !:strength op to adjust magic strength (experimental)
426 2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org>
428 * Fix automake error in configure.ac.
430 * Add MIME type for Psion Sketch files.
432 2008-06-05 08:59 Christos Zoulas <christos@astron.com>
434 * Don't print warnings about bad namesize in stripped
435 binaries with PT_NOTE is still there, and the actual
436 note is gone (Jakub Jelinek)
438 2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net>
441 Note invalid byte order for little-endian SPARC32PLUS.
442 Add SPARC V9 vendor extensions and memory model.
445 Pass target machine to doshn (for Solaris hardware capabilities).
447 * src/readelf.c (doshn):
448 Add support for Solaris hardware/software capabilities.
453 * src/vasprintf.c (dispatch):
454 Add support for ll modifier.
456 2008-05-16 10:25 Christos Zoulas <christos@astron.com>
458 * Fix compiler warnings.
460 * remove stray printf, and fix a vprintf bug. (Martin Dorey)
462 2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net>
465 Ensure that getopt_long and [v]asprintf are included in libmagic,
468 Remove unnecessary EXTRA_DIST.
473 * src/vasprintf.c (dispatch):
474 Fix variable precision bug: be sure to step past '*'.
476 * src/vasprintf.c (core):
477 Remove unreachable code.
479 * src/apprentice.c (set_test_type):
480 Add cast to avoid compiler warning.
482 2008-04-22 23:45 Christos Zoulas <christos@astron.com>
484 * Add magic submission guidelines (Abel Cheung)
486 * split msdos and windows magic (Abel Cheung)
488 2008-04-04 11:00 Christos Zoulas <christos@astron.com>
490 * >= <= is not supported, so fix the magic and warn about it.
491 reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
493 2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
495 * src/readelf.c (donote):
496 ELF core file command name/line bug fixes and enhancements:
498 Try larger offsets first to avoid false matches
499 from earlier data that happen to look like strings;
500 this primarily affected SunOS 5.x 32-bit Intel core files.
502 Add support for command line (instead of just short name)
505 Add information about NT_PSINFO for SunOS 5.x.
507 Only trim whitespace from end of command line.
509 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
511 * Change strength of ! from MULT to 0, as it matches almost
512 anything (Reuben Thomas)
514 * Debian fixes (Reuben Thomas)
516 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
518 * Clarify UTF-8 BOM message (Reuben Thomas)
520 * Add HTML comment to token list in names.h
522 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
524 * Debian fixes (Reuben Thomas)
526 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
528 * !:mime annotations in magic files (Reuben Thomas)
530 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
532 * zero out utime/utimes structs (Gavin Atkinson)
534 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
536 * reduce writable data from Diego "Flameeyes" Petten
538 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
542 * remove bogus regex magic that could cause a DoS
544 * better mismatch version message
546 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
548 * bring back some fixes from OpenBSD
550 * treat ELF dynamic objects as executables
554 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
556 * make sure we have zlib.h and libz to compile the builtin
559 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
561 * float and double magic support (Behan Webster)
563 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
565 * Convert fortran to a soft test (Reuben Thomas)
567 2007-10-23 5:25 Christos Zoulas <christos@astron.com>
569 * Add --with-filename, and --no-filename (Reuben Thomas)
571 2007-10-23 3:59 Christos Zoulas <christos@astron.com>
573 * Rest of the mime split (Reuben Thomas)
575 * Make usage message generated from the flags so that
576 they stay consistent (Reuben Thomas)
578 2007-10-20 3:06 Christos Zoulas <christos@astron.com>
580 * typo in comment, missing ifdef QUICK, remove unneeded code
583 2007-10-17 3:33 Christos Zoulas <christos@astron.com>
585 * Fix problem printing -\012 in some entries
587 * Separate magic type and encoding flags (Reuben Thomas)
589 2007-10-09 3:55 Christos Zoulas <christos@astron.com>
591 * configure fix for int64 and strndup (Reuben Thomas)
593 2007-09-26 4:45 Christos Zoulas <christos@astron.com>
595 * Add magic_descriptor() function.
597 * Fix regression in elf reading code where the core name was
600 * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
602 2007-08-19 6:30 Christos Zoulas <christos@astron.com>
604 * Make mime format consistent so that it can
606 mimetype [charset=character-set] [encoding=encoding-mime-type]
608 Remove spurious extra text from some MIME type printouts
611 Fix one case where -i produced nothing at all (for a 1-byte file,
612 which is now classed as application/octet-stream).
614 Remove 7/8bit classifications, since they were arbitrary
615 and not based on the file data.
617 This work was done by Reuben Thomas
619 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
621 * Fix another integer overflow (Colin Percival)
623 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
625 * make sure that all of struct magic_set is initialized appropriately
628 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
630 * reset left bytes in the buffer (Dmitry V. Levin)
632 * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
635 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
637 * fix fortran and nroff reversed tests (Dmitry V. Levin)
639 * fix exclude option (Dmitry V. Levin)
641 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
643 * fix integer underflow in file_printf which can lead to
644 to exploitable heap overflow (Jean-Sebastien Guay-Lero)
646 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
648 * make socket/pipe reading more robust
650 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
652 * Centralize all the tests in file_buffer.
656 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
658 * Move the "type" detection code from parse() into its own table
659 driven routine. This avoids maintaining multiple lists in
662 * Add an optional conditional field (ust before the type field).
663 This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
666 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
668 * Fix an initialization bug in check_mem().
670 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
672 * Add a "default" type to print a message if nothing previously
673 matched at that level or since the last default at that
674 level. This is useful for setting up switch-like statements.
675 It can also be used to do if/else constructions without a
676 redundant second test.
678 * Fix the "x" special case test so that one can test for that
681 * Allow "search" to search the entire buffer if the "/N"
682 search count is missing.
684 * Make "regex" work! It now starts its search at the
685 specified offset and takes an (optional) "/N" line count to
686 specify the search range; otherwise it searches to the end
687 of the file. The match is now grabbed correctly for format
688 strings and the offset set to the end of the match.
690 * Add a "/s" flag to "regex" and "search" to set the offset to
691 the start of the match. By default the offset is set to the
692 end of the match, as it is with other tests. This is mostly
695 * Make "search", "string" and "pstring" use the same
696 file_strncmp() routine so that they support the same flags;
697 "bestring16" and "lestring16" call the same routine, but
698 with flags = 0. Also add a "/C" flag (in analogy to "/c")
699 to ignore the case on uppercase (lowercase) characters in
702 * Strict adherence to C style string escapes. A warnings are
703 printed when compiling. Note: previously "\a" was
704 incorrectly translated to 'a' instead of an <alert> (i.e.,
705 BELL, typically 0x07).
707 * Make this compile with "-Wall -Wextra" and all the warning
708 flags used with WARNS=4 in the NetBSD source. Also make it
711 * Many "cleanups" and hopefully not too many new bugs!
713 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
715 * make several more files compile with gcc warnings
716 on and also make them pass lint.
718 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
720 * fix a puts()/putc() usage goof in file.c
722 * make file.c compile with gcc warnings and pass lint
724 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
726 * fix byteswapping issue
728 * report the number of bytes we tried to
729 allocate when allocation fails
731 * add a few missed cases in the strength routine
733 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
735 * store and print the line number of the magic
738 * if the magic entry did not print anything,
739 don't treat it as a match
741 * change the magic strength algorithm to take
742 into account the relationship op.
744 * fix a bug in search where we could accidentally
747 * propagate the error return from match to
750 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
752 * Don't store the current offset in the magic
753 struct, because it needs to be restored and
754 it was not done properly all the time. Bug
755 found by: Arkadiusz Miskiewicz
757 * Fix problem in the '\0' separator; and don't
758 print it as an additional separator; print
759 it as the only separator.
761 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
763 * Added a -0 option to print a '\0' separator
764 Etienne Buira <etienne.buira@free.fr>
766 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
768 * Check offset before copying (Mike Frysinger)
770 * merge duplicated code
772 * add quad date support
774 * make sure that we nul terminate desc (Ryoji Kanai)
776 * don't process elf notes multiple times
778 * allow -z to report empty compressed files
780 * use calloc to initialize the ascii buffers (Jos van den Oever)
782 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
784 * QNX fixes (Mike Gorchak)
788 * FIFO checks (Dr. Werner Fink)
790 * Linux ELF fixes (Dr. Werner Fink)
792 * Magic format checks (Dr. Werner Fink)
794 * Magic format function improvent (Karl Chen)
796 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
798 * Pick up some elf changes and some constant fixes from SUSE
800 * Identify gnu tar vs. posix tar
802 * When keep going, don't print spurious newlines (Radek Vokál)
804 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
806 * Use calloc instead of malloc (Mike Frysinger)
808 * Fix configure script to detect wctypes.h (Mike Frysinger)
810 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
812 * Print empty if the file is (Mike Frysinger)
814 * Don't try to read past the end of the buffer (Mike Frysinger)
816 * Sort magic entries by strength [experimental]
818 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
820 * Use iswprint() to convert the output string.
823 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
825 * Fix regression where the core info was not completely processed
828 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
830 * Middle Endian magic (Diomidis Spinellis)
832 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
834 * Open with O_BINARY for CYGWIN (Corinna Vinschen)
836 * Don't close stdin (Arkadiusz Miskiewicz)
838 * Look for note sections in non executables.
840 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
842 * Don't print SVR4 Style in core files multiple times
845 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
847 * Cygwin changes Corinna Vinschen
849 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
851 * Remove erroreous mention of /etc/magic in the file man page
852 This is gentoo bug 101639. (Mike Frysinger)
854 * Cross-compile support and detection (Mike Frysinger)
856 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
858 * Add -h flag and dereference symlinks if POSIXLY_CORRECT
861 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
863 * Avoid search and regex buffer overflows (Kelledin)
865 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
867 * Provide stub implementations for {v,}nsprintf() for older
868 OS's that don't have them.
869 * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
870 to AC_TYPE_MBSTATE_T.
872 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
874 * Dynamically allocate the string buffers and make the
875 default read size 256K.
877 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
879 * Dragonfly ELF note support
881 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
883 * Avoid NULL pointer dereference in time conversion.
885 2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
887 * Add indirect magic offset support, and search mode.
889 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
891 * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
892 If a CRLF text file happens to have CR at offset HOWMANY - 1
893 (currently 0xffff), it should not be counted as CR line
895 If a line has length exactly MAXLINELEN, it should not yet be
896 treated as a ``very long line'', as MAXLINELEN is ``longest sane
898 With CRLF, the line length was not computed correctly, and even
899 lines of length MAXLINELEN - 1 were treated as ``very long''.
901 2004-12-07 14:15 Christos Zoulas <christos@astron.com>
903 * bzip2 needs a lot of input buffer space on some files
904 before it can begin uncompressing. This makes file -z
905 fail on some bz2 files. Fix it by giving it a copy of
906 the file descriptor to read as much as it wants if we
907 have access to it. <christos@astron.com>
909 2004-11-24 12:39 Christos Zoulas <christos@astron.com>
911 * Stack smash fix, and ELF more conservative reading.
912 Jakub Bogusz <qboosh@pld-linux.org>
914 2004-11-20 18:50 Christos Zoulas <christos@astron.com>
916 * New FreeBSD version parsing code:
917 Jon Noack <noackjr@alumni.rice.edu>
919 * Hackish support for ucs16 strings <christos@astron.com>
921 2004-11-13 03:07 Christos Zoulas <christos@astron.com>
923 * print the file name and line number in syntax errors.
925 2004 10-12 10:50 Christos Zoulas <christos@astron.com>
927 * Fix stack overwriting on 0 length strings: Tim Waugh
928 <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
930 2004-09-27 11:30 Christos Zoulas <christos@astron.com>
932 * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
934 * Fix small memory leaks; caught by: Tamas Sarlos
935 <stamas@csillag.ilab.sztaki.hu>
937 2004-07-24 16:33 Christos Zoulas <christos@astron.com>
939 * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
941 * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
943 * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
945 * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
947 2004-04-12 10:55 Christos Zoulas <christos@astron.com>
949 * make sure that magic formats match magic types during compilation
951 * fix broken sgi magic file
953 2004-04-06 20:36 Christos Zoulas <christos@astron.com>
955 * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
959 2004-03-22 15:25 Christos Zoulas <christos@astron.com>
962 (Joerg Ostertag) <ostertag@rechengilde.de>
964 * FreeBSD ELF version handling
965 (Edwin Groothuis) <edwin@mavetju.org>
967 * correct cleanup in all cases; don't just close the file.
968 (Christos Zoulas) <christos@astron.com>
970 * add gettext message catalogue support
971 (Michael Piefel) <piefel@debian.org>
973 * better printout for unreadable files
974 (Michael Piefel) <piefel@debian.org>
976 * compensate for missing MAXPATHLEN
977 (Michael Piefel) <piefel@debian.org>
979 * add wide character string length computation
980 (Michael Piefel) <piefel@debian.org>
982 * Avoid infinite loops caused by bad elf alignments
983 or name and description note sizes. Reported by
984 (Mikael Magnusson) <mmikael@comhem.se>
986 2004-03-09 13:55 Christos Zoulas <christos@astron.com>
988 * Fix possible memory leak on error and add missing regfree
989 (Dmitry V. Levin) <ldv@altlinux.org>
991 2003-12-23 12:12 Christos Zoulas <christos@astron.com>
993 * fix -k flag (Maciej W. Rozycki)
995 2003-11-18 14:10 Christos Zoulas <christos@astron.com>
997 * Try to give us much info as possible on corrupt elf files.
998 (Willy Tarreau) <willy@w.ods.org>
999 * Updated python bindings (Brett Funderburg)
1000 <brettf@deepfile.com>
1002 2003-11-11 15:03 Christos Zoulas <christos@astron.com>
1004 * Include file.h first, because it includes config.h
1005 breaks largefile test macros otherwise.
1006 (Paul Eggert <eggert@CS.UCLA.EDU> via
1007 Lars Hecking <lhecking@nmrc.ie>)
1009 2003-10-14 21:39 Christos Zoulas <christos@astron.com>
1011 * Python bindings (Brett Funderburg) <brettf@deepfile.com>
1012 * Don't lookup past the end of the buffer
1013 (Chad Hanson) <chanson@tcs-sec.com>
1014 * Add MAGIC_ERROR and api on magic_errno()
1016 2003-10-08 12:40 Christos Zoulas <christos@astron.com>
1018 * handle error conditions from compile as fatal
1019 (Antti Kantee) <pooka@netbsd.org>
1020 * handle magic filename parsing sanely
1022 * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
1023 * describe magic file handling
1024 (Bryan Henderson) <bryanh@giraffe-data.com>
1026 2003-09-12 15:09 Christos Zoulas <christos@astron.com>
1028 * update magic files.
1029 * remove largefile support from file.h; it breaks things on most OS's
1031 2003-08-10 10:25 Christos Zoulas <christos@astron.com>
1033 * fix unmapping'ing of mmaped files.
1035 2003-07-10 12:03 Christos Zoulas <christos@astron.com>
1037 * don't exit with -1 on error; always exit 1 (Marty Leisner)
1038 * restore utimes code.
1040 2003-06-10 17:03 Christos Zoulas <christos@astron.com>
1042 * make sure we don't access uninitialized memory.
1044 * #ifdef __cplusplus in magic.h
1046 2003-05-25 19:23 Christos Zoulas <christos@astron.com>
1048 * rename cvs magic file to revision to deal with
1049 case insensitive filesystems.
1051 2003-05-23 17:03 Christos Zoulas <christos@astron.com>
1053 * documentation fixes from Michael Piefel <piefel@debian.org>
1054 * magic fixes (various)
1055 * revert basename magic in .mgc name determination
1056 * buffer protection in uncompress,
1059 Maciej W. Rozycki <macro@ds2.pg.gda.pl
1061 2003-04-21 20:12 Christos Zoulas <christos@astron.com>
1065 2003-04-04 16:59 Christos Zoulas <christos@astron.com>
1067 * fix operand sort order in string.
1069 2003-04-02 17:30 Christos Zoulas <christos@astron.com>
1071 * cleanup namespace in magic.h
1073 2003-04-02 13:50 Christos Zoulas <christos@astron.com>
1075 * Magic additions (Alex Ott)
1076 * Fix bug that broke VPATH compilation (Peter Breitenlohner)
1078 2003-03-28 16:03 Christos Zoulas <christos@astron.com>
1080 * remove packed attribute from magic struct.
1081 * make the magic struct properly aligned.
1082 * bump version number of compiled files to 2.
1084 2003-03-27 13:10 Christos Zoulas <christos@astron.com>
1086 * separate tar detection and run it before softmagic.
1087 * fix reversed symlink test.
1088 * fix version printing.
1089 * make separator a string instead of a char.
1090 * update manual page and sort options.
1092 2003-03-26 11:00 Christos Zoulas <christos@astron.com>
1095 * make NULL in magic_file mean stdin
1096 * Fix "-" argument to file to pass NULL to magic_file
1097 * avoid pointer casts by using memcpy
1098 * rename magic_buf -> magic_buffer
1099 * keep only the first error
1100 * manual page: new sentence, new line
1101 * fix typo in api function (magic_buf -> magic_buffer)