1 2014-06-12 12:28 Christos Zoulas <christos@zoulas.com>
5 2014-06-09 9:04 Christos Zoulas <christos@zoulas.com>
7 * Misc buffer overruns and missing buffer size tests in cdf parsing
8 (Francisco Alonso, Jan Kaluza)
10 2014-06-02 14:50 Christos Zoulas <christos@zoulas.com>
12 * Enforce limit of 8K on regex searches that have no limits
13 * Allow the l modifier for regex to mean line count. Default
14 to byte count. If line count is specified, assume a max
15 of 80 characters per line to limit the byte count.
16 * Don't allow conversions to be used for dates, allowing
17 the mask field to be used as an offset.
19 2014-05-30 12:51 Christos Zoulas <christos@zoulas.com>
21 * Make the range operator limit the length of the
24 2014-05-14 19:23 Christos Zoulas <christos@zoulas.com>
26 * PR/347: Windows fixes
27 * PR/352: Hangul word processor recognition
28 * PR/354: Encoding irregularities in text files
30 2014-05-06 6:12 Christos Zoulas <christos@zoulas.com>
32 * Fix uninitialized title in CDF files (Jan Kaluza)
34 2014-05-04 14:55 Christos Zoulas <christos@zoulas.com>
36 * PR/351: Fix compilation of empty files
38 2014-04-30 17:39 Christos Zoulas <christos@zoulas.com>
40 * Fix integer formats: We don't specify 'l' or
41 'h' and 'hh' specifiers anymore, only 'll' for
42 quads and nothing for the rest. This is so that
43 magic writing is simpler.
45 2014-04-01 15:25 Christos Zoulas <christos@zoulas.com>
47 * PR/341: Jan Kaluza, fix memory leak
48 * PR/342: Jan Kaluza, fix out of bounds read
50 2014-03-28 15:25 Christos Zoulas <christos@zoulas.com>
52 * Fix issue with long formats not matching fmtcheck
54 2014-03-26 11:25 Christos Zoulas <christos@zoulas.com>
58 2014-03-15 17:45 Christos Zoulas <christos@zoulas.com>
60 * add fmtcheck(3) for those who don't have it
62 2014-03-14 15:12 Christos Zoulas <christos@zoulas.com>
64 * prevent mime entries from being attached to magic
65 entries with no descriptions
67 * adjust magic strength for regex type
69 * remove superfluous ascmagic with encoding test
71 2014-03-06 12:01 Christos Zoulas <christos@zoulas.com>
73 * fix regression fix echo -ne "\012\013\014" | file -i -
74 which printed "binary" instead of "application/octet-stream"
76 * add size_t overflow check for magic file size
78 2014-02-27 16:01 Christos Zoulas <christos@zoulas.com>
80 * experimental support for matching with CFD CLSID
82 2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com)
84 * Cache old LC_CTYPE locale before setting it to "C", so
85 we can use it to restore LC_CTYPE instead of asking
86 setlocale() to scan the environment variables.
88 2014-02-12 18:21 Christos Zoulas <christos@zoulas.com>
90 * Count recursion levels through indirect magic
92 2014-02-11 10:40 Christos Zoulas <christos@zoulas.com>
94 * Prevent infinite recursion on files with indirect offsets of 0
96 2014-01-30 21:00 Christos Zoulas <christos@zoulas.com>
98 * Add -E flag that makes file print filesystem errors to stderr
101 2014-01-08 17:20 Christos Zoulas <christos@zoulas.com>
103 * mime printing could print results from multiple magic entries
104 if there were multiple matches.
105 * in some cases overflow was not detected when computing offsets
108 2013-12-05 12:00 Christos Zoulas <christos@zoulas.com>
110 * use strcasestr() to for cdf strings
111 * reset to the "C" locale while doing regex operations, or case
112 insensitive comparisons; this is provisional
114 2013-11-19 20:10 Christos Zoulas <christos@zoulas.com>
116 * always leave magic file loaded, don't unload for magic_check, etc.
117 * fix default encoding to binary instead of unknown which broke recently
118 * handle empty and one byte files, less specially so that
119 --mime-encoding does not break completely.
121 2013-11-06 14:40 Christos Zoulas <christos@zoulas.com>
123 * fix erroneous non-zero exit code from non-existant file and message
125 2013-10-29 14:25 Christos Zoulas <christos@zoulas.com>
127 * add CDF MSI file detection (Guy Helmer)
129 2013-09-03 11:56 Christos Zoulas <christos@zoulas.com>
131 * Don't mix errors and regular output if there was an error
132 * in magic_descriptor() don't close the file and try to restore
135 2013-05-30 17:25 Christos Zoulas <christos@zoulas.com>
137 * Don't treat magic as an error if offset was past EOF (Christoph Biedl)
139 2013-05-28 17:25 Christos Zoulas <christos@zoulas.com>
141 * Fix spacing issues in softmagic and elf (Jan Kaluza)
143 2013-05-02 18:00 Christos Zoulas <christos@zoulas.com>
145 * Fix segmentation fault with multiple magic_load commands.
147 2013-04-22 11:20 Christos Zoulas <christos@zoulas.com>
149 * The way "default" was implemented was not very useful
150 because the "if something was printed at that level"
151 was not easily controlled by the user, and the format
152 was bound to a string which is too restrictive. Add
153 a "clear" for that level keyword and make "default"
154 void. This way one can do:
160 >>>13 lelong x unknown %x
162 2013-03-25 13:20 Christos Zoulas <christos@zoulas.com>
164 * disallow strength setting in "name" entries
166 2013-03-06 21:24 Christos Zoulas <christos@zoulas.com>
168 * fix recursive magic separator printing
170 2013-02-26 19:28 Christos Zoulas <christos@zoulas.com>
172 * limit recursion level for mget
173 * fix pread() related breakage in cdf
174 * handle offsets properly in recursive "use"
176 2013-02-18 10:39 Christos Zoulas <christos@zoulas.com>
178 * add elf reading of debug info to determine if file is stripped
182 2013-01-25 18:05 Christos Zoulas <christos@zoulas.com>
184 * change mime description size from 64 to 80 to accommodate OOXML.
186 2013-01-11 14:50 Christos Zoulas <christos@zoulas.com>
188 * Warn about inconsistent continuation levels.
189 * Change fsmagic to add a space after it prints.
191 2013-01-10 21:00 Christos Zoulas <christos@zoulas.com>
193 * Make getline public so that file can link against it.
194 Perhaps it is better to rename it, or hide it differently.
195 Fixes builds on platforms that do not provide it.
197 2013-01-07 16:30 Christos Zoulas <christos@zoulas.com>
199 * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document
200 what long, int, short, etc is (Guy Harris)
202 2013-01-06 11:20 Christos Zoulas <christos@zoulas.com>
204 * add magic_version function and constant
205 * Redo memory allocation and de-allocation.
206 (prevents double frees on non mmap platforms)
207 * Fix bug with name/use having to do with passing
208 found state from the parent to the child and back.
210 2012-12-19 8:47 Christos Zoulas <christos@zoulas.com>
212 * Only print elf capabilities for archs we know (Jan Kaluza)
214 2012-10-30 19:14 Christos Zoulas <christos@zoulas.com>
216 * Add "name" and "use" file types in order to look
219 2012-09-06 10:40 Christos Zoulas <christos@zoulas.com>
221 * make --version exit 0 (Matthew Schultz)
222 * add string/T (Jan Kaluza)
224 2012-08-09 2:15 Christos Zoulas <christos@zoulas.com>
226 * add z and t modifiers for our own vasprintf
227 * search for $HOME/.magic.mgc if it is there first
228 * fix reads from a pipe, and preserve errno
230 2012-05-15 13:12 Christos Zoulas <christos@zoulas.com>
232 * use ctime_r, asctime_r
234 2012-04-06 17:18 Christos Zoulas <christos@zoulas.com>
236 * Fixes for indirect offsets to handle apple disk formats
238 2012-04-03 18:26 Christos Zoulas <christos@zoulas.com>
240 * Add windows date field types
241 * More info for windows shortcuts (incomplete)
243 2012-02-20 17:33 Christos Zoulas <christos@zoulas.com>
245 * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann)
247 2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com>
249 * Support Tilera architectures (tile64, tilepro, tilegx).
251 2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org>
253 * Add magic for /usr/bin/env Perl scripts
254 * Weaken generic script magic to avoid clashing with
255 language-specific magic.
257 2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org>
259 * Simplify if (p) free(p) to free(p).
261 2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org>
263 * Remove hardwired token finding (names.h), turning it into soft
264 magic. Patterns are either anchored regexs or search/8192. English
265 language detection and PL/1 detection have been removed as they
266 were too fragile. -e tokens is still accepted for backwards
268 * Move 3ds patterns (which are commented out anyway) into autodesk
269 (they were, oddly, in c-lang).
271 2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org>
273 * Tweak strength of generic hash-bang detectors to be less than
275 * Make an inconsistent description of Python scripts consistent.
277 2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org>
279 * Fix minor error in file(1).
281 2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org>
283 * Fix issue #150 (I hope).
285 2011-09-22 12:57 Christos Zoulas <christos@zoulas.com>
287 * Python3 binding fixes from Kelly Anderson
289 2011-09-20 11:32 Christos Zoulas <christos@zoulas.com>
291 * If a string type magic entry is marked as text or binary
292 only match text files against text entries and binary
293 files against binary entries.
295 2011-09-01 12:12 Christos Zoulas <christos@zoulas.com>
297 * Don't wait for any subprocess, just the one we forked.
299 2011-08-26 16:40 Christos Zoulas <christos@zoulas.com>
301 * If the application name is not set in a cdf file, try to see
302 if it has a directory with the application name on it.
304 2011-08-17 14:32 Christos Zoulas <christos@zoulas.com>
306 * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
308 2011-08-14 09:03 Christos Zoulas <christos@zoulas.com>
310 * Don't use variable string formats.
312 2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org>
314 * Fix detection of Zip files (Mantis #128).
315 * Make some minor improvements to file(1).
316 * Rename MIME types for filesystem objects for consistency with
317 xdg-utils. Typically this means that application/x-foo becomes
318 inode/foo, but some names also change slightly, e.g.
319 application/x-character-device becomes inode/chardevice.
321 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
323 * fix mingw compilation (Abradoks)
325 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
327 * remove patchlevel.h
328 * Fix read past allocated memory caused by double-incrementing
329 a pointer in a loop (reported by Roberto Maar)
331 2011-03-30 15:45 Christos Zoulas <christos@zoulas.com>
333 * Fix cdf string buffer setting (Sven Anders)
335 2011-03-20 16:35 Christos Zoulas <christos@zoulas.com>
337 * Eliminate MAXPATHLEN and use dynamic allocation for
338 path and file buffers.
340 2011-03-15 18:15 Christos Zoulas <christos@zoulas.com>
342 * binary tests on magic entries with masks could spuriously
343 get converted to ascii.
345 2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org>
347 * Improve file.man (remove BUGS, present email addresses consistently).
349 2011-03-07 19:38 Christos Zoulas <christos@zoulas.com>
351 * add lrzip support (from Ville Skytta)
353 2011-02-10 16:36 Christos Zoulas <christos@zoulas.com>
355 * fix CDF bounds checking (Guy Helmer)
357 2011-02-10 12:03 Christos Zoulas <christos@zoulas.com>
359 * add cdf_ctime() that prints a meaningful error when time cannot
362 2011-02-02 20:40 Christos Zoulas <christos@zoulas.com>
364 * help and version output to stdout.
366 * When matching softmagic for ascii files, don't just print
367 the softmagic classification, keep going and print the
368 text classification too. This fixes broken troff files when
369 we moved them from keyword recognition to softmagic
370 (they stopped printing "with CRLF" etc.)
371 Reported by Doug McIlroy.
373 2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org>
375 * Fix two potential buffer overruns in apprentice_list.
377 2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org>
379 * New Python binding in pure Python.
380 * Update libmagic(3).
382 2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org>
384 * Fix Python bindings (including recent Python 3 compatibility
387 2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org>
389 * magic/Makefile.am: make it easier to recover from magic build failures.
390 * Fix pstring length specifier parsing to avoid generating invalid
392 * Add pstring length "J" (for "JPEG") to specify that the length
394 * Fix JPEG comment parsing at last using pstring/HJ!
395 * Ignore section 5 man pages in doc/.cvsignore.
397 2010-12-22 13:12 Christos Zoulas <christos@zoulas.com>
399 * Add pstring/BHhLl to specify the type of the length of pascal
402 2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org>
404 * Fix "-e soft": it was ignored when softmagic was called
406 * Improve comments and use "unsigned char" in tar.h/is_tar.c.
408 2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org>
410 * Make bug reporting addresses more visible.
412 2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org>
414 * Add tcl magic from Gustaf Neumann
416 2010-10-24 10:42 Christos Zoulas <christos@zoulas.com>
418 * Fix the whitespace comparing code (Christopher Chittleborough)
420 2010-10-06 21:05 Christos Zoulas <christos@zoulas.com>
422 * allow string/t to work (Jan Kaluza)
424 2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org>
426 * Apply some patches from Ubuntu and Fedora.
428 2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org>
430 * Apply all patches from Debian package 5.04-6 which have not
431 already been applied and are not Debian-specific.
433 2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org>
435 * Minor security fix to softmagic.c (don't use untrusted
436 string as printf format).
438 2010-07-21 12:20 Christos Zoulas <christos@zoulas.com>
440 * MINGW32 portability from LRN
442 * Don't warn about escaping magic regex chars when we are in a regex.
444 2010-07-19 10:55 Christos Zoulas <christos@zoulas.com>
446 * Only try to print prpsinfo for core files. (Jan Kaluza)
448 2010-04-22 12:55 Christos Zoulas <christos@zoulas.com>
450 * Try more elf offsets for Debian core files. (Arnaud Giersch)
452 2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org>
454 * Clarify which sort of CDF we mean.
456 2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org>
458 * Re-jig Zip file type magic so that unsupported special
459 Zip types (those with "mimetype" at offset 30) can be
462 2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org>
464 * Add support for OCF (EPUB) files (application/epub+zip)
466 2010-01-28 18:25 Christos Zoulas <christos@zoulas.com>
468 * Fix core-dump from unbound loop:
469 https://bugzilla.redhat.com/show_bug.cgi?id=533245
471 2010-01-22 15:45 Christos Zoulas <christos@zoulas.com>
473 * print proper mime for crystal reports file
475 * print the last summary information of a cdf document, not the
476 first so that nested documents print the right info
478 2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org>
480 * bring back some fixes from OpenBSD:
481 - make gcc2 builds file
482 - fix typos in a magic file comment
484 2009-11-17 18:35 Christos Zoulas <christos@zoulas.com>
486 * ctime/asctime can return NULL on some OS's although
487 they should not (Toshit Antani)
489 2009-09-14 13:49 Christos Zoulas <christos@zoulas.com>
491 * Centralize magic path handling routines and remove the
492 special-casing from file.c so that the python module for
493 example comes up with the same magic path (Fixes ~/.magic
496 2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org>
498 * When magic argument is a directory, read the files in
499 strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
501 2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org>
503 * Combine overlapping epoc and psion magic files into one (epoc).
505 * Add some more EPOC MIME types.
507 2009-08-19 15:55 Christos Zoulas <christos@zoulas.com>
509 * Fix 3 bugs (From Ian Darwin):
510 - file_showstr could move one past the end of the array
511 - parse_apple did not nul terminate the string in the overflow case
512 - parse_mime truncated the wrong string in the overflow case
514 2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net>
516 * Include Localstuff when compiling magic.
518 2009-07-15 10:05 Christos Zoulas <christos@zoulas.com>
520 * Fix logic for including mygetopts.h
522 * Make cdf.c compile again with debugging
524 * Add the necessary field handling for crystal reports files to work
526 2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org>
528 * Stop "(if" identifying Lisp files, that's plain dumb!
530 2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org>
532 * Add a couple of missing MP3 MIME types.
534 2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org>
536 * Add full range of hash-bang tests for Python and Ruby.
538 * Add MIME types for Python and Ruby scripts.
540 2009-05-13 10:44 Christos Zoulas <christos@zoulas.com>
542 * off by one in parsing hw capabilities in elf
545 2009-05-08 13:40 Christos Zoulas <christos@zoulas.com>
547 * lint fixes and more from NetBSD
549 2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
551 * Avoid null dereference in cdf code (Drew Yao)
553 * More cdf bounds checks and overflow checks
555 2009-05-01 18:37 Christos Zoulas <christos@zoulas.com>
557 * Buffer overflow fixes from Drew Yao
559 2009-04-30 17:10 Christos Zoulas <christos@zoulas.com>
561 * Fix more cdf lossage. All the documents I have
562 right now print the correct information.
564 2009-03-27 18:43 Christos Zoulas <christos@zoulas.com>
566 * don't print \012- separators in the same magic entry
567 if it consists of multiple magic printing lines.
569 2009-03-23 10:20 Christos Zoulas <christos@zoulas.com>
571 * Avoid file descriptor leak in compress code from
574 2009-03-18 16:50 Christos Zoulas <christos@zoulas.com>
576 * Allow escaping of relation characters, so that we can say \^[A-Z]
577 and the ^ is not eaten as a relation char.
579 * Fix troff and fortran to their previous glory using
580 regex. This was broken since their removel from ascmagic.
582 2009-03-10 16:50 Christos Zoulas <christos@zoulas.com>
584 * don't use strlen in strndup() (Toby Peterson)
586 2009-03-10 7:45 Christos Zoulas <christos@zoulas.com>
590 2009-02-23 15:45 Christos Zoulas <christos@zoulas.com>
592 * make the cdf code use the buffer first if available,
593 and then the fd code.
595 2009-02-13 13:45 Christos Zoulas <christos@zoulas.com>
597 * look for struct option to determine if getopt.h is usable for IRIX.
599 * sanitize cdf document strings
601 2009-02-04 13:25 Christos Zoulas <christos@zoulas.com>
605 2008-12-12 15:50 Christos Zoulas <christos@zoulas.com>
607 * fix initial offset calculation for non 4K sector files
609 * add loop limits to avoid DoS attacks by constructing
610 looping sector references.
612 2008-12-03 13:05 Christos Zoulas <christos@zoulas.com>
614 * fix memory botches on cdf file parsing.
616 * exit with non-zero value for any error, not just for the last
619 2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org>
621 * Replace all str{cpy,cat} functions with strl{cpy,cat}
622 * Ensure that strl{cpy,cat} are included in libmagic,
625 2008-11-06 18:18 Christos Zoulas <christos@zoulas.com>
627 * Handle ID3 format files.
629 2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org>
631 * Fix --mime, --mime-type and --mime-encoding under new scheme.
633 * Rename "ascii" to "text" and add "encoding" test.
635 * Return a precise ("utf-16le" or "utf-16be") MIME charset for
638 * Fix error in comment caused by automatic indentation adding
641 2008-11-06 10:35 Christos Zoulas <christos@astron.com>
643 * use memchr instead of strchr because the string
644 might not be NUL terminated (Scott MacVicar)
646 2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org>
648 * Fix a printf with a non-literal format string.
650 * Fix formatting and punctuation of help for "--apple".
652 2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org>
654 * Correct words counts in comments of struct magic.
656 * Fix handle_annotation to allow both Apple and MIME types to be
657 printed, and to return correct code if MIME type is
658 printed (1, not 0) or if there's an error (-1 not 1).
660 * Fix output of charset for MIME type (precede with semi-colon;
661 fixes Debian bug #501460).
663 * Fix potential attacks via conversion specifications in magic
666 * Add a FIXME for Debian bug #488562 (magic files should be
667 read in a defined order, by sorting the names).
669 2008-10-18 16:45 Christos Zoulas <christos@astron.com>
671 * Added APPLE file creator/type
673 2008-10-12 10:20 Christos Zoulas <christos@astron.com>
677 2008-10-09 16:40 Christos Zoulas <christos@astron.com>
679 * filesystem and msdos patches (Joerg Jenderek)
681 2008-10-09 13:20 Christos Zoulas <christos@astron.com>
683 * correct --exclude documentation issues: remove troff and fortran
684 and rename "token" to "tokens". (Randy McMurchy)
686 2008-10-01 10:30 Christos Zoulas <christos@astron.com>
688 * Read ~/.magic in addition to the default magic file not instead
689 of, as documented in the man page.
691 2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org>
693 * Comment out graphviz patterns, as they match too many files.
695 2008-08-30 12:54 Christos Zoulas <christos@astron.com>
697 * Don't eat trailing \n in magic enties.
699 * Cast defines to allow compilation using a c++ compiler.
701 2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org>
703 * Add text/x-lua MIME type for Lua scripts.
705 * Escape { in regex in graphviz patterns.
707 2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org>
709 * Add MIME types for special files.
711 * Use access to give more accurate information for files that
716 2008-07-02 11:15 Christos Zoulas <christos@astron.com>
718 * add !:strength op to adjust magic strength (experimental)
720 2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org>
722 * Fix automake error in configure.ac.
724 * Add MIME type for Psion Sketch files.
726 2008-06-05 08:59 Christos Zoulas <christos@astron.com>
728 * Don't print warnings about bad namesize in stripped
729 binaries with PT_NOTE is still there, and the actual
730 note is gone (Jakub Jelinek)
732 2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net>
735 Note invalid byte order for little-endian SPARC32PLUS.
736 Add SPARC V9 vendor extensions and memory model.
739 Pass target machine to doshn (for Solaris hardware capabilities).
741 * src/readelf.c (doshn):
742 Add support for Solaris hardware/software capabilities.
747 * src/vasprintf.c (dispatch):
748 Add support for ll modifier.
750 2008-05-16 10:25 Christos Zoulas <christos@astron.com>
752 * Fix compiler warnings.
754 * remove stray printf, and fix a vprintf bug. (Martin Dorey)
756 2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net>
759 Ensure that getopt_long and [v]asprintf are included in libmagic,
762 Remove unnecessary EXTRA_DIST.
767 * src/vasprintf.c (dispatch):
768 Fix variable precision bug: be sure to step past '*'.
770 * src/vasprintf.c (core):
771 Remove unreachable code.
773 * src/apprentice.c (set_test_type):
774 Add cast to avoid compiler warning.
776 2008-04-22 23:45 Christos Zoulas <christos@astron.com>
778 * Add magic submission guidelines (Abel Cheung)
780 * split msdos and windows magic (Abel Cheung)
782 2008-04-04 11:00 Christos Zoulas <christos@astron.com>
784 * >= <= is not supported, so fix the magic and warn about it.
785 reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
787 2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
789 * src/readelf.c (donote):
790 ELF core file command name/line bug fixes and enhancements:
792 Try larger offsets first to avoid false matches
793 from earlier data that happen to look like strings;
794 this primarily affected SunOS 5.x 32-bit Intel core files.
796 Add support for command line (instead of just short name)
799 Add information about NT_PSINFO for SunOS 5.x.
801 Only trim whitespace from end of command line.
803 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
805 * Change strength of ! from MULT to 0, as it matches almost
806 anything (Reuben Thomas)
808 * Debian fixes (Reuben Thomas)
810 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
812 * Clarify UTF-8 BOM message (Reuben Thomas)
814 * Add HTML comment to token list in names.h
816 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
818 * Debian fixes (Reuben Thomas)
820 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
822 * !:mime annotations in magic files (Reuben Thomas)
824 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
826 * zero out utime/utimes structs (Gavin Atkinson)
828 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
830 * reduce writable data from Diego "Flameeyes" Petten
832 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
836 * remove bogus regex magic that could cause a DoS
838 * better mismatch version message
840 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
842 * bring back some fixes from OpenBSD
844 * treat ELF dynamic objects as executables
848 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
850 * make sure we have zlib.h and libz to compile the builtin
853 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
855 * float and double magic support (Behan Webster)
857 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
859 * Convert fortran to a soft test (Reuben Thomas)
861 2007-10-23 5:25 Christos Zoulas <christos@astron.com>
863 * Add --with-filename, and --no-filename (Reuben Thomas)
865 2007-10-23 3:59 Christos Zoulas <christos@astron.com>
867 * Rest of the mime split (Reuben Thomas)
869 * Make usage message generated from the flags so that
870 they stay consistent (Reuben Thomas)
872 2007-10-20 3:06 Christos Zoulas <christos@astron.com>
874 * typo in comment, missing ifdef QUICK, remove unneeded code
877 2007-10-17 3:33 Christos Zoulas <christos@astron.com>
879 * Fix problem printing -\012 in some entries
881 * Separate magic type and encoding flags (Reuben Thomas)
883 2007-10-09 3:55 Christos Zoulas <christos@astron.com>
885 * configure fix for int64 and strndup (Reuben Thomas)
887 2007-09-26 4:45 Christos Zoulas <christos@astron.com>
889 * Add magic_descriptor() function.
891 * Fix regression in elf reading code where the core name was
894 * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
896 2007-08-19 6:30 Christos Zoulas <christos@astron.com>
898 * Make mime format consistent so that it can
900 mimetype [charset=character-set] [encoding=encoding-mime-type]
902 Remove spurious extra text from some MIME type printouts
905 Fix one case where -i produced nothing at all (for a 1-byte file,
906 which is now classed as application/octet-stream).
908 Remove 7/8bit classifications, since they were arbitrary
909 and not based on the file data.
911 This work was done by Reuben Thomas
913 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
915 * Fix another integer overflow (Colin Percival)
917 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
919 * make sure that all of struct magic_set is initialized appropriately
922 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
924 * reset left bytes in the buffer (Dmitry V. Levin)
926 * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
929 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
931 * fix fortran and nroff reversed tests (Dmitry V. Levin)
933 * fix exclude option (Dmitry V. Levin)
935 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
937 * fix integer underflow in file_printf which can lead to
938 to exploitable heap overflow (Jean-Sebastien Guay-Lero)
940 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
942 * make socket/pipe reading more robust
944 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
946 * Centralize all the tests in file_buffer.
950 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
952 * Move the "type" detection code from parse() into its own table
953 driven routine. This avoids maintaining multiple lists in
956 * Add an optional conditional field (ust before the type field).
957 This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
960 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
962 * Fix an initialization bug in check_mem().
964 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
966 * Add a "default" type to print a message if nothing previously
967 matched at that level or since the last default at that
968 level. This is useful for setting up switch-like statements.
969 It can also be used to do if/else constructions without a
970 redundant second test.
972 * Fix the "x" special case test so that one can test for that
975 * Allow "search" to search the entire buffer if the "/N"
976 search count is missing.
978 * Make "regex" work! It now starts its search at the
979 specified offset and takes an (optional) "/N" line count to
980 specify the search range; otherwise it searches to the end
981 of the file. The match is now grabbed correctly for format
982 strings and the offset set to the end of the match.
984 * Add a "/s" flag to "regex" and "search" to set the offset to
985 the start of the match. By default the offset is set to the
986 end of the match, as it is with other tests. This is mostly
989 * Make "search", "string" and "pstring" use the same
990 file_strncmp() routine so that they support the same flags;
991 "bestring16" and "lestring16" call the same routine, but
992 with flags = 0. Also add a "/C" flag (in analogy to "/c")
993 to ignore the case on uppercase (lowercase) characters in
996 * Strict adherence to C style string escapes. A warnings are
997 printed when compiling. Note: previously "\a" was
998 incorrectly translated to 'a' instead of an <alert> (i.e.,
999 BELL, typically 0x07).
1001 * Make this compile with "-Wall -Wextra" and all the warning
1002 flags used with WARNS=4 in the NetBSD source. Also make it
1005 * Many "cleanups" and hopefully not too many new bugs!
1007 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
1009 * make several more files compile with gcc warnings
1010 on and also make them pass lint.
1012 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
1014 * fix a puts()/putc() usage goof in file.c
1016 * make file.c compile with gcc warnings and pass lint
1018 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
1020 * fix byteswapping issue
1022 * report the number of bytes we tried to
1023 allocate when allocation fails
1025 * add a few missed cases in the strength routine
1027 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
1029 * store and print the line number of the magic
1030 entry for debugging.
1032 * if the magic entry did not print anything,
1033 don't treat it as a match
1035 * change the magic strength algorithm to take
1036 into account the relationship op.
1038 * fix a bug in search where we could accidentally
1041 * propagate the error return from match to
1044 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
1046 * Don't store the current offset in the magic
1047 struct, because it needs to be restored and
1048 it was not done properly all the time. Bug
1049 found by: Arkadiusz Miskiewicz
1051 * Fix problem in the '\0' separator; and don't
1052 print it as an additional separator; print
1053 it as the only separator.
1055 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
1057 * Added a -0 option to print a '\0' separator
1058 Etienne Buira <etienne.buira@free.fr>
1060 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
1062 * Check offset before copying (Mike Frysinger)
1064 * merge duplicated code
1066 * add quad date support
1068 * make sure that we nul terminate desc (Ryoji Kanai)
1070 * don't process elf notes multiple times
1072 * allow -z to report empty compressed files
1074 * use calloc to initialize the ascii buffers (Jos van den Oever)
1076 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
1078 * QNX fixes (Mike Gorchak)
1082 * FIFO checks (Dr. Werner Fink)
1084 * Linux ELF fixes (Dr. Werner Fink)
1086 * Magic format checks (Dr. Werner Fink)
1088 * Magic format function improvent (Karl Chen)
1090 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
1092 * Pick up some elf changes and some constant fixes from SUSE
1094 * Identify gnu tar vs. posix tar
1096 * When keep going, don't print spurious newlines (Radek Vokal)
1098 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
1100 * Use calloc instead of malloc (Mike Frysinger)
1102 * Fix configure script to detect wctypes.h (Mike Frysinger)
1104 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
1106 * Print empty if the file is (Mike Frysinger)
1108 * Don't try to read past the end of the buffer (Mike Frysinger)
1110 * Sort magic entries by strength [experimental]
1112 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
1114 * Use iswprint() to convert the output string.
1117 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
1119 * Fix regression where the core info was not completely processed
1122 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
1124 * Middle Endian magic (Diomidis Spinellis)
1126 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
1128 * Open with O_BINARY for CYGWIN (Corinna Vinschen)
1130 * Don't close stdin (Arkadiusz Miskiewicz)
1132 * Look for note sections in non executables.
1134 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
1136 * Don't print SVR4 Style in core files multiple times
1139 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
1141 * Cygwin changes Corinna Vinschen
1143 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
1145 * Remove erroreous mention of /etc/magic in the file man page
1146 This is gentoo bug 101639. (Mike Frysinger)
1148 * Cross-compile support and detection (Mike Frysinger)
1150 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
1152 * Add -h flag and dereference symlinks if POSIXLY_CORRECT
1155 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
1157 * Avoid search and regex buffer overflows (Kelledin)
1159 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
1161 * Provide stub implementations for {v,}nsprintf() for older
1162 OS's that don't have them.
1163 * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
1164 to AC_TYPE_MBSTATE_T.
1166 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
1168 * Dynamically allocate the string buffers and make the
1169 default read size 256K.
1171 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
1173 * Dragonfly ELF note support
1175 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
1177 * Avoid NULL pointer dereference in time conversion.
1179 2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
1181 * Add indirect magic offset support, and search mode.
1183 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
1185 * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
1186 If a CRLF text file happens to have CR at offset HOWMANY - 1
1187 (currently 0xffff), it should not be counted as CR line
1189 If a line has length exactly MAXLINELEN, it should not yet be
1190 treated as a ``very long line'', as MAXLINELEN is ``longest sane
1192 With CRLF, the line length was not computed correctly, and even
1193 lines of length MAXLINELEN - 1 were treated as ``very long''.
1195 2004-12-07 14:15 Christos Zoulas <christos@astron.com>
1197 * bzip2 needs a lot of input buffer space on some files
1198 before it can begin uncompressing. This makes file -z
1199 fail on some bz2 files. Fix it by giving it a copy of
1200 the file descriptor to read as much as it wants if we
1201 have access to it. <christos@astron.com>
1203 2004-11-24 12:39 Christos Zoulas <christos@astron.com>
1205 * Stack smash fix, and ELF more conservative reading.
1206 Jakub Bogusz <qboosh@pld-linux.org>
1208 2004-11-20 18:50 Christos Zoulas <christos@astron.com>
1210 * New FreeBSD version parsing code:
1211 Jon Noack <noackjr@alumni.rice.edu>
1213 * Hackish support for ucs16 strings <christos@astron.com>
1215 2004-11-13 03:07 Christos Zoulas <christos@astron.com>
1217 * print the file name and line number in syntax errors.
1219 2004 10-12 10:50 Christos Zoulas <christos@astron.com>
1221 * Fix stack overwriting on 0 length strings: Tim Waugh
1222 <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
1224 2004-09-27 11:30 Christos Zoulas <christos@astron.com>
1226 * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
1228 * Fix small memory leaks; caught by: Tamas Sarlos
1229 <stamas@csillag.ilab.sztaki.hu>
1231 2004-07-24 16:33 Christos Zoulas <christos@astron.com>
1233 * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
1235 * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
1237 * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
1239 * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
1241 2004-04-12 10:55 Christos Zoulas <christos@astron.com>
1243 * make sure that magic formats match magic types during compilation
1245 * fix broken sgi magic file
1247 2004-04-06 20:36 Christos Zoulas <christos@astron.com>
1249 * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
1253 2004-03-22 15:25 Christos Zoulas <christos@astron.com>
1255 * Lots of mime fixes
1256 (Joerg Ostertag) <ostertag@rechengilde.de>
1258 * FreeBSD ELF version handling
1259 (Edwin Groothuis) <edwin@mavetju.org>
1261 * correct cleanup in all cases; don't just close the file.
1262 (Christos Zoulas) <christos@astron.com>
1264 * add gettext message catalogue support
1265 (Michael Piefel) <piefel@debian.org>
1267 * better printout for unreadable files
1268 (Michael Piefel) <piefel@debian.org>
1270 * compensate for missing MAXPATHLEN
1271 (Michael Piefel) <piefel@debian.org>
1273 * add wide character string length computation
1274 (Michael Piefel) <piefel@debian.org>
1276 * Avoid infinite loops caused by bad elf alignments
1277 or name and description note sizes. Reported by
1278 (Mikael Magnusson) <mmikael@comhem.se>
1280 2004-03-09 13:55 Christos Zoulas <christos@astron.com>
1282 * Fix possible memory leak on error and add missing regfree
1283 (Dmitry V. Levin) <ldv@altlinux.org>
1285 2003-12-23 12:12 Christos Zoulas <christos@astron.com>
1287 * fix -k flag (Maciej W. Rozycki)
1289 2003-11-18 14:10 Christos Zoulas <christos@astron.com>
1291 * Try to give us much info as possible on corrupt elf files.
1292 (Willy Tarreau) <willy@w.ods.org>
1293 * Updated python bindings (Brett Funderburg)
1294 <brettf@deepfile.com>
1296 2003-11-11 15:03 Christos Zoulas <christos@astron.com>
1298 * Include file.h first, because it includes config.h
1299 breaks largefile test macros otherwise.
1300 (Paul Eggert <eggert@CS.UCLA.EDU> via
1301 Lars Hecking <lhecking@nmrc.ie>)
1303 2003-10-14 21:39 Christos Zoulas <christos@astron.com>
1305 * Python bindings (Brett Funderburg) <brettf@deepfile.com>
1306 * Don't lookup past the end of the buffer
1307 (Chad Hanson) <chanson@tcs-sec.com>
1308 * Add MAGIC_ERROR and api on magic_errno()
1310 2003-10-08 12:40 Christos Zoulas <christos@astron.com>
1312 * handle error conditions from compile as fatal
1313 (Antti Kantee) <pooka@netbsd.org>
1314 * handle magic filename parsing sanely
1316 * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
1317 * describe magic file handling
1318 (Bryan Henderson) <bryanh@giraffe-data.com>
1320 2003-09-12 15:09 Christos Zoulas <christos@astron.com>
1322 * update magic files.
1323 * remove largefile support from file.h; it breaks things on most OS's
1325 2003-08-10 10:25 Christos Zoulas <christos@astron.com>
1327 * fix unmapping'ing of mmaped files.
1329 2003-07-10 12:03 Christos Zoulas <christos@astron.com>
1331 * don't exit with -1 on error; always exit 1 (Marty Leisner)
1332 * restore utimes code.
1334 2003-06-10 17:03 Christos Zoulas <christos@astron.com>
1336 * make sure we don't access uninitialized memory.
1338 * #ifdef __cplusplus in magic.h
1340 2003-05-25 19:23 Christos Zoulas <christos@astron.com>
1342 * rename cvs magic file to revision to deal with
1343 case insensitive filesystems.
1345 2003-05-23 17:03 Christos Zoulas <christos@astron.com>
1347 * documentation fixes from Michael Piefel <piefel@debian.org>
1348 * magic fixes (various)
1349 * revert basename magic in .mgc name determination
1350 * buffer protection in uncompress,
1353 Maciej W. Rozycki <macro@ds2.pg.gda.pl
1355 2003-04-21 20:12 Christos Zoulas <christos@astron.com>
1359 2003-04-04 16:59 Christos Zoulas <christos@astron.com>
1361 * fix operand sort order in string.
1363 2003-04-02 17:30 Christos Zoulas <christos@astron.com>
1365 * cleanup namespace in magic.h
1367 2003-04-02 13:50 Christos Zoulas <christos@astron.com>
1369 * Magic additions (Alex Ott)
1370 * Fix bug that broke VPATH compilation (Peter Breitenlohner)
1372 2003-03-28 16:03 Christos Zoulas <christos@astron.com>
1374 * remove packed attribute from magic struct.
1375 * make the magic struct properly aligned.
1376 * bump version number of compiled files to 2.
1378 2003-03-27 13:10 Christos Zoulas <christos@astron.com>
1380 * separate tar detection and run it before softmagic.
1381 * fix reversed symlink test.
1382 * fix version printing.
1383 * make separator a string instead of a char.
1384 * update manual page and sort options.
1386 2003-03-26 11:00 Christos Zoulas <christos@astron.com>
1389 * make NULL in magic_file mean stdin
1390 * Fix "-" argument to file to pass NULL to magic_file
1391 * avoid pointer casts by using memcpy
1392 * rename magic_buf -> magic_buffer
1393 * keep only the first error
1394 * manual page: new sentence, new line
1395 * fix typo in api function (magic_buf -> magic_buffer)