xref: /dflybsd-src/contrib/file/ChangeLog (revision 614728ca5ae8ce18ba7b320c92e6acb210aedf6e)
1*614728caSSascha Wildner2021-10-18  11:57  Christos Zoulas <christos@zoulas.com>
2*614728caSSascha Wildner
3*614728caSSascha Wildner	* release 5.41
4*614728caSSascha Wildner
5*614728caSSascha Wildner2021-09-23  03:51  Christos Zoulas <christos@zoulas.com>
6*614728caSSascha Wildner
7*614728caSSascha Wildner	* Avinash Sonawane: Fix tzname detection
8*614728caSSascha Wildner
9*614728caSSascha Wildner2021-09-03  09:17  Christos Zoulas <christos@zoulas.com>
10*614728caSSascha Wildner
11*614728caSSascha Wildner	* Fix relationship tests with "search" magic, don't short circuit
12*614728caSSascha Wildner	  logic
13*614728caSSascha Wildner
14*614728caSSascha Wildner2021-07-13  01:06  Christos Zoulas <christos@zoulas.com>
15*614728caSSascha Wildner
16*614728caSSascha Wildner	* Fix memory leak in compile mode
17*614728caSSascha Wildner
18*614728caSSascha Wildner2021-07-01  03:51  Christos Zoulas <christos@zoulas.com>
19*614728caSSascha Wildner
20*614728caSSascha Wildner	* PR/272: kiefermat: Only set returnval = 1 when we printed something
21*614728caSSascha Wildner	  (in all cases print or !print). This simplifies the logic and fixes
22*614728caSSascha Wildner	  the issue in the PR with -k and --mime-type there was no continuation
23*614728caSSascha Wildner	  printed before the default case.
24*614728caSSascha Wildner
25*614728caSSascha Wildner2021-06-30  13:07  Christos Zoulas <christos@zoulas.com>
26*614728caSSascha Wildner
27*614728caSSascha Wildner	* PR/270: Don't translate unprintable characters in %s magic formats
28*614728caSSascha Wildner	  when -r
29*614728caSSascha Wildner	* PR/269: Avoid undefined behavior with clang (adding offset to NULL)
30*614728caSSascha Wildner
31*614728caSSascha Wildner2021-05-09  18:38  Christos Zoulas <christos@zoulas.com>
32*614728caSSascha Wildner
33*614728caSSascha Wildner	* Add a new flag (f) that requires that the match is a full word,
34*614728caSSascha Wildner	   not a partial word match.
35*614728caSSascha Wildner	* Add varint types (unused)
36*614728caSSascha Wildner
37*614728caSSascha Wildner2021-04-19  17:17  Christos Zoulas <christos@zoulas.com>
38*614728caSSascha Wildner
39*614728caSSascha Wildner	* PR/256: mutableVoid: If the file is less than 3 bytes, use the file
40*614728caSSascha Wildner	  length to determine type
41*614728caSSascha Wildner	* PR/259: aleksandr.v.novichkov: mime printing through indirect magic
42*614728caSSascha Wildner	  is not taken into account, use match directly so that it does.
43*614728caSSascha Wildner
44*614728caSSascha Wildner2021-04-04  17:02  Christos Zoulas <christos@zoulas.com>
45*614728caSSascha Wildner
46*614728caSSascha Wildner	* count the total bytes found not the total byte positions
47*614728caSSascha Wildner	  in order to determine encoding (Anatol Belski)
48*614728caSSascha Wildner
49970935fdSSascha Wildner2021-03-30  20:21  Christos Zoulas <christos@zoulas.com>
50970935fdSSascha Wildner
51970935fdSSascha Wildner	* release 5.40
52970935fdSSascha Wildner
53970935fdSSascha Wildner2021-02-05  16:31  Christos Zoulas <christos@zoulas.com>
54970935fdSSascha Wildner
55970935fdSSascha Wildner	* PR/234: Add limit to the number of bytes to scan for encoding
56970935fdSSascha Wildner	* PR/230: Fix /T (trim flag) for regex
57970935fdSSascha Wildner
58970935fdSSascha Wildner2021-02-01  12:31  Christos Zoulas <christos@zoulas.com>
59970935fdSSascha Wildner	* PR/77: Trim trailing separator.
60970935fdSSascha Wildner
61970935fdSSascha Wildner2020-12-17  15:44  Christos Zoulas <christos@zoulas.com>
62970935fdSSascha Wildner
63970935fdSSascha Wildner	* PR/211: Convert system read errors from corrupt ELF
64970935fdSSascha Wildner	  files into human readable error messages
65970935fdSSascha Wildner
66970935fdSSascha Wildner2020-12-08  16:24  Christos Zoulas <christos@zoulas.com>
67970935fdSSascha Wildner
68970935fdSSascha Wildner	* fix multithreaded decompression file descriptor issue
69970935fdSSascha Wildner	  by using close-on-exec (Denys Vlasenko)
70970935fdSSascha Wildner
71970935fdSSascha Wildner2020-06-27  11:58  Christos Zoulas <christos@zoulas.com>
72970935fdSSascha Wildner
73970935fdSSascha Wildner	* Exclude surrogate pairs from utf-8 detection (Michael Liu)
74970935fdSSascha Wildner
75970935fdSSascha Wildner2020-06-25  12:53  Christos Zoulas <christos@zoulas.com>
76970935fdSSascha Wildner
77970935fdSSascha Wildner	* Include # to the list of ignored format chars (Werner Fink)
78970935fdSSascha Wildner
79c990e5baSDaniel Fojt2020-06-14  20:02  Christos Zoulas <christos@zoulas.com>
80c990e5baSDaniel Fojt
81c990e5baSDaniel Fojt	* release 5.39
82c990e5baSDaniel Fojt
83c990e5baSDaniel Fojt2020-06-07  20:00  Christos Zoulas <christos@zoulas.com>
84c990e5baSDaniel Fojt
85c990e5baSDaniel Fojt	* Remove unused subtype_mime (Steve Grubb)
86c990e5baSDaniel Fojt	* Remove unused check in okstat (Steve Grubb)
87c990e5baSDaniel Fojt	* Fix mime-type in elf binaries by making sure $x is set
88c990e5baSDaniel Fojt	* Fix indirect negative offsets broken by OFFNEGATIVE
89c990e5baSDaniel Fojt	* Fix GUID equality check
90c990e5baSDaniel Fojt	* PR/165: Handle empty array and strings in JSON
91c990e5baSDaniel Fojt	* PR/162: Add --exclude-quiet
92c990e5baSDaniel Fojt
93c990e5baSDaniel Fojt2020-06-06  15:33  Christos Zoulas <christos@zoulas.com>
94c990e5baSDaniel Fojt
95c990e5baSDaniel Fojt	* Fix memory leak in ascmagic (Steve Grubb)
96c990e5baSDaniel Fojt
97c990e5baSDaniel Fojt2020-06-04  00:21  Christos Zoulas <christos@zoulas.com>
98c990e5baSDaniel Fojt
99c990e5baSDaniel Fojt	* Fix string comparison length with ignore whitespace
100c990e5baSDaniel Fojt
101c990e5baSDaniel Fojt2020-05-31  00:11  Christos Zoulas <christos@zoulas.com>
102c990e5baSDaniel Fojt
103c990e5baSDaniel Fojt	* Fix mingwin 64 compilation
104c990e5baSDaniel Fojt
105c990e5baSDaniel Fojt2020-05-30  23:56  Christos Zoulas <christos@zoulas.com>
106c990e5baSDaniel Fojt
107c990e5baSDaniel Fojt	* PR/159: whitelist getpid needed for file_pipe2file()
108c990e5baSDaniel Fojt
109c990e5baSDaniel Fojt2020-05-09  18:57  Christos Zoulas <christos@zoulas.com>
110c990e5baSDaniel Fojt
111c990e5baSDaniel Fojt	* Indicate negative offsets with a flag OFFNEGATIVE
112c990e5baSDaniel Fojt	  so that -0 works.
113c990e5baSDaniel Fojt	* Introduce "offset" magic type that can be used to
114c990e5baSDaniel Fojt	  detect the file size, and bail on short files.
115c990e5baSDaniel Fojt	* document DER better in the magic man page.
116c990e5baSDaniel Fojt
117c990e5baSDaniel Fojt2020-03-11  21:53  Christos Zoulas <christos@zoulas.com>
118c990e5baSDaniel Fojt
119c990e5baSDaniel Fojt	* fix memory leaks (SonarQube)
120c990e5baSDaniel Fojt
121c990e5baSDaniel Fojt2020-03-08  21:33  Christos Zoulas <christos@zoulas.com>
122c990e5baSDaniel Fojt
123c990e5baSDaniel Fojt	* fix memory leaks (SonarQube)
124c990e5baSDaniel Fojt	* rewrite confusing loops (SonarQube)
125c990e5baSDaniel Fojt	* fix bogus test (SonarQube)
126c990e5baSDaniel Fojt	* pass a sized buffer to file_fmttime() (SonarQube)
127c990e5baSDaniel Fojt
128c990e5baSDaniel Fojt	* fix memory leaks (SonarQube)
129c990e5baSDaniel Fojt
130c990e5baSDaniel Fojt2020-02-20  15:50  Christos Zoulas <christos@zoulas.com>
131c990e5baSDaniel Fojt
132c990e5baSDaniel Fojt	* Don't allow * in printf formats, or the code itself (Christoph Biedl)
133c990e5baSDaniel Fojt	* Introduce a printf output size checker to avoid DoS attacks
134c990e5baSDaniel Fojt
135c990e5baSDaniel Fojt2020-02-17  17:22  Christos Zoulas <christos@zoulas.com>
136c990e5baSDaniel Fojt
137c990e5baSDaniel Fojt	* Avoid memory leak on error (oss-fuzz)
138c990e5baSDaniel Fojt	* Check length of string on DER before derefercing and add new types
139c990e5baSDaniel Fojt	* Add missing DER string (oss-fuzz)
140c990e5baSDaniel Fojt
141c990e5baSDaniel Fojt2020-02-16  20:45  Christos Zoulas <christos@zoulas.com>
142c990e5baSDaniel Fojt
143c990e5baSDaniel Fojt	* Add missing DER types, and debugging
144c990e5baSDaniel Fojt
145c990e5baSDaniel Fojt2020-02-13  13:10  Christos Zoulas <christos@zoulas.com>
146c990e5baSDaniel Fojt
147c990e5baSDaniel Fojt	* PR/140: Avoid abort with hand-crafted magic file (gockelhahn)
148c990e5baSDaniel Fojt	* PR/139  Avoid DoS in printf with hand-crafted magic file (gockelhahn)
149c990e5baSDaniel Fojt	* PR/138: Avoid crash with hand-crafted magic file (gockelhahn)
150c990e5baSDaniel Fojt
151c990e5baSDaniel Fojt2020-02-12  17:30  Christos Zoulas <christos@zoulas.com>
152c990e5baSDaniel Fojt
153c990e5baSDaniel Fojt	* PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine)
154c990e5baSDaniel Fojt
155c990e5baSDaniel Fojt2019-12-24  14:16  Christos Zoulas <christos@zoulas.com>
156c990e5baSDaniel Fojt
157c990e5baSDaniel Fojt	* add guid support
158c990e5baSDaniel Fojt
1596fca56fbSSascha Wildner2019-12-16  21:11  Christos Zoulas <christos@zoulas.com>
1606fca56fbSSascha Wildner
1616fca56fbSSascha Wildner	* release 5.38
1626fca56fbSSascha Wildner
1636fca56fbSSascha Wildner2019-12-15  22:13  Christos Zoulas <christos@zoulas.com>
1646fca56fbSSascha Wildner    Document changes since the previous release:
1656fca56fbSSascha Wildner	- Always accept -S (no sandbox) even if we don't support sandboxing
1666fca56fbSSascha Wildner	- More syscalls elided for sandboxiing
1676fca56fbSSascha Wildner	- For ELF dynamic means having an interpreter not just PT_DYNAMIC
1686fca56fbSSascha Wildner	- Check for large ELF session header offset
1696fca56fbSSascha Wildner	- When saving and restoring a locale, keep the locale name in our
1706fca56fbSSascha Wildner	  own storage.
1716fca56fbSSascha Wildner	- Add a flag to disable CSV file detection.
1726fca56fbSSascha Wildner	- Don't pass NULL/0 to memset to appease sanitizers.
1736fca56fbSSascha Wildner	- Avoid spurious prints when looks for extensions or apple strings
1746fca56fbSSascha Wildner	  in fsmagic.
1756fca56fbSSascha Wildner	- Add builtin decompressors for xz and and bzip.
1766fca56fbSSascha Wildner	- Add a limit for the number of CDF elements.
1776fca56fbSSascha Wildner	- More checks for overflow in CDF.
1786fca56fbSSascha Wildner
1796fca56fbSSascha Wildner2019-05-14  22:26  Christos Zoulas <christos@zoulas.com>
1806fca56fbSSascha Wildner
1816fca56fbSSascha Wildner	* release 5.37
1826fca56fbSSascha Wildner
1836fca56fbSSascha Wildner2019-05-09  22:27  Christos Zoulas <christos@zoulas.com>
1846fca56fbSSascha Wildner
1856fca56fbSSascha Wildner	* Make sure that continuation separators are printed
1866fca56fbSSascha Wildner	  with -k within softmagic
1876fca56fbSSascha Wildner
1886fca56fbSSascha Wildner2019-05-06  22:27  Christos Zoulas <christos@zoulas.com>
1896fca56fbSSascha Wildner
1906fca56fbSSascha Wildner	* Change SIGPIPE saving and restoring during compression to use
1916fca56fbSSascha Wildner	  sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko)
1926fca56fbSSascha Wildner	* Cache stat(2) calls more to reduce number of calls (Denys Vlasenko)
1936fca56fbSSascha Wildner
1946fca56fbSSascha Wildner2019-05-06  17:25  Christos Zoulas <christos@zoulas.com>
1956fca56fbSSascha Wildner
1966fca56fbSSascha Wildner	* PR/77: Handle --mime-type and -k correctly.
1976fca56fbSSascha Wildner
1986fca56fbSSascha Wildner2019-05-03  15:26  Christos Zoulas <christos@zoulas.com>
1996fca56fbSSascha Wildner
2006fca56fbSSascha Wildner	* Switch decompression code to use vfork() because
2016fca56fbSSascha Wildner	  tools like rpmdiff and rpmbuild call libmagic
2026fca56fbSSascha Wildner	  with large process footprints (Denys Vlasenko)
2036fca56fbSSascha Wildner
2046fca56fbSSascha Wildner2019-04-07  14:05  Christos Zoulas <christos@zoulas.com>
2056fca56fbSSascha Wildner
2066fca56fbSSascha Wildner	* PR/75: --enable-zlib, did not work.
2076fca56fbSSascha Wildner
2086fca56fbSSascha Wildner2019-02-27  11:54  Christos Zoulas <christos@zoulas.com>
2096fca56fbSSascha Wildner
2106fca56fbSSascha Wildner	* Improve regex efficiency (Michael Schroeder) by:
2116fca56fbSSascha Wildner		1. Prefixing regex searches with regular search
2126fca56fbSSascha Wildner		   for keywords where possible
2136fca56fbSSascha Wildner		2. Using memmem(3) where available
2146fca56fbSSascha Wildner
2156fca56fbSSascha Wildner2019-02-20  10:16  Christos Zoulas <christos@zoulas.com>
2166fca56fbSSascha Wildner
2176fca56fbSSascha Wildner	* release 5.36
2186fca56fbSSascha Wildner
2196fca56fbSSascha Wildner2019-02-19  15:30  Christos Zoulas <christos@zoulas.com>
2206fca56fbSSascha Wildner
2216fca56fbSSascha Wildner	* Fix cast to use cast macros
2226fca56fbSSascha Wildner	* Add UCS-32 builtin detection (PR/61) reported by tmc
2236fca56fbSSascha Wildner
2246fca56fbSSascha Wildner2019-02-18  18:24  Christos Zoulas <christos@zoulas.com>
2256fca56fbSSascha Wildner
2266fca56fbSSascha Wildner	* Fix stack read (PR/62) and write (PR/64) stack overflows
2276fca56fbSSascha Wildner	  reported by spinpx
2286fca56fbSSascha Wildner
2296fca56fbSSascha Wildner2018-10-18  19:32  Christos Zoulas <christos@zoulas.com>
2306fca56fbSSascha Wildner
2316fca56fbSSascha Wildner	* release 5.35
2326fca56fbSSascha Wildner
2336fca56fbSSascha Wildner2018-09-10  20:38  Christos Zoulas <christos@zoulas.com>
2346fca56fbSSascha Wildner
2356fca56fbSSascha Wildner	* Add FreeBSD ELF core file support (John Baldwin)
2366fca56fbSSascha Wildner
2376fca56fbSSascha Wildner2018-08-20  18:40  Christos Zoulas <christos@zoulas.com>
2386fca56fbSSascha Wildner
2396fca56fbSSascha Wildner	* PR/30: Allow all parameter values to be set (don't treat 0 specially)
2406fca56fbSSascha Wildner	* handle default annotations on the softmagic match instead at the
2416fca56fbSSascha Wildner	  end.
2426fca56fbSSascha Wildner
2436fca56fbSSascha Wildner2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>
2446fca56fbSSascha Wildner
2456fca56fbSSascha Wildner	* PR/23: Recognize JSON files
2466fca56fbSSascha Wildner
2476fca56fbSSascha Wildner2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>
2486fca56fbSSascha Wildner
2496fca56fbSSascha Wildner	* PR/18: file --mime-encoding should not print mime-type
2506fca56fbSSascha Wildner
2516fca56fbSSascha Wildner2018-07-25   8:50  Christos Zoulas <christos@zoulas.com>
2526fca56fbSSascha Wildner
2536fca56fbSSascha Wildner	* release 5.34
2546fca56fbSSascha Wildner
2556fca56fbSSascha Wildner2018-06-22  16:38  Christos Zoulas <christos@zoulas.com>
2566fca56fbSSascha Wildner
2576fca56fbSSascha Wildner	* Add Quad indirect offsets
2586fca56fbSSascha Wildner
2596fca56fbSSascha Wildner2018-05-24  14:10  Christos Zoulas <christos@zoulas.com>
2606fca56fbSSascha Wildner
2616fca56fbSSascha Wildner	* Enable parsing of ELF dynamic sections to handle PIE better
2626fca56fbSSascha Wildner
2636fca56fbSSascha Wildner2018-04-15  14:52  Christos Zoulas <christos@zoulas.com>
2646fca56fbSSascha Wildner
2656fca56fbSSascha Wildner	* release 5.33
2666fca56fbSSascha Wildner
2676fca56fbSSascha Wildner2018-02-24  14:50  Christos Zoulas <christos@zoulas.com>
2686fca56fbSSascha Wildner
2696fca56fbSSascha Wildner	* extend the support for ${x?:} expansions for magic descriptions
2706fca56fbSSascha Wildner
2716fca56fbSSascha Wildner2018-02-21  16:25  Christos Zoulas <christos@zoulas.com>
2726fca56fbSSascha Wildner
2736fca56fbSSascha Wildner	* add support for ${x?:} in mime types to handle
2746fca56fbSSascha Wildner	  pie binaries.
2756fca56fbSSascha Wildner
2766fca56fbSSascha Wildner2017-11-03   9:23  Christos Zoulas <christos@zoulas.com>
2776fca56fbSSascha Wildner
2786fca56fbSSascha Wildner	* add support for negative offsets (offsets from the end of file)
2796fca56fbSSascha Wildner
2806fca56fbSSascha Wildner2017-09-26   8:22  Christos Zoulas <christos@zoulas.com>
2816fca56fbSSascha Wildner
2826fca56fbSSascha Wildner	* close the file on error when writing magic (Steve Grubb)
2836fca56fbSSascha Wildner
2846fca56fbSSascha Wildner2017-09-24  12:02  Christos Zoulas <christos@zoulas.com>
2856fca56fbSSascha Wildner
2866fca56fbSSascha Wildner	* seccomp support (Paul Moore)
2876fca56fbSSascha Wildner
288c30bd091SSascha Wildner2017-09-02  11:53  Christos Zoulas <christos@zoulas.com>
289c30bd091SSascha Wildner
290c30bd091SSascha Wildner	* release 5.32
291c30bd091SSascha Wildner
292c30bd091SSascha Wildner2017-08-28  16:37  Christos Zoulas <christos@zoulas.com>
293c30bd091SSascha Wildner
294c30bd091SSascha Wildner	* Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)
295c30bd091SSascha Wildner
296c30bd091SSascha Wildner2017-08-27  03:55  Christos Zoulas <christos@zoulas.com>
297c30bd091SSascha Wildner
298c30bd091SSascha Wildner	* Fix always true condition (Thomas Jarosch)
299c30bd091SSascha Wildner
300c30bd091SSascha Wildner2017-05-24  17:30  Christos Zoulas <christos@zoulas.com>
301c30bd091SSascha Wildner
302c30bd091SSascha Wildner	* pickier parsing of numeric values in magic files.
303c30bd091SSascha Wildner
304c30bd091SSascha Wildner2017-05-23  17:55  Christos Zoulas <christos@zoulas.com>
305c30bd091SSascha Wildner
306c30bd091SSascha Wildner	* PR/615 add magic_getflags()
307c30bd091SSascha Wildner
308c30bd091SSascha Wildner2017-05-23  13:55  Christos Zoulas <christos@zoulas.com>
309c30bd091SSascha Wildner
310c30bd091SSascha Wildner	* release 5.31
311c30bd091SSascha Wildner
312c30bd091SSascha Wildner2017-03-17  20:32  Christos Zoulas <christos@zoulas.com>
313c30bd091SSascha Wildner
314c30bd091SSascha Wildner	* remove trailing spaces from magic files
315c30bd091SSascha Wildner	* refactor is_tar
316c30bd091SSascha Wildner	* better bounds checks for cdf
317c30bd091SSascha Wildner
318c30bd091SSascha Wildner2017-02-10  12:24  Christos Zoulas <christos@zoulas.com>
319c30bd091SSascha Wildner
320c30bd091SSascha Wildner	* release 5.30
321c30bd091SSascha Wildner
322c30bd091SSascha Wildner2017-02-07  23:27  Christos Zoulas <christos@zoulas.com>
323c30bd091SSascha Wildner
324c30bd091SSascha Wildner	* If we exceeded the offset in a search return no match
325c30bd091SSascha Wildner	  (Christoph Biedl)
326c30bd091SSascha Wildner	* Be more lenient on corrupt CDF files (Christoph Biedl)
327c30bd091SSascha Wildner
328c30bd091SSascha Wildner2017-02-04  16:46  Christos Zoulas <christos@zoulas.com>
329c30bd091SSascha Wildner
330c30bd091SSascha Wildner	* pacify ubsan sign extension (oss-fuzz/524)
331c30bd091SSascha Wildner
332c30bd091SSascha Wildner2017-02-01  12:42  Christos Zoulas <christos@zoulas.com>
333c30bd091SSascha Wildner
334c30bd091SSascha Wildner	* off by one in cdf parsing (PR/593)
335c30bd091SSascha Wildner	* report debugging sections in elf (PR/591)
336c30bd091SSascha Wildner
337c30bd091SSascha Wildner2016-11-06  10:52  Christos Zoulas <christos@zoulas.com>
338c30bd091SSascha Wildner
339c30bd091SSascha Wildner	* Allow @@@ in extensions
340c30bd091SSascha Wildner	* Add missing overflow check in der magic (Jonas Wagner)
341c30bd091SSascha Wildner
342c30bd091SSascha Wildner2016-10-25  10:40  Christos Zoulas <christos@zoulas.com>
343c30bd091SSascha Wildner
344c30bd091SSascha Wildner	* release 5.29
345c30bd091SSascha Wildner
346c30bd091SSascha Wildner2016-10-24  11:20  Christos Zoulas <christos@zoulas.com>
347c30bd091SSascha Wildner
348c30bd091SSascha Wildner	* der getlength overflow (Jonas Wagner)
349c30bd091SSascha Wildner	* multiple magic file load failure (Christoph Biedl)
350c30bd091SSascha Wildner
351c30bd091SSascha Wildner2016-10-17  11:26  Christos Zoulas <christos@zoulas.com>
352c30bd091SSascha Wildner
353c30bd091SSascha Wildner	* CDF parsing improvements (Guy Helmer)
354c30bd091SSascha Wildner
355c30bd091SSascha Wildner2016-07-20   7:26  Christos Zoulas <christos@zoulas.com>
356c30bd091SSascha Wildner
357c30bd091SSascha Wildner	* Add support for signed indirect offsets
358c30bd091SSascha Wildner
359c30bd091SSascha Wildner2016-07-18   7:41  Christos Zoulas <christos@zoulas.com>
360c30bd091SSascha Wildner
361c30bd091SSascha Wildner	* cat /dev/null | file - should print empty (Christoph Biedl)
362c30bd091SSascha Wildner
363c30bd091SSascha Wildner2016-07-05  15:20  Christos Zoulas <christos@zoulas.com>
364c30bd091SSascha Wildner
365c30bd091SSascha Wildner	* Bump string size from 64 to 96.
366c30bd091SSascha Wildner
367c30bd091SSascha Wildner2016-06-13  20:20  Christos Zoulas <christos@zoulas.com>
368c30bd091SSascha Wildner
369c30bd091SSascha Wildner	* PR/556: Fix separators on annotations.
370c30bd091SSascha Wildner
371c30bd091SSascha Wildner2016-06-13  19:40  Christos Zoulas <christos@zoulas.com>
372c30bd091SSascha Wildner
373c30bd091SSascha Wildner	* release 5.28
374c30bd091SSascha Wildner	* fix leak on allocation failure
375c30bd091SSascha Wildner
376c30bd091SSascha Wildner2016-06-01   1:20  Christos Zoulas <christos@zoulas.com>
377c30bd091SSascha Wildner
378c30bd091SSascha Wildner	* PR/555: Avoid overflow for offset > nbytes
379c30bd091SSascha Wildner	* PR/550: Segv on DER parsing:
380c30bd091SSascha Wildner	    - use the correct variable for length
381c30bd091SSascha Wildner	    - set offset to 0 on failure.
382c30bd091SSascha Wildner
383c30bd091SSascha Wildner2016-05-13  12:00  Christos Zoulas <christos@zoulas.com>
384c30bd091SSascha Wildner
385c30bd091SSascha Wildner	* release 5.27
386c30bd091SSascha Wildner
387c30bd091SSascha Wildner2016-04-18   9:35  Christos Zoulas <christos@zoulas.com>
388c30bd091SSascha Wildner
389c30bd091SSascha Wildner	* Errors comparing DER entries or computing offsets
390c30bd091SSascha Wildner	  are just indications of malformed non-DER files.
391c30bd091SSascha Wildner	  Don't print them.
392c30bd091SSascha Wildner	* Offset comparison was off-by-one.
393c30bd091SSascha Wildner	* Fix compression code (Werner Fink)
394c30bd091SSascha Wildner	* Put new bytes constant in the right file (not the generated one)
395c30bd091SSascha Wildner
396c30bd091SSascha Wildner2016-04-16  18:34  Christos Zoulas <christos@zoulas.com>
397c30bd091SSascha Wildner
398c30bd091SSascha Wildner	* release 5.26
399c30bd091SSascha Wildner
400c30bd091SSascha Wildner2016-03-31  13:50  Christos Zoulas <christos@zoulas.com>
401c30bd091SSascha Wildner
402c30bd091SSascha Wildner	* make the number of bytes read from files configurable.
403c30bd091SSascha Wildner
404c30bd091SSascha Wildner2016-03-21  13:40  Christos Zoulas <christos@zoulas.com>
405c30bd091SSascha Wildner
406c30bd091SSascha Wildner	* Add bounds checks for DER code (discovered by Thomas Jarosch)
407c30bd091SSascha Wildner	* Change indirect recursion limit to indirect use count and
408c30bd091SSascha Wildner	  bump from 15 to 50 to prevent abuse.
409c30bd091SSascha Wildner
410c30bd091SSascha Wildner2016-03-13  20:39  Christos Zoulas <christos@zoulas.com>
411c30bd091SSascha Wildner
412c30bd091SSascha Wildner	* Add -00 which prints filename\0description\0
413c30bd091SSascha Wildner
414c30bd091SSascha Wildner2016-03-01  13:28  Christos Zoulas <christos@zoulas.com>
415c30bd091SSascha Wildner
416c30bd091SSascha Wildner	* Fix ID3 indirect parsing
417c30bd091SSascha Wildner
418c30bd091SSascha Wildner2016-01-19  10:18  Christos Zoulas <christos@zoulas.com>
419c30bd091SSascha Wildner
420c30bd091SSascha Wildner	* add DER parsing capability
421c30bd091SSascha Wildner
422c30bd091SSascha Wildner2015-11-13  10:35  Christos Zoulas <christos@zoulas.com>
423c30bd091SSascha Wildner
424c30bd091SSascha Wildner	* provide dprintf(3) for the OS's that don't have it.
425c30bd091SSascha Wildner
426c30bd091SSascha Wildner2015-11-11  16:25  Christos Zoulas <christos@zoulas.com>
427c30bd091SSascha Wildner
428c30bd091SSascha Wildner	* redo the compression code report decompression errors
429c30bd091SSascha Wildner
430c30bd091SSascha Wildner2015-11-10  23:25  Christos Zoulas <christos@zoulas.com>
431c30bd091SSascha Wildner
432c30bd091SSascha Wildner	* REG_STARTEND code is not working as expected, delete it.
433c30bd091SSascha Wildner
434c30bd091SSascha Wildner2015-11-09  16:05  Christos Zoulas <christos@zoulas.com>
435c30bd091SSascha Wildner
436c30bd091SSascha Wildner	* Add zlib support if we have it.
437c30bd091SSascha Wildner
438c30bd091SSascha Wildner2015-11-05  11:22  Christos Zoulas <christos@zoulas.com>
439c30bd091SSascha Wildner
440c30bd091SSascha Wildner	* PR/492: compression forking was broken with magic_buffer.
441c30bd091SSascha Wildner
442c30bd091SSascha Wildner2015-09-16   9:50  Christos Zoulas <christos@zoulas.com>
443c30bd091SSascha Wildner
444c30bd091SSascha Wildner	* release 5.25
445c30bd091SSascha Wildner
446c30bd091SSascha Wildner2015-09-11  13:25  Christos Zoulas <christos@zoulas.com>
447c30bd091SSascha Wildner
448c30bd091SSascha Wildner	* add a limit to the length of regex searches
449c30bd091SSascha Wildner
450c30bd091SSascha Wildner2015-09-08   9:50  Christos Zoulas <christos@zoulas.com>
451c30bd091SSascha Wildner
452c30bd091SSascha Wildner	* fix problems with --parameter (Christoph Biedl)
453c30bd091SSascha Wildner
454c30bd091SSascha Wildner2015-07-11  10:35  Christos Zoulas <christos@zoulas.com>
455c30bd091SSascha Wildner
456c30bd091SSascha Wildner	* Windows fixes PR/466 (Jason Hood)
457c30bd091SSascha Wildner
458c30bd091SSascha Wildner2015-07-09  10:35  Christos Zoulas <christos@zoulas.com>
459c30bd091SSascha Wildner
460c30bd091SSascha Wildner	* release 5.24
461c30bd091SSascha Wildner
462c30bd091SSascha Wildner2015-06-11   8:52  Christos Zoulas <christos@zoulas.com>
463c30bd091SSascha Wildner
464c30bd091SSascha Wildner	* redo long option encoding to fix off-by-one in 5.23
465c30bd091SSascha Wildner
466c30bd091SSascha Wildner2015-06-10  13:50  Christos Zoulas <christos@zoulas.com>
467c30bd091SSascha Wildner
468c30bd091SSascha Wildner	* release 5.23
469c30bd091SSascha Wildner
470c30bd091SSascha Wildner2015-06-09  16:10  Christos Zoulas <christos@zoulas.com>
471c30bd091SSascha Wildner
472c30bd091SSascha Wildner	* Fix issue with regex range for magic with offset
473c30bd091SSascha Wildner	* Always return true from mget with USE (success to mget not match
474c30bd091SSascha Wildner	  indication). Fixes mime evaluation after USE magic
475c30bd091SSascha Wildner	* PR/459: Don't insert magic entries to the list if there are parsing
476c30bd091SSascha Wildner	  errors for them.
477c30bd091SSascha Wildner
478c30bd091SSascha Wildner2015-06-03  16:00  Christos Zoulas <christos@zoulas.com>
479c30bd091SSascha Wildner
480c30bd091SSascha Wildner	* PR/455: Add utf-7 encoding
481c30bd091SSascha Wildner
482c30bd091SSascha Wildner2015-06-03  14:30  Christos Zoulas <christos@zoulas.com>
483c30bd091SSascha Wildner
484c30bd091SSascha Wildner	* PR/455: Implement -Z, look inside, but don't report on compression
485c30bd091SSascha Wildner	* PR/454: Fix allocation error on bad magic.
486c30bd091SSascha Wildner
487c30bd091SSascha Wildner2015-05-29  10:30  Christos Zoulas <christos@zoulas.com>
488c30bd091SSascha Wildner
489c30bd091SSascha Wildner	* handle MAGIC_CONTINUE everywhere, not just in softmagic
490c30bd091SSascha Wildner
491c30bd091SSascha Wildner2015-05-21  14:30  Christos Zoulas <christos@zoulas.com>
492c30bd091SSascha Wildner
493c30bd091SSascha Wildner	* don't print descriptions for NAME types when mime.
494c30bd091SSascha Wildner
495c30bd091SSascha Wildner2015-04-09  15:59  Christos Zoulas <christos@zoulas.com>
496c30bd091SSascha Wildner
497c30bd091SSascha Wildner	* Add --extension to list the known extensions for this file type
498c30bd091SSascha Wildner	  Idea by Andrew J Roazen
499c30bd091SSascha Wildner
500c30bd091SSascha Wildner2015-02-14  12:23  Christos Zoulas <christos@zoulas.com>
501c30bd091SSascha Wildner
502c30bd091SSascha Wildner	* Bump file search buffer size to 1M.
503c30bd091SSascha Wildner
504c30bd091SSascha Wildner2015-01-09  14:35  Christos Zoulas <christos@zoulas.com>
505c30bd091SSascha Wildner
506c30bd091SSascha Wildner	* Fix multiple issues with date formats reported by Christoph Biedl:
507c30bd091SSascha Wildner		- T_LOCAL meaning was reversed
508c30bd091SSascha Wildner		- Arithmetic did not work
509c30bd091SSascha Wildner	  Also stop adjusting daylight savings for gmt printing.
510c30bd091SSascha Wildner
511c30bd091SSascha Wildner2015-01-05  13:00  Christos Zoulas <christos@zoulas.com>
512c30bd091SSascha Wildner
513c30bd091SSascha Wildner	* PR/411: Fix memory corruption from corrupt cdf file.
514c30bd091SSascha Wildner
51582c5fa3eSPeter Avalos2015-01-02  15:15  Christos Zoulas <christos@zoulas.com>
51682c5fa3eSPeter Avalos
51782c5fa3eSPeter Avalos	* release 5.22
51882c5fa3eSPeter Avalos
51982c5fa3eSPeter Avalos2015-01-01  12:01  Christos Zoulas <christos@zoulas.com>
52082c5fa3eSPeter Avalos
52182c5fa3eSPeter Avalos	* add indirect relative for TIFF/Exif
52282c5fa3eSPeter Avalos
52382c5fa3eSPeter Avalos2014-12-16  18:10  Christos Zoulas <christos@zoulas.com>
52482c5fa3eSPeter Avalos
52582c5fa3eSPeter Avalos	* restructure elf note printing to avoid repeated messages
52682c5fa3eSPeter Avalos	* add note limit, suggested by Alexander Cherepanov
52782c5fa3eSPeter Avalos
52882c5fa3eSPeter Avalos2014-12-16  16:53  Christos Zoulas <christos@zoulas.com>
52982c5fa3eSPeter Avalos
53082c5fa3eSPeter Avalos	* Bail out on partial pread()'s (Alexander Cherepanov)
53182c5fa3eSPeter Avalos	* Fix incorrect bounds check in file_printable (Alexander Cherepanov)
53282c5fa3eSPeter Avalos
53382c5fa3eSPeter Avalos2014-12-11  20:01  Christos Zoulas <christos@zoulas.com>
53482c5fa3eSPeter Avalos
53582c5fa3eSPeter Avalos	* PR/405: ignore SIGPIPE from uncompress programs
53682c5fa3eSPeter Avalos	* change printable -> file_printable and use it in
53782c5fa3eSPeter Avalos	  more places for safety
53882c5fa3eSPeter Avalos	* in ELF, instead of "(uses dynamic libraries)" when PT_INTERP
53982c5fa3eSPeter Avalos	  is present print the interpreter name.
54082c5fa3eSPeter Avalos
54182c5fa3eSPeter Avalos2014-12-10  20:01  Christos Zoulas <christos@zoulas.com>
54282c5fa3eSPeter Avalos
54382c5fa3eSPeter Avalos	* release 5.21
54482c5fa3eSPeter Avalos
54582c5fa3eSPeter Avalos2014-11-27  18:40  Christos Zoulas <christos@zoulas.com>
54682c5fa3eSPeter Avalos
54782c5fa3eSPeter Avalos	* Allow setting more parameters from the command line.
54882c5fa3eSPeter Avalos	* Split name/use and indirect magic recursion limits.
54982c5fa3eSPeter Avalos
55082c5fa3eSPeter Avalos2014-11-27  11:12  Christos Zoulas <christos@zoulas.com>
55182c5fa3eSPeter Avalos
55282c5fa3eSPeter Avalos	* Adjust ELF parameters and the default recursion
55382c5fa3eSPeter Avalos	  level.
55482c5fa3eSPeter Avalos	* Allow setting the recursion level dynamically.
55582c5fa3eSPeter Avalos
55682c5fa3eSPeter Avalos2014-11-24   8:55  Christos Zoulas <christos@zoulas.com>
55782c5fa3eSPeter Avalos
55882c5fa3eSPeter Avalos	* The following fixes resulted from Thomas Jarosch's fuzzing
55982c5fa3eSPeter Avalos	  tests that revealed severe performance issues on pathological
56082c5fa3eSPeter Avalos	  input:
56182c5fa3eSPeter Avalos	    - limit number of elf program and sections processing
56282c5fa3eSPeter Avalos	    - abort elf note processing quickly
56382c5fa3eSPeter Avalos	    - reduce the number of recursion levels from 20 to 10
56482c5fa3eSPeter Avalos	    - preserve error messages in indirect magic handling
56582c5fa3eSPeter Avalos
56682c5fa3eSPeter Avalos	This is tracked as CVE-2014-8116 and CVE-2014-8117
56782c5fa3eSPeter Avalos
56882c5fa3eSPeter Avalos2014-11-12  10:30  Christos Zoulas <christos@zoulas.com>
56982c5fa3eSPeter Avalos
57082c5fa3eSPeter Avalos	* fix bogus free in the user buffer case.
57182c5fa3eSPeter Avalos
57282c5fa3eSPeter Avalos2014-11-11  12:35  Christos Zoulas <christos@zoulas.com>
57382c5fa3eSPeter Avalos
57482c5fa3eSPeter Avalos	* fix out of bounds read for pascal strings
57582c5fa3eSPeter Avalos	* fix memory leak (not freeing the head of each mlist)
57682c5fa3eSPeter Avalos
57782c5fa3eSPeter Avalos2014-11-07  10:25  Christos Zoulas <christos@zoulas.com>
57882c5fa3eSPeter Avalos
57982c5fa3eSPeter Avalos	* When printing strings from a file, convert them to printable
58082c5fa3eSPeter Avalos	  on a byte by byte basis, so that we don't get issues with
58182c5fa3eSPeter Avalos	  locale's trying to interpret random byte streams as UTF-8 and
58282c5fa3eSPeter Avalos	  having printf error out with EILSEQ.
58382c5fa3eSPeter Avalos
58482c5fa3eSPeter Avalos2014-10-17  11:48  Christos Zoulas <christos@zoulas.com>
58582c5fa3eSPeter Avalos
58682c5fa3eSPeter Avalos	* fix bounds in note reading (Francisco Alonso / Red Hat)
58782c5fa3eSPeter Avalos
58882c5fa3eSPeter Avalos2014-10-11  15:02  Christos Zoulas <christos@zoulas.com>
58982c5fa3eSPeter Avalos
59082c5fa3eSPeter Avalos	* fix autoconf glue for setlocale and locale_t; some OS's
59182c5fa3eSPeter Avalos	  have locale_t in xlocale.h
59282c5fa3eSPeter Avalos
59382c5fa3eSPeter Avalos2014-10-10  15:01  Christos Zoulas <christos@zoulas.com>
59482c5fa3eSPeter Avalos
59582c5fa3eSPeter Avalos	* release 5.20
59682c5fa3eSPeter Avalos
59782c5fa3eSPeter Avalos2014-08-17  10:01  Christos Zoulas <christos@zoulas.com>
59882c5fa3eSPeter Avalos
59982c5fa3eSPeter Avalos	* recognize encrypted CDF documents
60082c5fa3eSPeter Avalos
60182c5fa3eSPeter Avalos2014-08-04   9:18  Christos Zoulas <christos@zoulas.com>
60282c5fa3eSPeter Avalos
60382c5fa3eSPeter Avalos	* add magic_load_buffers from Brooks Davis
60482c5fa3eSPeter Avalos
60582c5fa3eSPeter Avalos2014-07-24  16:40  Christos Zoulas <christos@zoulas.com>
60682c5fa3eSPeter Avalos
60782c5fa3eSPeter Avalos	* add thumbs.db support
60882c5fa3eSPeter Avalos
60982c5fa3eSPeter Avalos2014-06-12  12:28  Christos Zoulas <christos@zoulas.com>
61082c5fa3eSPeter Avalos
61182c5fa3eSPeter Avalos	* release 5.19
61282c5fa3eSPeter Avalos
61382c5fa3eSPeter Avalos2014-06-09   9:04  Christos Zoulas <christos@zoulas.com>
61482c5fa3eSPeter Avalos
61582c5fa3eSPeter Avalos	* Misc buffer overruns and missing buffer size tests in cdf parsing
61682c5fa3eSPeter Avalos	  (Francisco Alonso, Jan Kaluza)
61782c5fa3eSPeter Avalos
61882c5fa3eSPeter Avalos2014-06-02  14:50  Christos Zoulas <christos@zoulas.com>
61982c5fa3eSPeter Avalos
62082c5fa3eSPeter Avalos	* Enforce limit of 8K on regex searches that have no limits
62182c5fa3eSPeter Avalos	* Allow the l modifier for regex to mean line count. Default
62282c5fa3eSPeter Avalos	  to byte count. If line count is specified, assume a max
62382c5fa3eSPeter Avalos	  of 80 characters per line to limit the byte count.
62482c5fa3eSPeter Avalos	* Don't allow conversions to be used for dates, allowing
62582c5fa3eSPeter Avalos	  the mask field to be used as an offset.
62682c5fa3eSPeter Avalos
62782c5fa3eSPeter Avalos2014-05-30  12:51  Christos Zoulas <christos@zoulas.com>
62882c5fa3eSPeter Avalos
62982c5fa3eSPeter Avalos	* Make the range operator limit the length of the
63082c5fa3eSPeter Avalos	  regex search.
63182c5fa3eSPeter Avalos
63282c5fa3eSPeter Avalos2014-05-14  19:23  Christos Zoulas <christos@zoulas.com>
63382c5fa3eSPeter Avalos
63482c5fa3eSPeter Avalos	* PR/347: Windows fixes
63582c5fa3eSPeter Avalos	* PR/352: Hangul word processor recognition
63682c5fa3eSPeter Avalos	* PR/354: Encoding irregularities in text files
63782c5fa3eSPeter Avalos
63882c5fa3eSPeter Avalos2014-05-06  6:12  Christos Zoulas <christos@zoulas.com>
63982c5fa3eSPeter Avalos
64082c5fa3eSPeter Avalos	* Fix uninitialized title in CDF files (Jan Kaluza)
64182c5fa3eSPeter Avalos
64282c5fa3eSPeter Avalos2014-05-04  14:55  Christos Zoulas <christos@zoulas.com>
64382c5fa3eSPeter Avalos
64482c5fa3eSPeter Avalos	* PR/351: Fix compilation of empty files
64582c5fa3eSPeter Avalos
64682c5fa3eSPeter Avalos2014-04-30  17:39  Christos Zoulas <christos@zoulas.com>
64782c5fa3eSPeter Avalos
64882c5fa3eSPeter Avalos	* Fix integer formats: We don't specify 'l' or
64982c5fa3eSPeter Avalos	  'h' and 'hh' specifiers anymore, only 'll' for
65082c5fa3eSPeter Avalos	  quads and nothing for the rest. This is so that
65182c5fa3eSPeter Avalos	  magic writing is simpler.
65282c5fa3eSPeter Avalos
65382c5fa3eSPeter Avalos2014-04-01  15:25  Christos Zoulas <christos@zoulas.com>
65482c5fa3eSPeter Avalos
65582c5fa3eSPeter Avalos	* PR/341: Jan Kaluza, fix memory leak
65682c5fa3eSPeter Avalos	* PR/342: Jan Kaluza, fix out of bounds read
65782c5fa3eSPeter Avalos
65882c5fa3eSPeter Avalos2014-03-28  15:25  Christos Zoulas <christos@zoulas.com>
65982c5fa3eSPeter Avalos
66082c5fa3eSPeter Avalos	* Fix issue with long formats not matching fmtcheck
66182c5fa3eSPeter Avalos
662e8af9738SPeter Avalos2014-03-26  11:25  Christos Zoulas <christos@zoulas.com>
663e8af9738SPeter Avalos
664e8af9738SPeter Avalos	* release 5.18
665e8af9738SPeter Avalos
666e8af9738SPeter Avalos2014-03-15  17:45  Christos Zoulas <christos@zoulas.com>
667e8af9738SPeter Avalos
668e8af9738SPeter Avalos	* add fmtcheck(3) for those who don't have it
669e8af9738SPeter Avalos
670e8af9738SPeter Avalos2014-03-14  15:12  Christos Zoulas <christos@zoulas.com>
671e8af9738SPeter Avalos
672e8af9738SPeter Avalos	* prevent mime entries from being attached to magic
673e8af9738SPeter Avalos	  entries with no descriptions
674e8af9738SPeter Avalos
675e8af9738SPeter Avalos	* adjust magic strength for regex type
676e8af9738SPeter Avalos
677e8af9738SPeter Avalos	* remove superfluous ascmagic with encoding test
678e8af9738SPeter Avalos
679e8af9738SPeter Avalos2014-03-06  12:01  Christos Zoulas <christos@zoulas.com>
680e8af9738SPeter Avalos
681e8af9738SPeter Avalos	* fix regression fix echo -ne "\012\013\014" | file -i -
682e8af9738SPeter Avalos	  which printed "binary" instead of "application/octet-stream"
683e8af9738SPeter Avalos
684e8af9738SPeter Avalos	* add size_t overflow check for magic file size
685e8af9738SPeter Avalos
686e8af9738SPeter Avalos2014-02-27  16:01  Christos Zoulas <christos@zoulas.com>
687e8af9738SPeter Avalos
688e8af9738SPeter Avalos	* experimental support for matching with CFD CLSID
689e8af9738SPeter Avalos
690e8af9738SPeter Avalos2014-02-18  13:04  Kimmo Suominen (kimmo@suominen.com)
691e8af9738SPeter Avalos
692e8af9738SPeter Avalos	* Cache old LC_CTYPE locale before setting it to "C", so
693e8af9738SPeter Avalos	  we can use it to restore LC_CTYPE instead of asking
694e8af9738SPeter Avalos	  setlocale() to scan the environment variables.
695e8af9738SPeter Avalos
696e8af9738SPeter Avalos2014-02-12  18:21  Christos Zoulas <christos@zoulas.com>
697e8af9738SPeter Avalos
698e8af9738SPeter Avalos	* Count recursion levels through indirect magic
699e8af9738SPeter Avalos
700e8af9738SPeter Avalos2014-02-11  10:40  Christos Zoulas <christos@zoulas.com>
701e8af9738SPeter Avalos
702e8af9738SPeter Avalos	* Prevent infinite recursion on files with indirect offsets of 0
703e8af9738SPeter Avalos
704e8af9738SPeter Avalos2014-01-30  21:00  Christos Zoulas <christos@zoulas.com>
705e8af9738SPeter Avalos
706e8af9738SPeter Avalos	* Add -E flag that makes file print filesystem errors to stderr
707e8af9738SPeter Avalos	  and exit.
708e8af9738SPeter Avalos
709e8af9738SPeter Avalos2014-01-08  17:20  Christos Zoulas <christos@zoulas.com>
710e8af9738SPeter Avalos
711e8af9738SPeter Avalos	* mime printing could print results from multiple magic entries
712e8af9738SPeter Avalos	  if there were multiple matches.
713e8af9738SPeter Avalos	* in some cases overflow was not detected when computing offsets
714e8af9738SPeter Avalos	  in softmagic.
715e8af9738SPeter Avalos
716e8af9738SPeter Avalos2013-12-05  12:00  Christos Zoulas <christos@zoulas.com>
717e8af9738SPeter Avalos
718e8af9738SPeter Avalos	* use strcasestr() to for cdf strings
719e8af9738SPeter Avalos	* reset to the "C" locale while doing regex operations, or case
720e8af9738SPeter Avalos	  insensitive comparisons; this is provisional
721e8af9738SPeter Avalos
722e8af9738SPeter Avalos2013-11-19  20:10  Christos Zoulas <christos@zoulas.com>
723e8af9738SPeter Avalos
724e8af9738SPeter Avalos	* always leave magic file loaded, don't unload for magic_check, etc.
725e8af9738SPeter Avalos	* fix default encoding to binary instead of unknown which broke recently
726e8af9738SPeter Avalos	* handle empty and one byte files, less specially so that
727e8af9738SPeter Avalos	  --mime-encoding does not break completely.
728e8af9738SPeter Avalos		`
729e8af9738SPeter Avalos2013-11-06  14:40  Christos Zoulas <christos@zoulas.com>
730e8af9738SPeter Avalos
731c30bd091SSascha Wildner	* fix erroneous non-zero exit code from non-existent file and message
732e8af9738SPeter Avalos
733e8af9738SPeter Avalos2013-10-29  14:25  Christos Zoulas <christos@zoulas.com>
734e8af9738SPeter Avalos
735e8af9738SPeter Avalos	* add CDF MSI file detection (Guy Helmer)
736e8af9738SPeter Avalos
737e8af9738SPeter Avalos2013-09-03  11:56  Christos Zoulas <christos@zoulas.com>
738e8af9738SPeter Avalos
739e8af9738SPeter Avalos	* Don't mix errors and regular output if there was an error
740e8af9738SPeter Avalos	* in magic_descriptor() don't close the file and try to restore
741e8af9738SPeter Avalos	  its position
742e8af9738SPeter Avalos
743e8af9738SPeter Avalos2013-05-30  17:25  Christos Zoulas <christos@zoulas.com>
744e8af9738SPeter Avalos
745e8af9738SPeter Avalos	* Don't treat magic as an error if offset was past EOF (Christoph Biedl)
746e8af9738SPeter Avalos
747e8af9738SPeter Avalos2013-05-28  17:25  Christos Zoulas <christos@zoulas.com>
748e8af9738SPeter Avalos
749e8af9738SPeter Avalos	* Fix spacing issues in softmagic and elf (Jan Kaluza)
750e8af9738SPeter Avalos
751e8af9738SPeter Avalos2013-05-02  18:00  Christos Zoulas <christos@zoulas.com>
752e8af9738SPeter Avalos
753e8af9738SPeter Avalos	* Fix segmentation fault with multiple magic_load commands.
754e8af9738SPeter Avalos
755e8af9738SPeter Avalos2013-04-22  11:20  Christos Zoulas <christos@zoulas.com>
756e8af9738SPeter Avalos
757e8af9738SPeter Avalos	* The way "default" was implemented was not very useful
758e8af9738SPeter Avalos	  because the "if something was printed at that level"
759e8af9738SPeter Avalos	  was not easily controlled by the user, and the format
760e8af9738SPeter Avalos	  was bound to a string which is too restrictive. Add
761e8af9738SPeter Avalos	  a "clear" for that level keyword and make "default"
762e8af9738SPeter Avalos	  void. This way one can do:
763e8af9738SPeter Avalos
764e8af9738SPeter Avalos		>>13	clear	x
765e8af9738SPeter Avalos		>>13	lelong	1	foo
766e8af9738SPeter Avalos		>>13	lelong	2	bar
767e8af9738SPeter Avalos		>>13	default	x
768e8af9738SPeter Avalos		>>>13	lelong	x	unknown %x
769e8af9738SPeter Avalos
770e8af9738SPeter Avalos2013-03-25  13:20  Christos Zoulas <christos@zoulas.com>
771e8af9738SPeter Avalos
772e8af9738SPeter Avalos	* disallow strength setting in "name" entries
773e8af9738SPeter Avalos
774e8af9738SPeter Avalos2013-03-06  21:24  Christos Zoulas <christos@zoulas.com>
775e8af9738SPeter Avalos
776e8af9738SPeter Avalos	* fix recursive magic separator printing
777e8af9738SPeter Avalos
778e8af9738SPeter Avalos2013-02-26  19:28  Christos Zoulas <christos@zoulas.com>
779e8af9738SPeter Avalos
780e8af9738SPeter Avalos	* limit recursion level for mget
781e8af9738SPeter Avalos	* fix pread() related breakage in cdf
782e8af9738SPeter Avalos	* handle offsets properly in recursive "use"
783e8af9738SPeter Avalos
784e8af9738SPeter Avalos2013-02-18  10:39  Christos Zoulas <christos@zoulas.com>
785e8af9738SPeter Avalos
786e8af9738SPeter Avalos	* add elf reading of debug info to determine if file is stripped
787e8af9738SPeter Avalos	  (Jan Kaluza)
788e8af9738SPeter Avalos	* use pread()
789e8af9738SPeter Avalos
790e8af9738SPeter Avalos2013-01-25  18:05  Christos Zoulas <christos@zoulas.com>
791e8af9738SPeter Avalos
792e8af9738SPeter Avalos	* change mime description size from 64 to 80 to accommodate OOXML.
793e8af9738SPeter Avalos
794e8af9738SPeter Avalos2013-01-11  14:50  Christos Zoulas <christos@zoulas.com>
795e8af9738SPeter Avalos
796e8af9738SPeter Avalos	* Warn about inconsistent continuation levels.
797e8af9738SPeter Avalos	* Change fsmagic to add a space after it prints.
798e8af9738SPeter Avalos
799e8af9738SPeter Avalos2013-01-10  21:00  Christos Zoulas <christos@zoulas.com>
800e8af9738SPeter Avalos
801e8af9738SPeter Avalos	* Make getline public so that file can link against it.
802e8af9738SPeter Avalos	  Perhaps it is better to rename it, or hide it differently.
803e8af9738SPeter Avalos	  Fixes builds on platforms that do not provide it.
804e8af9738SPeter Avalos
805e8af9738SPeter Avalos2013-01-07  16:30  Christos Zoulas <christos@zoulas.com>
806e8af9738SPeter Avalos
807e8af9738SPeter Avalos	* Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document
808e8af9738SPeter Avalos	  what long, int, short, etc is (Guy Harris)
809e8af9738SPeter Avalos
810e8af9738SPeter Avalos2013-01-06  11:20  Christos Zoulas <christos@zoulas.com>
811e8af9738SPeter Avalos
812e8af9738SPeter Avalos	* add magic_version function and constant
813e8af9738SPeter Avalos	* Redo memory allocation and de-allocation.
814e8af9738SPeter Avalos	  (prevents double frees on non mmap platforms)
815e8af9738SPeter Avalos	* Fix bug with name/use having to do with passing
816e8af9738SPeter Avalos	  found state from the parent to the child and back.
817e8af9738SPeter Avalos
818e8af9738SPeter Avalos2012-12-19   8:47  Christos Zoulas <christos@zoulas.com>
819e8af9738SPeter Avalos
820e8af9738SPeter Avalos	* Only print elf capabilities for archs we know (Jan Kaluza)
821e8af9738SPeter Avalos
822e8af9738SPeter Avalos2012-10-30  19:14  Christos Zoulas <christos@zoulas.com>
823e8af9738SPeter Avalos
824e8af9738SPeter Avalos	* Add "name" and "use" file types in order to look
825e8af9738SPeter Avalos	  inside mach-o files.
826e8af9738SPeter Avalos
827e8af9738SPeter Avalos2012-09-06  10:40  Christos Zoulas <christos@zoulas.com>
828e8af9738SPeter Avalos
829e8af9738SPeter Avalos	* make --version exit 0 (Matthew Schultz)
830e8af9738SPeter Avalos	* add string/T (Jan Kaluza)
831e8af9738SPeter Avalos
832e8af9738SPeter Avalos2012-08-09  2:15  Christos Zoulas <christos@zoulas.com>
833e8af9738SPeter Avalos
834e8af9738SPeter Avalos	* add z and t modifiers for our own vasprintf
835e8af9738SPeter Avalos	* search for $HOME/.magic.mgc if it is there first
836e8af9738SPeter Avalos	* fix reads from a pipe, and preserve errno
837e8af9738SPeter Avalos
838e8af9738SPeter Avalos2012-05-15  13:12  Christos Zoulas <christos@zoulas.com>
839e8af9738SPeter Avalos
840e8af9738SPeter Avalos	* use ctime_r, asctime_r
841e8af9738SPeter Avalos
842e8af9738SPeter Avalos2012-04-06  17:18  Christos Zoulas <christos@zoulas.com>
843e8af9738SPeter Avalos
844e8af9738SPeter Avalos	* Fixes for indirect offsets to handle apple disk formats
845e8af9738SPeter Avalos
846e8af9738SPeter Avalos2012-04-03  18:26  Christos Zoulas <christos@zoulas.com>
847e8af9738SPeter Avalos
848e8af9738SPeter Avalos	* Add windows date field types
849e8af9738SPeter Avalos	* More info for windows shortcuts (incomplete)
850e8af9738SPeter Avalos
85117b11469SPeter Avalos2012-02-20  17:33  Christos Zoulas <christos@zoulas.com>
85217b11469SPeter Avalos
85317b11469SPeter Avalos	* Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann)
85417b11469SPeter Avalos
8559f86ab30SPeter Avalos2011-12-15  12:17  Chris Metcalf <cmetcalf@tilera.com>
8569f86ab30SPeter Avalos
8579f86ab30SPeter Avalos	* Support Tilera architectures (tile64, tilepro, tilegx).
8589f86ab30SPeter Avalos
8599f86ab30SPeter Avalos2011-12-16  16:33  Reuben Thomas <rrt@sc3d.org>
8609f86ab30SPeter Avalos
8619f86ab30SPeter Avalos	* Add magic for /usr/bin/env Perl scripts
8629f86ab30SPeter Avalos	* Weaken generic script magic to avoid clashing with
8639f86ab30SPeter Avalos	language-specific magic.
8649f86ab30SPeter Avalos
8659f86ab30SPeter Avalos2011-12-08  13:37  Reuben Thomas <rrt@sc3d.org>
8669f86ab30SPeter Avalos
8679f86ab30SPeter Avalos	* Simplify if (p) free(p) to free(p).
8689f86ab30SPeter Avalos
8699f86ab30SPeter Avalos2011-12-08  13:07  Reuben Thomas <rrt@sc3d.org>
8709f86ab30SPeter Avalos
8719f86ab30SPeter Avalos	* Remove hardwired token finding (names.h), turning it into soft
8729f86ab30SPeter Avalos	magic. Patterns are either anchored regexs or search/8192. English
8739f86ab30SPeter Avalos	language detection and PL/1 detection have been removed as they
8749f86ab30SPeter Avalos	were too fragile. -e tokens is still accepted for backwards
8759f86ab30SPeter Avalos	compatibility.
8769f86ab30SPeter Avalos	* Move 3ds patterns (which are commented out anyway) into autodesk
8779f86ab30SPeter Avalos	(they were, oddly, in c-lang).
8789f86ab30SPeter Avalos
8799f86ab30SPeter Avalos2011-12-06  00:16  Reuben Thomas <rrt@sc3d.org>
8809f86ab30SPeter Avalos
8819f86ab30SPeter Avalos	* Tweak strength of generic hash-bang detectors to be less than
8829f86ab30SPeter Avalos	specific ones.
8839f86ab30SPeter Avalos	* Make an inconsistent description of Python scripts consistent.
8849f86ab30SPeter Avalos
8859f86ab30SPeter Avalos2011-12-05  23:58  Reuben Thomas <rrt@sc3d.org>
8869f86ab30SPeter Avalos
8879f86ab30SPeter Avalos	* Fix minor error in file(1).
8889f86ab30SPeter Avalos
8899f86ab30SPeter Avalos2011-11-05  00:00  Reuben Thomas <rrt@sc3d.org>
8909f86ab30SPeter Avalos
8919f86ab30SPeter Avalos	* Fix issue #150 (I hope).
8929f86ab30SPeter Avalos
8939f86ab30SPeter Avalos2011-09-22  12:57  Christos Zoulas <christos@zoulas.com>
8949f86ab30SPeter Avalos
8959f86ab30SPeter Avalos	* Python3 binding fixes from Kelly Anderson
8969f86ab30SPeter Avalos
8979f86ab30SPeter Avalos2011-09-20  11:32  Christos Zoulas <christos@zoulas.com>
8989f86ab30SPeter Avalos
8999f86ab30SPeter Avalos	* If a string type magic entry is marked as text or binary
9009f86ab30SPeter Avalos	  only match text files against text entries and binary
9019f86ab30SPeter Avalos	  files against binary entries.
9029f86ab30SPeter Avalos
903a96e001bSPeter Avalos2011-09-01  12:12  Christos Zoulas <christos@zoulas.com>
904a96e001bSPeter Avalos
905a96e001bSPeter Avalos	* Don't wait for any subprocess, just the one we forked.
906a96e001bSPeter Avalos
907a96e001bSPeter Avalos2011-08-26  16:40  Christos Zoulas <christos@zoulas.com>
908a96e001bSPeter Avalos
909a96e001bSPeter Avalos	* If the application name is not set in a cdf file, try to see
910a96e001bSPeter Avalos	  if it has a directory with the application name on it.
911a96e001bSPeter Avalos
912a96e001bSPeter Avalos2011-08-17  14:32  Christos Zoulas <christos@zoulas.com>
913a96e001bSPeter Avalos
914a96e001bSPeter Avalos	* Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
915a96e001bSPeter Avalos
916a96e001bSPeter Avalos2011-08-14  09:03  Christos Zoulas <christos@zoulas.com>
917a96e001bSPeter Avalos
918a96e001bSPeter Avalos	* Don't use variable string formats.
919a96e001bSPeter Avalos
920a96e001bSPeter Avalos2011-07-12  12:32  Reuben Thomas <rrt@sc3d.org>
921a96e001bSPeter Avalos
922a96e001bSPeter Avalos	* Fix detection of Zip files (Mantis #128).
923a96e001bSPeter Avalos	* Make some minor improvements to file(1).
924a96e001bSPeter Avalos	* Rename MIME types for filesystem objects for consistency with
925a96e001bSPeter Avalos	  xdg-utils. Typically this means that application/x-foo becomes
926a96e001bSPeter Avalos	  inode/foo, but some names also change slightly, e.g.
927a96e001bSPeter Avalos	  application/x-character-device becomes inode/chardevice.
928a96e001bSPeter Avalos
929a96e001bSPeter Avalos2011-05-10  20:57  Christos Zoulas <christos@zoulas.com>
930a96e001bSPeter Avalos
931a96e001bSPeter Avalos	* fix mingw compilation (Abradoks)
932a96e001bSPeter Avalos
933884044a5SPeter Avalos2011-05-10  20:57  Christos Zoulas <christos@zoulas.com>
934884044a5SPeter Avalos
935884044a5SPeter Avalos	* remove patchlevel.h
936884044a5SPeter Avalos	* Fix read past allocated memory caused by double-incrementing
937884044a5SPeter Avalos	  a pointer in a loop (reported by Roberto Maar)
938884044a5SPeter Avalos
939ff91a668SPeter Avalos2011-03-30  15:45  Christos Zoulas <christos@zoulas.com>
940ff91a668SPeter Avalos
941ff91a668SPeter Avalos	* Fix cdf string buffer setting (Sven Anders)
942ff91a668SPeter Avalos
943ff91a668SPeter Avalos2011-03-20  16:35  Christos Zoulas <christos@zoulas.com>
944ff91a668SPeter Avalos
945ff91a668SPeter Avalos	* Eliminate MAXPATHLEN and use dynamic allocation for
946ff91a668SPeter Avalos	  path and file buffers.
947ff91a668SPeter Avalos
948ff91a668SPeter Avalos2011-03-15  18:15  Christos Zoulas <christos@zoulas.com>
949ff91a668SPeter Avalos
950ff91a668SPeter Avalos	* binary tests on magic entries with masks could spuriously
951ff91a668SPeter Avalos	  get converted to ascii.
952ff91a668SPeter Avalos
953ff91a668SPeter Avalos2011-03-12  18:06  Reuben Thomas <rrt@sc3d.org>
954ff91a668SPeter Avalos
955ff91a668SPeter Avalos	* Improve file.man (remove BUGS, present email addresses consistently).
956ff91a668SPeter Avalos
957ff91a668SPeter Avalos2011-03-07  19:38  Christos Zoulas <christos@zoulas.com>
958ff91a668SPeter Avalos
959ff91a668SPeter Avalos	* add lrzip support (from Ville Skytta)
960ff91a668SPeter Avalos
961ff91a668SPeter Avalos2011-02-10  16:36  Christos Zoulas <christos@zoulas.com>
962ff91a668SPeter Avalos
963ff91a668SPeter Avalos	* fix CDF bounds checking (Guy Helmer)
964ff91a668SPeter Avalos
965ff91a668SPeter Avalos2011-02-10  12:03  Christos Zoulas <christos@zoulas.com>
966ff91a668SPeter Avalos
967ff91a668SPeter Avalos	* add cdf_ctime() that prints a meaningful error when time cannot
968ff91a668SPeter Avalos	  be converted.
969ff91a668SPeter Avalos
970ff91a668SPeter Avalos2011-02-02  20:40  Christos Zoulas <christos@zoulas.com>
971ff91a668SPeter Avalos
972ff91a668SPeter Avalos	* help and version output to stdout.
973ff91a668SPeter Avalos
974ff91a668SPeter Avalos	* When matching softmagic for ascii files, don't just print
975ff91a668SPeter Avalos	  the softmagic classification, keep going and print the
976ff91a668SPeter Avalos	  text classification too. This fixes broken troff files when
977ff91a668SPeter Avalos	  we moved them from keyword recognition to softmagic
978ff91a668SPeter Avalos	  (they stopped printing "with CRLF" etc.)
979ff91a668SPeter Avalos	  Reported by Doug McIlroy.
980ff91a668SPeter Avalos
981e4d4ce0cSPeter Avalos2011-01-16  19:31  Reuben Thomas <rrt@sc3d.org>
982e4d4ce0cSPeter Avalos
983e4d4ce0cSPeter Avalos	* Fix two potential buffer overruns in apprentice_list.
984e4d4ce0cSPeter Avalos
985e4d4ce0cSPeter Avalos2011-01-14  22:33  Reuben Thomas <rrt@sc3d.org>
986e4d4ce0cSPeter Avalos
987e4d4ce0cSPeter Avalos	* New Python binding in pure Python.
988e4d4ce0cSPeter Avalos	* Update libmagic(3).
989e4d4ce0cSPeter Avalos
990e4d4ce0cSPeter Avalos2011-01-06  21:40  Reuben Thomas <rrt@sc3d.org>
991e4d4ce0cSPeter Avalos
992e4d4ce0cSPeter Avalos	* Fix Python bindings (including recent Python 3 compatibility
993e4d4ce0cSPeter Avalos	  update).
994e4d4ce0cSPeter Avalos
995e4d4ce0cSPeter Avalos2011-01-04  18:43  Reuben Thomas <rrt@sc3d.org>
996e4d4ce0cSPeter Avalos
997e4d4ce0cSPeter Avalos	* magic/Makefile.am: make it easier to recover from magic build failures.
998e4d4ce0cSPeter Avalos	* Fix pstring length specifier parsing to avoid generating invalid
999e4d4ce0cSPeter Avalos	  magic files.
1000e4d4ce0cSPeter Avalos	* Add pstring length "J" (for "JPEG") to specify that the length
1001e4d4ce0cSPeter Avalos	  include itself.
1002e4d4ce0cSPeter Avalos	* Fix JPEG comment parsing at last using pstring/HJ!
1003e4d4ce0cSPeter Avalos	* Ignore section 5 man pages in doc/.cvsignore.
1004e4d4ce0cSPeter Avalos
1005e4d4ce0cSPeter Avalos2010-12-22  13:12  Christos Zoulas <christos@zoulas.com>
1006e4d4ce0cSPeter Avalos
1007e4d4ce0cSPeter Avalos	* Add pstring/BHhLl to specify the type of the length of pascal
1008e4d4ce0cSPeter Avalos	  strings.
1009e4d4ce0cSPeter Avalos
1010e4d4ce0cSPeter Avalos2010-11-26  18:39  Reuben Thomas <rrt@sc3d.org>
1011e4d4ce0cSPeter Avalos
1012e4d4ce0cSPeter Avalos	* Fix "-e soft": it was ignored when softmagic was called
1013e4d4ce0cSPeter Avalos	  during asciimagic.
1014e4d4ce0cSPeter Avalos	* Improve comments and use "unsigned char" in tar.h/is_tar.c.
1015e4d4ce0cSPeter Avalos
1016e4d4ce0cSPeter Avalos2010-11-05  17:26  Reuben Thomas <rrt@sc3d.org>
1017e4d4ce0cSPeter Avalos
1018e4d4ce0cSPeter Avalos	* Make bug reporting addresses more visible.
1019e4d4ce0cSPeter Avalos
1020e4d4ce0cSPeter Avalos2010-11-01  18:35  Reuben Thomas <rrt@sc3d.org>
1021e4d4ce0cSPeter Avalos
1022e4d4ce0cSPeter Avalos	* Add tcl magic from Gustaf Neumann
1023e4d4ce0cSPeter Avalos
1024e4d4ce0cSPeter Avalos2010-10-24  10:42  Christos Zoulas <christos@zoulas.com>
1025e4d4ce0cSPeter Avalos
1026e4d4ce0cSPeter Avalos	* Fix the whitespace comparing code (Christopher Chittleborough)
1027e4d4ce0cSPeter Avalos
1028e4d4ce0cSPeter Avalos2010-10-06  21:05  Christos Zoulas <christos@zoulas.com>
1029e4d4ce0cSPeter Avalos
1030e4d4ce0cSPeter Avalos	* allow string/t to work (Jan Kaluza)
1031e4d4ce0cSPeter Avalos
1032e4d4ce0cSPeter Avalos2010-09-20  22:11  Reuben Thomas <rrt@sc3d.org>
1033e4d4ce0cSPeter Avalos
1034e4d4ce0cSPeter Avalos	* Apply some patches from Ubuntu and Fedora.
1035e4d4ce0cSPeter Avalos
1036e4d4ce0cSPeter Avalos2010-09-20  21:16  Reuben Thomas <rrt@sc3d.org>
1037e4d4ce0cSPeter Avalos
1038e4d4ce0cSPeter Avalos	* Apply all patches from Debian package 5.04-6 which have not
1039e4d4ce0cSPeter Avalos	  already been applied and are not Debian-specific.
1040e4d4ce0cSPeter Avalos
1041e4d4ce0cSPeter Avalos2010-09-20  15:24  Reuben Thomas <rrt@sc3d.org>
1042e4d4ce0cSPeter Avalos
1043e4d4ce0cSPeter Avalos	* Minor security fix to softmagic.c (don't use untrusted
1044e4d4ce0cSPeter Avalos	  string as printf format).
1045e4d4ce0cSPeter Avalos
1046e4d4ce0cSPeter Avalos2010-07-21  12:20  Christos Zoulas <christos@zoulas.com>
1047e4d4ce0cSPeter Avalos
1048e4d4ce0cSPeter Avalos	* MINGW32 portability from LRN
1049e4d4ce0cSPeter Avalos
1050e4d4ce0cSPeter Avalos	* Don't warn about escaping magic regex chars when we are in a regex.
1051e4d4ce0cSPeter Avalos
1052e4d4ce0cSPeter Avalos2010-07-19  10:55  Christos Zoulas <christos@zoulas.com>
1053e4d4ce0cSPeter Avalos
1054e4d4ce0cSPeter Avalos	* Only try to print prpsinfo for core files. (Jan Kaluza)
1055e4d4ce0cSPeter Avalos
1056e4d4ce0cSPeter Avalos2010-04-22  12:55  Christos Zoulas <christos@zoulas.com>
1057e4d4ce0cSPeter Avalos
1058e4d4ce0cSPeter Avalos	* Try more elf offsets for Debian core files.  (Arnaud Giersch)
1059e4d4ce0cSPeter Avalos
1060e4d4ce0cSPeter Avalos2010-02-20  15:18  Reuben Thomas <rrt@sc3d.org>
1061e4d4ce0cSPeter Avalos
1062e4d4ce0cSPeter Avalos	* Clarify which sort of CDF we mean.
1063e4d4ce0cSPeter Avalos
1064e4d4ce0cSPeter Avalos2010-02-14  22:58  Reuben Thomas <rrt@sc3d.org>
1065e4d4ce0cSPeter Avalos
1066e4d4ce0cSPeter Avalos	* Re-jig Zip file type magic so that unsupported special
1067e4d4ce0cSPeter Avalos	  Zip types (those with "mimetype" at offset 30) can be
1068e4d4ce0cSPeter Avalos	  recognized.
1069e4d4ce0cSPeter Avalos
1070e4d4ce0cSPeter Avalos2010-02-02  21:50  Reuben Thomas <rrt@sc3d.org>
1071e4d4ce0cSPeter Avalos
1072e4d4ce0cSPeter Avalos	* Add support for OCF (EPUB) files (application/epub+zip)
1073e4d4ce0cSPeter Avalos
1074e4d4ce0cSPeter Avalos2010-01-28  18:25  Christos Zoulas <christos@zoulas.com>
1075e4d4ce0cSPeter Avalos
1076e4d4ce0cSPeter Avalos	* Fix core-dump from unbound loop:
1077e4d4ce0cSPeter Avalos	  https://bugzilla.redhat.com/show_bug.cgi?id=533245
1078e4d4ce0cSPeter Avalos
1079f72f8299SJan Lentfer2010-01-22  15:45  Christos Zoulas <christos@zoulas.com>
1080f72f8299SJan Lentfer
1081f72f8299SJan Lentfer	* print proper mime for crystal reports file
1082f72f8299SJan Lentfer
1083f72f8299SJan Lentfer	* print the last summary information of a cdf document, not the
1084f72f8299SJan Lentfer	  first so that nested documents print the right info
1085f72f8299SJan Lentfer
1086f72f8299SJan Lentfer2010-01-16  18:42  Charles Longeau <chl@tuxfamily.org>
1087f72f8299SJan Lentfer
1088f72f8299SJan Lentfer	* bring back some fixes from OpenBSD:
1089f72f8299SJan Lentfer		- make gcc2 builds file
1090f72f8299SJan Lentfer		- fix typos in a magic file comment
1091f72f8299SJan Lentfer
1092f72f8299SJan Lentfer2009-11-17  18:35  Christos Zoulas <christos@zoulas.com>
1093f72f8299SJan Lentfer
1094f72f8299SJan Lentfer	* ctime/asctime can return NULL on some OS's although
1095f72f8299SJan Lentfer	  they should not (Toshit Antani)
1096f72f8299SJan Lentfer
1097f72f8299SJan Lentfer2009-09-14  13:49  Christos Zoulas <christos@zoulas.com>
1098f72f8299SJan Lentfer
1099f72f8299SJan Lentfer	* Centralize magic path handling routines and remove the
1100f72f8299SJan Lentfer	  special-casing from file.c so that the python module for
1101f72f8299SJan Lentfer	  example comes up with the same magic path (Fixes ~/.magic
1102f72f8299SJan Lentfer	  handling) (from Gab)
1103f72f8299SJan Lentfer
1104f72f8299SJan Lentfer2009-09-11  23:38  Reuben Thomas <rrt@sc3d.org>
1105f72f8299SJan Lentfer
1106f72f8299SJan Lentfer	* When magic argument is a directory, read the files in
1107f72f8299SJan Lentfer	  strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
1108f72f8299SJan Lentfer
1109f72f8299SJan Lentfer2009-09-11  13:11  Reuben Thomas <rrt@sc3d.org>
1110f72f8299SJan Lentfer
1111f72f8299SJan Lentfer	* Combine overlapping epoc and psion magic files into one (epoc).
1112f72f8299SJan Lentfer
1113f72f8299SJan Lentfer	* Add some more EPOC MIME types.
1114f72f8299SJan Lentfer
1115f72f8299SJan Lentfer2009-08-19  15:55  Christos Zoulas <christos@zoulas.com>
1116f72f8299SJan Lentfer
1117f72f8299SJan Lentfer	* Fix 3 bugs (From Ian Darwin):
1118f72f8299SJan Lentfer	    - file_showstr could move one past the end of the array
1119f72f8299SJan Lentfer	    - parse_apple did not nul terminate the string in the overflow case
1120f72f8299SJan Lentfer	    - parse_mime truncated the wrong string in the overflow case
1121f72f8299SJan Lentfer
1122f72f8299SJan Lentfer2009-08-12  12:28  Robert Byrnes  <byrnes@wildpumpkin.net>
1123f72f8299SJan Lentfer
1124f72f8299SJan Lentfer	* Include Localstuff when compiling magic.
1125f72f8299SJan Lentfer
1126f72f8299SJan Lentfer2009-07-15  10:05  Christos Zoulas <christos@zoulas.com>
1127f72f8299SJan Lentfer
1128f72f8299SJan Lentfer	* Fix logic for including mygetopts.h
1129f72f8299SJan Lentfer
1130f72f8299SJan Lentfer	* Make cdf.c compile again with debugging
1131f72f8299SJan Lentfer
1132f72f8299SJan Lentfer	* Add the necessary field handling for crystal reports files to work
1133f72f8299SJan Lentfer
1134f72f8299SJan Lentfer2009-06-23 01:34  Reuben Thomas <rrt@sc3d.org>
1135f72f8299SJan Lentfer
1136f72f8299SJan Lentfer	* Stop "(if" identifying Lisp files, that's plain dumb!
1137f72f8299SJan Lentfer
1138f72f8299SJan Lentfer2009-06-09 22:13  Reuben Thomas <rrt@sc3d.org>
1139f72f8299SJan Lentfer
1140f72f8299SJan Lentfer	* Add a couple of missing MP3 MIME types.
1141f72f8299SJan Lentfer
1142f72f8299SJan Lentfer2009-05-27 23:00  Reuben Thomas <rrt@sc3d.org>
1143f72f8299SJan Lentfer
1144f72f8299SJan Lentfer	* Add full range of hash-bang tests for Python and Ruby.
1145f72f8299SJan Lentfer
1146f72f8299SJan Lentfer	* Add MIME types for Python and Ruby scripts.
1147f72f8299SJan Lentfer
1148f72f8299SJan Lentfer2009-05-13  10:44  Christos Zoulas <christos@zoulas.com>
1149f72f8299SJan Lentfer
1150f72f8299SJan Lentfer	* off by one in parsing hw capabilities in elf
1151f72f8299SJan Lentfer	  (Cheng Renquan)
1152f72f8299SJan Lentfer
1153f72f8299SJan Lentfer2009-05-08  13:40  Christos Zoulas <christos@zoulas.com>
1154f72f8299SJan Lentfer
1155f72f8299SJan Lentfer	* lint fixes and more from NetBSD
1156f72f8299SJan Lentfer
115779343712SPeter Avalos2009-05-06  10:25  Christos Zoulas <christos@zoulas.com>
115879343712SPeter Avalos
115979343712SPeter Avalos	* Avoid null dereference in cdf code (Drew Yao)
116079343712SPeter Avalos
116179343712SPeter Avalos	* More cdf bounds checks and overflow checks
116279343712SPeter Avalos
116379343712SPeter Avalos2009-05-01  18:37  Christos Zoulas <christos@zoulas.com>
116479343712SPeter Avalos
116579343712SPeter Avalos	* Buffer overflow fixes from Drew Yao
116679343712SPeter Avalos
116779343712SPeter Avalos2009-04-30  17:10  Christos Zoulas <christos@zoulas.com>
116879343712SPeter Avalos
116979343712SPeter Avalos	* Fix more cdf lossage. All the documents I have
117079343712SPeter Avalos	  right now print the correct information.
117179343712SPeter Avalos
117279343712SPeter Avalos2009-03-27  18:43  Christos Zoulas <christos@zoulas.com>
117379343712SPeter Avalos
117479343712SPeter Avalos	* don't print \012- separators in the same magic entry
117579343712SPeter Avalos	  if it consists of multiple magic printing lines.
117679343712SPeter Avalos
117779343712SPeter Avalos2009-03-23  10:20  Christos Zoulas <christos@zoulas.com>
117879343712SPeter Avalos
117979343712SPeter Avalos	* Avoid file descriptor leak in compress code from
118079343712SPeter Avalos	  (Daniel Novotny)
118179343712SPeter Avalos
118279343712SPeter Avalos2009-03-18  16:50  Christos Zoulas <christos@zoulas.com>
118379343712SPeter Avalos
118479343712SPeter Avalos	* Allow escaping of relation characters, so that we can say \^[A-Z]
118579343712SPeter Avalos	  and the ^ is not eaten as a relation char.
118679343712SPeter Avalos
118779343712SPeter Avalos	* Fix troff and fortran to their previous glory using
118879343712SPeter Avalos	  regex. This was broken since their removel from ascmagic.
118979343712SPeter Avalos
119079343712SPeter Avalos2009-03-10  16:50  Christos Zoulas <christos@zoulas.com>
119179343712SPeter Avalos
119279343712SPeter Avalos	* don't use strlen in strndup() (Toby Peterson)
119379343712SPeter Avalos
119479343712SPeter Avalos2009-03-10  7:45  Christos Zoulas <christos@zoulas.com>
119579343712SPeter Avalos
119679343712SPeter Avalos	* avoid c99 syntax.
119779343712SPeter Avalos
119879343712SPeter Avalos2009-02-23 15:45  Christos Zoulas <christos@zoulas.com>
119979343712SPeter Avalos
120079343712SPeter Avalos	* make the cdf code use the buffer first if available,
120179343712SPeter Avalos	  and then the fd code.
120279343712SPeter Avalos
120379343712SPeter Avalos2009-02-13 13:45  Christos Zoulas <christos@zoulas.com>
120479343712SPeter Avalos
120579343712SPeter Avalos	* look for struct option to determine if getopt.h is usable for IRIX.
120679343712SPeter Avalos
120779343712SPeter Avalos	* sanitize cdf document strings
120879343712SPeter Avalos
120979343712SPeter Avalos2009-02-04 13:25  Christos Zoulas <christos@zoulas.com>
121079343712SPeter Avalos
121179343712SPeter Avalos	* fix OS/2 warnings.
121279343712SPeter Avalos
121379343712SPeter Avalos2008-12-12 15:50  Christos Zoulas <christos@zoulas.com>
121479343712SPeter Avalos
121579343712SPeter Avalos	* fix initial offset calculation for non 4K sector files
121679343712SPeter Avalos
121779343712SPeter Avalos	* add loop limits to avoid DoS attacks by constructing
121879343712SPeter Avalos	  looping sector references.
121979343712SPeter Avalos
122079343712SPeter Avalos2008-12-03 13:05  Christos Zoulas <christos@zoulas.com>
122179343712SPeter Avalos
122279343712SPeter Avalos	* fix memory botches on cdf file parsing.
122379343712SPeter Avalos
122479343712SPeter Avalos	* exit with non-zero value for any error, not just for the last
122579343712SPeter Avalos	  file processed.
122679343712SPeter Avalos
122779343712SPeter Avalos2008-11-09 20:42  Charles Longeau <chl@tuxfamily.org>
122879343712SPeter Avalos
122979343712SPeter Avalos	* Replace all str{cpy,cat} functions with strl{cpy,cat}
123079343712SPeter Avalos	* Ensure that strl{cpy,cat} are included in libmagic,
123179343712SPeter Avalos	  as needed.
123279343712SPeter Avalos
123379343712SPeter Avalos2008-11-06 18:18  Christos Zoulas <christos@zoulas.com>
123479343712SPeter Avalos
123579343712SPeter Avalos	* Handle ID3 format files.
123679343712SPeter Avalos
123779343712SPeter Avalos2008-11-06 23:00  Reuben Thomas <rrt@sc3d.org>
123879343712SPeter Avalos
123979343712SPeter Avalos	* Fix --mime, --mime-type and --mime-encoding under new scheme.
124079343712SPeter Avalos
124179343712SPeter Avalos	* Rename "ascii" to "text" and add "encoding" test.
124279343712SPeter Avalos
124379343712SPeter Avalos	* Return a precise ("utf-16le" or "utf-16be") MIME charset for
124479343712SPeter Avalos	  UTF-16.
124579343712SPeter Avalos
124679343712SPeter Avalos	* Fix error in comment caused by automatic indentation adding
124779343712SPeter Avalos	  words!
124879343712SPeter Avalos
124979343712SPeter Avalos2008-11-06 10:35  Christos Zoulas <christos@astron.com>
125079343712SPeter Avalos
125179343712SPeter Avalos	* use memchr instead of strchr because the string
125279343712SPeter Avalos	  might not be NUL terminated (Scott MacVicar)
125379343712SPeter Avalos
125479343712SPeter Avalos2008-11-03 07:31  Reuben Thomas <rrt@sc3d.org>
125579343712SPeter Avalos
125679343712SPeter Avalos	* Fix a printf with a non-literal format string.
125779343712SPeter Avalos
125879343712SPeter Avalos	* Fix formatting and punctuation of help for "--apple".
125979343712SPeter Avalos
126079343712SPeter Avalos2008-10-30 11:00  Reuben Thomas <rrt@sc3d.org>
126179343712SPeter Avalos
126279343712SPeter Avalos	* Correct words counts in comments of struct magic.
126379343712SPeter Avalos
126479343712SPeter Avalos	* Fix handle_annotation to allow both Apple and MIME types to be
126579343712SPeter Avalos	  printed, and to return correct code if MIME type is
126679343712SPeter Avalos	  printed (1, not 0) or if there's an error (-1 not 1).
126779343712SPeter Avalos
126879343712SPeter Avalos	* Fix output of charset for MIME type (precede with semi-colon;
126979343712SPeter Avalos	  fixes Debian bug #501460).
127079343712SPeter Avalos
127179343712SPeter Avalos	* Fix potential attacks via conversion specifications in magic
127279343712SPeter Avalos	  strings.
127379343712SPeter Avalos
127479343712SPeter Avalos	* Add a FIXME for Debian bug #488562 (magic files should be
127579343712SPeter Avalos	  read in a defined order, by sorting the names).
127679343712SPeter Avalos
127779343712SPeter Avalos2008-10-18 16:45  Christos Zoulas <christos@astron.com>
127879343712SPeter Avalos
127979343712SPeter Avalos	* Added APPLE file creator/type
128079343712SPeter Avalos
128179343712SPeter Avalos2008-10-12 10:20  Christos Zoulas <christos@astron.com>
128279343712SPeter Avalos
128379343712SPeter Avalos	* Added CDF parsing
128479343712SPeter Avalos
128579343712SPeter Avalos2008-10-09 16:40  Christos Zoulas <christos@astron.com>
128679343712SPeter Avalos
128779343712SPeter Avalos	* filesystem and msdos patches (Joerg Jenderek)
128879343712SPeter Avalos
128979343712SPeter Avalos2008-10-09 13:20  Christos Zoulas <christos@astron.com>
129079343712SPeter Avalos
129179343712SPeter Avalos	* correct --exclude documentation issues: remove troff and fortran
129279343712SPeter Avalos	  and rename "token" to "tokens". (Randy McMurchy)
129379343712SPeter Avalos
129479343712SPeter Avalos2008-10-01 10:30  Christos Zoulas <christos@astron.com>
129579343712SPeter Avalos
129679343712SPeter Avalos	* Read ~/.magic in addition to the default magic file not instead
129779343712SPeter Avalos	  of, as documented in the man page.
129879343712SPeter Avalos
129979343712SPeter Avalos2008-09-10 21:30  Reuben Thomas  <rrt@sc3d.org>
130079343712SPeter Avalos
130179343712SPeter Avalos	* Comment out graphviz patterns, as they match too many files.
130279343712SPeter Avalos
130379343712SPeter Avalos2008-08-30 12:54  Christos Zoulas <christos@astron.com>
130479343712SPeter Avalos
130579343712SPeter Avalos	* Don't eat trailing \n in magic enties.
130679343712SPeter Avalos
130779343712SPeter Avalos	* Cast defines to allow compilation using a c++ compiler.
130879343712SPeter Avalos
130979343712SPeter Avalos2008-08-25 23:56  Reuben Thomas  <rrt@sc3d.org>
131079343712SPeter Avalos
131179343712SPeter Avalos	* Add text/x-lua MIME type for Lua scripts.
131279343712SPeter Avalos
131379343712SPeter Avalos	* Escape { in regex in graphviz patterns.
131479343712SPeter Avalos
131579343712SPeter Avalos2008-07-26 00:59  Reuben Thomas  <rrt@sc3d.org>
131679343712SPeter Avalos
131779343712SPeter Avalos	* Add MIME types for special files.
131879343712SPeter Avalos
131979343712SPeter Avalos	* Use access to give more accurate information for files that
132079343712SPeter Avalos	  can't be opened.
132179343712SPeter Avalos
132279343712SPeter Avalos	* Add a TODO list.
132379343712SPeter Avalos
132479343712SPeter Avalos2008-07-02 11:15  Christos Zoulas  <christos@astron.com>
132579343712SPeter Avalos
132679343712SPeter Avalos	* add !:strength op to adjust magic strength (experimental)
132779343712SPeter Avalos
132879343712SPeter Avalos2008-06-16 21:41  Reuben Thomas  <rrt@sc3d.org>
132979343712SPeter Avalos
133079343712SPeter Avalos	* Fix automake error in configure.ac.
133179343712SPeter Avalos
133279343712SPeter Avalos	* Add MIME type for Psion Sketch files.
133379343712SPeter Avalos
133479343712SPeter Avalos2008-06-05 08:59  Christos Zoulas  <christos@astron.com>
133579343712SPeter Avalos
133679343712SPeter Avalos	* Don't print warnings about bad namesize in stripped
133779343712SPeter Avalos	  binaries with PT_NOTE is still there, and the actual
133879343712SPeter Avalos	  note is gone (Jakub Jelinek)
133979343712SPeter Avalos
134079343712SPeter Avalos2008-05-28 15:12  Robert Byrnes  <byrnes@wildpumpkin.net>
134179343712SPeter Avalos
134279343712SPeter Avalos	* magic/Magdir/elf:
134379343712SPeter Avalos	  Note invalid byte order for little-endian SPARC32PLUS.
134479343712SPeter Avalos	  Add SPARC V9 vendor extensions and memory model.
134579343712SPeter Avalos
134679343712SPeter Avalos	* src/elfclass.h:
134779343712SPeter Avalos	  Pass target machine to doshn (for Solaris hardware capabilities).
134879343712SPeter Avalos
134979343712SPeter Avalos	* src/readelf.c (doshn):
135079343712SPeter Avalos	  Add support for Solaris hardware/software capabilities.
135179343712SPeter Avalos
135279343712SPeter Avalos	* src/readelf.h:
135379343712SPeter Avalos	  Ditto.
135479343712SPeter Avalos
135579343712SPeter Avalos	* src/vasprintf.c (dispatch):
135679343712SPeter Avalos	  Add support for ll modifier.
135779343712SPeter Avalos
135879343712SPeter Avalos2008-05-16 10:25  Christos Zoulas  <christos@astron.com>
135979343712SPeter Avalos
136079343712SPeter Avalos	* Fix compiler warnings.
136179343712SPeter Avalos
136279343712SPeter Avalos	* remove stray printf, and fix a vprintf bug. (Martin Dorey)
136379343712SPeter Avalos
136479343712SPeter Avalos2008-05-06 00:13  Robert Byrnes  <byrnes@wildpumpkin.net>
136579343712SPeter Avalos
136679343712SPeter Avalos	* src/Makefile.am:
136779343712SPeter Avalos	  Ensure that getopt_long and [v]asprintf are included in libmagic,
136879343712SPeter Avalos	  as needed.
136979343712SPeter Avalos
137079343712SPeter Avalos	  Remove unnecessary EXTRA_DIST.
137179343712SPeter Avalos
137279343712SPeter Avalos	* src/Makefile.in:
137379343712SPeter Avalos	  Rerun automake.
137479343712SPeter Avalos
137579343712SPeter Avalos	* src/vasprintf.c (dispatch):
137679343712SPeter Avalos	  Fix variable precision bug: be sure to step past '*'.
137779343712SPeter Avalos
137879343712SPeter Avalos	* src/vasprintf.c (core):
137979343712SPeter Avalos	  Remove unreachable code.
138079343712SPeter Avalos
138179343712SPeter Avalos	* src/apprentice.c (set_test_type):
138279343712SPeter Avalos	  Add cast to avoid compiler warning.
138379343712SPeter Avalos
138479343712SPeter Avalos2008-04-22 23:45  Christos Zoulas  <christos@astron.com>
138579343712SPeter Avalos
138679343712SPeter Avalos	* Add magic submission guidelines (Abel Cheung)
138779343712SPeter Avalos
138879343712SPeter Avalos	* split msdos and windows magic (Abel Cheung)
138979343712SPeter Avalos
139079343712SPeter Avalos2008-04-04 11:00  Christos Zoulas  <christos@astron.com>
139179343712SPeter Avalos
139279343712SPeter Avalos	* >= <= is not supported, so fix the magic and warn about it.
139379343712SPeter Avalos	  reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
139479343712SPeter Avalos
139579343712SPeter Avalos2008-03-27 16:16  Robert Byrnes  <byrnes@wildpumpkin.net>
139679343712SPeter Avalos
139779343712SPeter Avalos	* src/readelf.c (donote):
139879343712SPeter Avalos	  ELF core file command name/line bug fixes and enhancements:
139979343712SPeter Avalos
140079343712SPeter Avalos	  Try larger offsets first to avoid false matches
140179343712SPeter Avalos	  from earlier data that happen to look like strings;
140279343712SPeter Avalos	  this primarily affected SunOS 5.x 32-bit Intel core files.
140379343712SPeter Avalos
140479343712SPeter Avalos	  Add support for command line (instead of just short name)
140579343712SPeter Avalos	  for SunOS 5.x.
140679343712SPeter Avalos
140779343712SPeter Avalos	  Add information about NT_PSINFO for SunOS 5.x.
140879343712SPeter Avalos
140979343712SPeter Avalos	  Only trim whitespace from end of command line.
141079343712SPeter Avalos
141179343712SPeter Avalos2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
141279343712SPeter Avalos
141379343712SPeter Avalos	* Change strength of ! from MULT to 0, as it matches almost
141479343712SPeter Avalos		  anything (Reuben Thomas)
141579343712SPeter Avalos
141679343712SPeter Avalos	* Debian fixes (Reuben Thomas)
141779343712SPeter Avalos
141879343712SPeter Avalos2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
141979343712SPeter Avalos
142079343712SPeter Avalos	* Clarify UTF-8 BOM message (Reuben Thomas)
142179343712SPeter Avalos
142279343712SPeter Avalos	* Add HTML comment to token list in names.h
142379343712SPeter Avalos
142479343712SPeter Avalos2007-02-04 15:50 Christos Zoulas <christos@astron.com>
142579343712SPeter Avalos
142679343712SPeter Avalos	* Debian fixes (Reuben Thomas)
142779343712SPeter Avalos
142879343712SPeter Avalos2007-02-04 11:31 Christos Zoulas <christos@astron.com>
142979343712SPeter Avalos
143079343712SPeter Avalos	* !:mime annotations in magic files (Reuben Thomas)
143179343712SPeter Avalos
143279343712SPeter Avalos2007-01-29 15:35 Christos Zoulas <christos@astron.com>
143379343712SPeter Avalos
143479343712SPeter Avalos	* zero out utime/utimes structs (Gavin Atkinson)
143579343712SPeter Avalos
143679343712SPeter Avalos2007-01-26 13:45 Christos Zoulas <christos@astron.com>
143779343712SPeter Avalos
143879343712SPeter Avalos	* reduce writable data from Diego "Flameeyes" Petten
143979343712SPeter Avalos
144079343712SPeter Avalos2007-12-28 15:06 Christos Zoulas <christos@astron.com>
1441327e51cbSPeter Avalos
1442327e51cbSPeter Avalos	* strtof detection
1443327e51cbSPeter Avalos
1444327e51cbSPeter Avalos	* remove bogus regex magic that could cause a DoS
1445327e51cbSPeter Avalos
1446327e51cbSPeter Avalos	* better mismatch version message
1447327e51cbSPeter Avalos
144879343712SPeter Avalos2007-12-27 11:35 Christos Zoulas <christos@astron.com>
1449327e51cbSPeter Avalos
1450327e51cbSPeter Avalos	* bring back some fixes from OpenBSD
1451327e51cbSPeter Avalos
1452327e51cbSPeter Avalos	* treat ELF dynamic objects as executables
1453327e51cbSPeter Avalos
1454327e51cbSPeter Avalos	* fix gcc warnings
1455327e51cbSPeter Avalos
145679343712SPeter Avalos2007-12-01 19:55 Christos Zoulas <christos@astron.com>
1457327e51cbSPeter Avalos
1458327e51cbSPeter Avalos	* make sure we have zlib.h and libz to compile the builtin
1459327e51cbSPeter Avalos	  decompress code
1460327e51cbSPeter Avalos
146179343712SPeter Avalos2007-10-28 20:48 Christos Zoulas <christos@astron.com>
1462327e51cbSPeter Avalos
1463327e51cbSPeter Avalos 	* float and double magic support (Behan Webster)
1464327e51cbSPeter Avalos
146579343712SPeter Avalos2007-10-28 20:48 Christos Zoulas <christos@astron.com>
1466327e51cbSPeter Avalos
1467327e51cbSPeter Avalos	* Convert fortran to a soft test (Reuben Thomas)
1468327e51cbSPeter Avalos
146979343712SPeter Avalos2007-10-23  5:25 Christos Zoulas <christos@astron.com>
1470327e51cbSPeter Avalos
1471327e51cbSPeter Avalos	* Add --with-filename, and --no-filename (Reuben Thomas)
1472327e51cbSPeter Avalos
147379343712SPeter Avalos2007-10-23  3:59 Christos Zoulas <christos@astron.com>
1474327e51cbSPeter Avalos
1475327e51cbSPeter Avalos	* Rest of the mime split (Reuben Thomas)
1476327e51cbSPeter Avalos
1477327e51cbSPeter Avalos	* Make usage message generated from the flags so that
1478327e51cbSPeter Avalos	  they stay consistent (Reuben Thomas)
1479327e51cbSPeter Avalos
148079343712SPeter Avalos2007-10-20  3:06 Christos Zoulas <christos@astron.com>
1481327e51cbSPeter Avalos
1482327e51cbSPeter Avalos	* typo in comment, missing ifdef QUICK, remove unneeded code
1483327e51cbSPeter Avalos		(Charles Longeau)
1484327e51cbSPeter Avalos
148579343712SPeter Avalos2007-10-17  3:33 Christos Zoulas <christos@astron.com>
1486327e51cbSPeter Avalos
1487327e51cbSPeter Avalos	* Fix problem printing -\012 in some entries
1488327e51cbSPeter Avalos
1489327e51cbSPeter Avalos	* Separate magic type and encoding flags (Reuben Thomas)
1490327e51cbSPeter Avalos
149179343712SPeter Avalos2007-10-09  3:55 Christos Zoulas <christos@astron.com>
1492327e51cbSPeter Avalos
1493327e51cbSPeter Avalos	* configure fix for int64 and strndup (Reuben Thomas)
1494327e51cbSPeter Avalos
149579343712SPeter Avalos2007-09-26  4:45 Christos Zoulas <christos@astron.com>
1496327e51cbSPeter Avalos
1497327e51cbSPeter Avalos	* Add magic_descriptor() function.
1498327e51cbSPeter Avalos
1499327e51cbSPeter Avalos	* Fix regression in elf reading code where the core name was
1500327e51cbSPeter Avalos	  not being printed.
1501327e51cbSPeter Avalos
1502327e51cbSPeter Avalos	* Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
1503327e51cbSPeter Avalos
150479343712SPeter Avalos2007-08-19  6:30 Christos Zoulas <christos@astron.com>
1505327e51cbSPeter Avalos
1506327e51cbSPeter Avalos	* Make mime format consistent so that it can
1507327e51cbSPeter Avalos	  be easily parsed:
1508327e51cbSPeter Avalos	      mimetype [charset=character-set] [encoding=encoding-mime-type]
1509327e51cbSPeter Avalos
1510327e51cbSPeter Avalos	  Remove spurious extra text from some MIME type printouts
1511327e51cbSPeter Avalos	  (mostly in is_tar).
1512327e51cbSPeter Avalos
1513327e51cbSPeter Avalos	  Fix one case where -i produced nothing at all (for a 1-byte file,
1514327e51cbSPeter Avalos	  which is now classed as application/octet-stream).
1515327e51cbSPeter Avalos
1516327e51cbSPeter Avalos	  Remove 7/8bit classifications, since they were arbitrary
1517327e51cbSPeter Avalos	  and not based on the file data.
1518327e51cbSPeter Avalos
1519327e51cbSPeter Avalos	  This work was done by Reuben Thomas
1520327e51cbSPeter Avalos
152179343712SPeter Avalos2007-05-24 10:00 Christos Zoulas <christos@astron.com>
1522327e51cbSPeter Avalos
1523327e51cbSPeter Avalos	* Fix another integer overflow (Colin Percival)
1524327e51cbSPeter Avalos
152579343712SPeter Avalos2007-03-26 13:58 Christos Zoulas <christos@astron.com>
1526327e51cbSPeter Avalos
1527327e51cbSPeter Avalos	* make sure that all of struct magic_set is initialized appropriately
1528327e51cbSPeter Avalos	  (Brett)
1529327e51cbSPeter Avalos
153079343712SPeter Avalos2007-03-25 17:44 Christos Zoulas <christos@astron.com>
1531327e51cbSPeter Avalos
1532327e51cbSPeter Avalos	* reset left bytes in the buffer (Dmitry V. Levin)
1533327e51cbSPeter Avalos
1534327e51cbSPeter Avalos	* compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
1535327e51cbSPeter Avalos	  (Peter Avalos)
1536327e51cbSPeter Avalos
153779343712SPeter Avalos2007-03-15 10:51 Christos Zoulas <christos@astron.com>
1538327e51cbSPeter Avalos
1539327e51cbSPeter Avalos	* fix fortran and nroff reversed tests (Dmitry V. Levin)
1540327e51cbSPeter Avalos
1541327e51cbSPeter Avalos	* fix exclude option (Dmitry V. Levin)
1542327e51cbSPeter Avalos
154379343712SPeter Avalos2007-02-08 17:30 Christos Zoulas <christos@astron.com>
1544327e51cbSPeter Avalos
1545327e51cbSPeter Avalos	* fix integer underflow in file_printf which can lead to
1546327e51cbSPeter Avalos	  to exploitable heap overflow (Jean-Sebastien Guay-Lero)
1547327e51cbSPeter Avalos
154879343712SPeter Avalos2007-02-05 11:35 Christos Zoulas <christos@astron.com>
1549327e51cbSPeter Avalos
1550327e51cbSPeter Avalos	* make socket/pipe reading more robust
1551327e51cbSPeter Avalos
155279343712SPeter Avalos2007-01-25 16:01 Christos Zoulas <christos@astron.com>
1553327e51cbSPeter Avalos
1554327e51cbSPeter Avalos	* Centralize all the tests in file_buffer.
1555327e51cbSPeter Avalos
1556327e51cbSPeter Avalos	* Add exclude flag.
1557327e51cbSPeter Avalos
1558327e51cbSPeter Avalos2007-01-18 05:29 Anon Ymous <do@not.spam.me>
1559327e51cbSPeter Avalos
1560327e51cbSPeter Avalos	* Move the "type" detection code from parse() into its own table
1561327e51cbSPeter Avalos	  driven routine.  This avoids maintaining multiple lists in
1562327e51cbSPeter Avalos	  file.h.
1563327e51cbSPeter Avalos
1564327e51cbSPeter Avalos	* Add an optional conditional field (ust before the type field).
1565327e51cbSPeter Avalos	  This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
1566327e51cbSPeter Avalos	  likely to go away.
1567327e51cbSPeter Avalos
1568327e51cbSPeter Avalos2007-01-16 23:24 Anon Ymous <do@not.spam.me>
1569327e51cbSPeter Avalos
1570327e51cbSPeter Avalos	* Fix an initialization bug in check_mem().
1571327e51cbSPeter Avalos
1572327e51cbSPeter Avalos2007-01-16 14:58 Anon Ymous <do@not.spam.me>
1573327e51cbSPeter Avalos
1574327e51cbSPeter Avalos	* Add a "default" type to print a message if nothing previously
1575327e51cbSPeter Avalos	  matched at that level or since the last default at that
1576327e51cbSPeter Avalos	  level.  This is useful for setting up switch-like statements.
1577327e51cbSPeter Avalos	  It can also be used to do if/else constructions without a
1578327e51cbSPeter Avalos	  redundant second test.
1579327e51cbSPeter Avalos
1580327e51cbSPeter Avalos	* Fix the "x" special case test so that one can test for that
1581327e51cbSPeter Avalos	  string with "=x".
1582327e51cbSPeter Avalos
1583327e51cbSPeter Avalos	* Allow "search" to search the entire buffer if the "/N"
1584327e51cbSPeter Avalos	  search count is missing.
1585327e51cbSPeter Avalos
1586327e51cbSPeter Avalos	* Make "regex" work!  It now starts its search at the
1587327e51cbSPeter Avalos	  specified offset and takes an (optional) "/N" line count to
1588327e51cbSPeter Avalos	  specify the search range; otherwise it searches to the end
1589327e51cbSPeter Avalos	  of the file.  The match is now grabbed correctly for format
1590327e51cbSPeter Avalos	  strings and the offset set to the end of the match.
1591327e51cbSPeter Avalos
1592327e51cbSPeter Avalos	* Add a "/s" flag to "regex" and "search" to set the offset to
1593327e51cbSPeter Avalos	  the start of the match.  By default the offset is set to the
1594327e51cbSPeter Avalos	  end of the match, as it is with other tests.  This is mostly
1595327e51cbSPeter Avalos	  useful for "regex".
1596327e51cbSPeter Avalos
1597327e51cbSPeter Avalos	* Make "search", "string" and "pstring" use the same
1598327e51cbSPeter Avalos	  file_strncmp() routine so that they support the same flags;
1599327e51cbSPeter Avalos	  "bestring16" and "lestring16" call the same routine, but
1600327e51cbSPeter Avalos	  with flags = 0.  Also add a "/C" flag (in analogy to "/c")
1601327e51cbSPeter Avalos	  to ignore the case on uppercase (lowercase) characters in
1602327e51cbSPeter Avalos	  the test string.
1603327e51cbSPeter Avalos
1604327e51cbSPeter Avalos	* Strict adherence to C style string escapes.  A warnings are
1605327e51cbSPeter Avalos	  printed when compiling.  Note: previously "\a" was
1606327e51cbSPeter Avalos	  incorrectly translated to 'a' instead of an <alert> (i.e.,
1607327e51cbSPeter Avalos	  BELL, typically 0x07).
1608327e51cbSPeter Avalos
1609327e51cbSPeter Avalos	* Make this compile with "-Wall -Wextra" and all the warning
1610327e51cbSPeter Avalos	  flags used with WARNS=4 in the NetBSD source.  Also make it
1611327e51cbSPeter Avalos	  pass lint.
1612327e51cbSPeter Avalos
1613327e51cbSPeter Avalos	* Many "cleanups" and hopefully not too many new bugs!
1614327e51cbSPeter Avalos
1615327e51cbSPeter Avalos2007-01-16 14:56 Anon Ymous <do@not.spam.me>
1616327e51cbSPeter Avalos
1617327e51cbSPeter Avalos	* make several more files compile with gcc warnings
1618327e51cbSPeter Avalos	  on and also make them pass lint.
1619327e51cbSPeter Avalos
1620327e51cbSPeter Avalos2007-01-16 14:54 Anon Ymous <do@not.spam.me>
1621327e51cbSPeter Avalos
1622327e51cbSPeter Avalos	* fix a puts()/putc() usage goof in file.c
1623327e51cbSPeter Avalos
1624327e51cbSPeter Avalos	* make file.c compile with gcc warnings and pass lint
1625327e51cbSPeter Avalos
162679343712SPeter Avalos2006-12-11 16:49 Christos Zoulas <christos@astron.com>
1627327e51cbSPeter Avalos
1628327e51cbSPeter Avalos	* fix byteswapping issue
1629327e51cbSPeter Avalos
1630327e51cbSPeter Avalos	* report the number of bytes we tried to
1631327e51cbSPeter Avalos	  allocate when allocation fails
1632327e51cbSPeter Avalos
1633327e51cbSPeter Avalos	* add a few missed cases in the strength routine
1634327e51cbSPeter Avalos
163579343712SPeter Avalos2006-12-08 16:32 Christos Zoulas <christos@astron.com>
1636327e51cbSPeter Avalos
1637327e51cbSPeter Avalos	* store and print the line number of the magic
1638327e51cbSPeter Avalos	  entry for debugging.
1639327e51cbSPeter Avalos
1640327e51cbSPeter Avalos	* if the magic entry did not print anything,
1641327e51cbSPeter Avalos	  don't treat it as a match
1642327e51cbSPeter Avalos
1643327e51cbSPeter Avalos	* change the magic strength algorithm to take
1644327e51cbSPeter Avalos	  into account the relationship op.
1645327e51cbSPeter Avalos
1646327e51cbSPeter Avalos	* fix a bug in search where we could accidentally
1647327e51cbSPeter Avalos	  return a match.
1648327e51cbSPeter Avalos
1649327e51cbSPeter Avalos	* propagate the error return from match to
1650327e51cbSPeter Avalos	  file_softmagic.
1651327e51cbSPeter Avalos
165279343712SPeter Avalos2006-11-25 13:35 Christos Zoulas <christos@astron.com>
1653327e51cbSPeter Avalos
1654327e51cbSPeter Avalos	* Don't store the current offset in the magic
1655327e51cbSPeter Avalos	  struct, because it needs to be restored and
1656327e51cbSPeter Avalos	  it was not done properly all the time. Bug
1657327e51cbSPeter Avalos	  found by: Arkadiusz Miskiewicz
1658327e51cbSPeter Avalos
1659327e51cbSPeter Avalos	* Fix problem in the '\0' separator; and don't
1660327e51cbSPeter Avalos	  print it as an additional separator; print
1661327e51cbSPeter Avalos	  it as the only separator.
1662327e51cbSPeter Avalos
166379343712SPeter Avalos2006-11-17 10:51 Christos Zoulas <christos@astron.com>
1664327e51cbSPeter Avalos
1665327e51cbSPeter Avalos	* Added a -0 option to print a '\0' separator
1666327e51cbSPeter Avalos	  Etienne Buira <etienne.buira@free.fr>
1667327e51cbSPeter Avalos
166879343712SPeter Avalos2006-10-31 15:14 Christos Zoulas <christos@astron.com>
1669327e51cbSPeter Avalos
1670327e51cbSPeter Avalos	* Check offset before copying (Mike Frysinger)
1671327e51cbSPeter Avalos
1672327e51cbSPeter Avalos	* merge duplicated code
1673327e51cbSPeter Avalos
1674327e51cbSPeter Avalos	* add quad date support
1675327e51cbSPeter Avalos
1676327e51cbSPeter Avalos	* make sure that we nul terminate desc (Ryoji Kanai)
1677327e51cbSPeter Avalos
1678327e51cbSPeter Avalos	* don't process elf notes multiple times
1679327e51cbSPeter Avalos
1680327e51cbSPeter Avalos	* allow -z to report empty compressed files
1681327e51cbSPeter Avalos
1682327e51cbSPeter Avalos	* use calloc to initialize the ascii buffers (Jos van den Oever)
1683327e51cbSPeter Avalos
168479343712SPeter Avalos2006-06-08 11:11 Christos Zoulas <christos@astron.com>
1685327e51cbSPeter Avalos
1686327e51cbSPeter Avalos	* QNX fixes (Mike Gorchak)
1687327e51cbSPeter Avalos
1688327e51cbSPeter Avalos	* Add quad support.
1689327e51cbSPeter Avalos
1690327e51cbSPeter Avalos	* FIFO checks (Dr. Werner Fink)
1691327e51cbSPeter Avalos
1692327e51cbSPeter Avalos	* Linux ELF fixes (Dr. Werner Fink)
1693327e51cbSPeter Avalos
1694327e51cbSPeter Avalos	* Magic format checks (Dr. Werner Fink)
1695327e51cbSPeter Avalos
1696327e51cbSPeter Avalos	* Magic format function improvent (Karl Chen)
1697327e51cbSPeter Avalos
169879343712SPeter Avalos2006-05-03 11:11 Christos Zoulas <christos@astron.com>
1699327e51cbSPeter Avalos
1700327e51cbSPeter Avalos	* Pick up some elf changes and some constant fixes from SUSE
1701327e51cbSPeter Avalos
1702327e51cbSPeter Avalos	* Identify gnu tar vs. posix tar
1703327e51cbSPeter Avalos
170482c5fa3eSPeter Avalos	* When keep going, don't print spurious newlines (Radek Vokal)
1705327e51cbSPeter Avalos
170679343712SPeter Avalos2006-04-01 12:02 Christos Zoulas <christos@astron.com>
1707327e51cbSPeter Avalos
1708327e51cbSPeter Avalos	* Use calloc instead of malloc (Mike Frysinger)
1709327e51cbSPeter Avalos
1710327e51cbSPeter Avalos	* Fix configure script to detect wctypes.h (Mike Frysinger)
1711327e51cbSPeter Avalos
171279343712SPeter Avalos2006-03-02 16:06 Christos Zoulas <christos@astron.com>
1713327e51cbSPeter Avalos
1714327e51cbSPeter Avalos	* Print empty if the file is (Mike Frysinger)
1715327e51cbSPeter Avalos
1716327e51cbSPeter Avalos	* Don't try to read past the end of the buffer (Mike Frysinger)
1717327e51cbSPeter Avalos
1718327e51cbSPeter Avalos	* Sort magic entries by strength [experimental]
1719327e51cbSPeter Avalos
172079343712SPeter Avalos2005-11-29 13:26 Christos Zoulas <christos@astron.com>
1721327e51cbSPeter Avalos
1722327e51cbSPeter Avalos	* Use iswprint() to convert the output string.
1723327e51cbSPeter Avalos	    (Bastien Nocera)
1724327e51cbSPeter Avalos
172579343712SPeter Avalos2005-10-31 8:54 Christos Zoulas <christos@astron.com>
1726327e51cbSPeter Avalos
1727327e51cbSPeter Avalos	* Fix regression where the core info was not completely processed
172882c5fa3eSPeter Avalos	    (Radek Vokal)
1729327e51cbSPeter Avalos
173079343712SPeter Avalos2005-10-20 11:15 Christos Zoulas <christos@astron.com>
1731327e51cbSPeter Avalos
1732327e51cbSPeter Avalos	* Middle Endian magic (Diomidis Spinellis)
1733327e51cbSPeter Avalos
173479343712SPeter Avalos2005-10-17 11:15 Christos Zoulas <christos@astron.com>
1735327e51cbSPeter Avalos
1736327e51cbSPeter Avalos	* Open with O_BINARY for CYGWIN (Corinna Vinschen)
1737327e51cbSPeter Avalos
1738327e51cbSPeter Avalos	* Don't close stdin (Arkadiusz Miskiewicz)
1739327e51cbSPeter Avalos
1740327e51cbSPeter Avalos	* Look for note sections in non executables.
1741327e51cbSPeter Avalos
174279343712SPeter Avalos2005-09-20 13:33 Christos Zoulas <christos@astron.com>
1743327e51cbSPeter Avalos
1744327e51cbSPeter Avalos	* Don't print SVR4 Style in core files multiple times
174582c5fa3eSPeter Avalos	    (Radek Vokal)
1746327e51cbSPeter Avalos
174779343712SPeter Avalos2005-08-27 04:09 Christos Zoulas <christos@astron.com>
1748327e51cbSPeter Avalos
1749327e51cbSPeter Avalos	* Cygwin changes Corinna Vinschen
1750327e51cbSPeter Avalos
175179343712SPeter Avalos2005-08-18 09:53 Christos Zoulas <christos@astron.com>
1752327e51cbSPeter Avalos
1753327e51cbSPeter Avalos	* Remove erroreous mention of /etc/magic in the file man page
1754327e51cbSPeter Avalos	  This is gentoo bug 101639. (Mike Frysinger)
1755327e51cbSPeter Avalos
1756327e51cbSPeter Avalos	* Cross-compile support and detection (Mike Frysinger)
1757327e51cbSPeter Avalos
175879343712SPeter Avalos2005-08-12 10:17 Christos Zoulas <christos@astron.com>
1759327e51cbSPeter Avalos
1760327e51cbSPeter Avalos	* Add -h flag and dereference symlinks if POSIXLY_CORRECT
1761327e51cbSPeter Avalos	  is set.
1762327e51cbSPeter Avalos
176379343712SPeter Avalos2005-07-29 13:57 Christos Zoulas <christos@astron.com>
1764327e51cbSPeter Avalos
1765327e51cbSPeter Avalos	* Avoid search and regex buffer overflows (Kelledin)
1766327e51cbSPeter Avalos
176779343712SPeter Avalos2005-07-12 11:48 Christos Zoulas <christos@astron.com>
1768327e51cbSPeter Avalos
1769327e51cbSPeter Avalos	* Provide stub implementations for {v,}nsprintf() for older
1770327e51cbSPeter Avalos	  OS's that don't have them.
1771327e51cbSPeter Avalos	* Change mbstate_t autoconf detection macro from AC_MBSTATE_T
1772327e51cbSPeter Avalos	  to AC_TYPE_MBSTATE_T.
1773327e51cbSPeter Avalos
177479343712SPeter Avalos2005-06-25 11:48 Christos Zoulas <christos@astron.com>
1775327e51cbSPeter Avalos
1776327e51cbSPeter Avalos	* Dynamically allocate the string buffers and make the
1777327e51cbSPeter Avalos	  default read size 256K.
1778327e51cbSPeter Avalos
1779327e51cbSPeter Avalos2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
1780327e51cbSPeter Avalos
1781327e51cbSPeter Avalos	* Dragonfly ELF note support
1782327e51cbSPeter Avalos
1783327e51cbSPeter Avalos2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
1784327e51cbSPeter Avalos
1785327e51cbSPeter Avalos	* Avoid NULL pointer dereference in time conversion.
1786327e51cbSPeter Avalos
1787327e51cbSPeter Avalos2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
1788327e51cbSPeter Avalos
1789327e51cbSPeter Avalos	* Add indirect magic offset support, and search mode.
1790327e51cbSPeter Avalos
1791327e51cbSPeter Avalos2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
1792327e51cbSPeter Avalos
1793327e51cbSPeter Avalos	* src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
1794327e51cbSPeter Avalos	  If a CRLF text file happens to have CR at offset HOWMANY - 1
1795327e51cbSPeter Avalos	  (currently 0xffff), it should not be counted as CR line
1796327e51cbSPeter Avalos	  terminator.
1797327e51cbSPeter Avalos	  If a line has length exactly MAXLINELEN, it should not yet be
1798327e51cbSPeter Avalos	  treated as a ``very long line'', as MAXLINELEN is ``longest sane
1799327e51cbSPeter Avalos	  line length''.
1800327e51cbSPeter Avalos	  With CRLF, the line length was not computed correctly, and even
1801327e51cbSPeter Avalos	  lines of length MAXLINELEN - 1 were treated as ``very long''.
1802327e51cbSPeter Avalos
180379343712SPeter Avalos2004-12-07 14:15  Christos Zoulas  <christos@astron.com>
1804327e51cbSPeter Avalos
1805327e51cbSPeter Avalos	* bzip2 needs a lot of input buffer space on some files
1806327e51cbSPeter Avalos	  before it can begin uncompressing. This makes file -z
1807327e51cbSPeter Avalos	  fail on some bz2 files. Fix it by giving it a copy of
1808327e51cbSPeter Avalos	  the file descriptor to read as much as it wants if we
180979343712SPeter Avalos	  have access to it. <christos@astron.com>
1810327e51cbSPeter Avalos
181179343712SPeter Avalos2004-11-24 12:39  Christos Zoulas  <christos@astron.com>
1812327e51cbSPeter Avalos
1813327e51cbSPeter Avalos	* Stack smash fix, and ELF more conservative reading.
1814327e51cbSPeter Avalos	  Jakub Bogusz <qboosh@pld-linux.org>
1815327e51cbSPeter Avalos
181679343712SPeter Avalos2004-11-20 18:50  Christos Zoulas  <christos@astron.com>
1817327e51cbSPeter Avalos
1818327e51cbSPeter Avalos	* New FreeBSD version parsing code:
1819327e51cbSPeter Avalos	  Jon Noack <noackjr@alumni.rice.edu>
1820327e51cbSPeter Avalos
182179343712SPeter Avalos	* Hackish support for ucs16 strings <christos@astron.com>
1822327e51cbSPeter Avalos
182379343712SPeter Avalos2004-11-13 03:07  Christos Zoulas  <christos@astron.com>
1824327e51cbSPeter Avalos
1825327e51cbSPeter Avalos	* print the file name and line number in syntax errors.
1826327e51cbSPeter Avalos
182779343712SPeter Avalos2004 10-12 10:50  Christos Zoulas  <christos@astron.com>
1828327e51cbSPeter Avalos
1829327e51cbSPeter Avalos	* Fix stack overwriting on 0 length strings: Tim Waugh
1830327e51cbSPeter Avalos	    <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
1831327e51cbSPeter Avalos
183279343712SPeter Avalos2004-09-27 11:30  Christos Zoulas  <christos@astron.com>
1833327e51cbSPeter Avalos
1834327e51cbSPeter Avalos	* Remove 3rd and 4th copyright clause; approved by Ian Darwin.
1835327e51cbSPeter Avalos
1836327e51cbSPeter Avalos	* Fix small memory leaks; caught by: Tamas Sarlos
1837327e51cbSPeter Avalos	    <stamas@csillag.ilab.sztaki.hu>
1838327e51cbSPeter Avalos
183979343712SPeter Avalos2004-07-24 16:33  Christos Zoulas  <christos@astron.com>
1840327e51cbSPeter Avalos
1841327e51cbSPeter Avalos	* magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
1842327e51cbSPeter Avalos
1843327e51cbSPeter Avalos	* FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
1844327e51cbSPeter Avalos
1845327e51cbSPeter Avalos	* utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
1846327e51cbSPeter Avalos
1847327e51cbSPeter Avalos  	* errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
1848327e51cbSPeter Avalos
184979343712SPeter Avalos2004-04-12 10:55  Christos Zoulas  <christos@astron.com>
1850327e51cbSPeter Avalos
1851327e51cbSPeter Avalos	* make sure that magic formats match magic types during compilation
1852327e51cbSPeter Avalos
1853327e51cbSPeter Avalos	* fix broken sgi magic file
1854327e51cbSPeter Avalos
185579343712SPeter Avalos2004-04-06 20:36  Christos Zoulas  <christos@astron.com>
1856327e51cbSPeter Avalos
1857327e51cbSPeter Avalos	* detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
1858327e51cbSPeter Avalos
1859327e51cbSPeter Avalos	* magic fixes
1860327e51cbSPeter Avalos
186179343712SPeter Avalos2004-03-22 15:25  Christos Zoulas  <christos@astron.com>
1862327e51cbSPeter Avalos
1863327e51cbSPeter Avalos	* Lots of mime fixes
1864327e51cbSPeter Avalos	  (Joerg Ostertag) <ostertag@rechengilde.de>
1865327e51cbSPeter Avalos
1866327e51cbSPeter Avalos	* FreeBSD ELF version handling
1867327e51cbSPeter Avalos	  (Edwin Groothuis) <edwin@mavetju.org>
1868327e51cbSPeter Avalos
1869327e51cbSPeter Avalos	* correct cleanup in all cases; don't just close the file.
187079343712SPeter Avalos	  (Christos Zoulas) <christos@astron.com>
1871327e51cbSPeter Avalos
1872327e51cbSPeter Avalos	* add gettext message catalogue support
1873327e51cbSPeter Avalos	  (Michael Piefel) <piefel@debian.org>
1874327e51cbSPeter Avalos
1875327e51cbSPeter Avalos	* better printout for unreadable files
1876327e51cbSPeter Avalos	  (Michael Piefel) <piefel@debian.org>
1877327e51cbSPeter Avalos
1878327e51cbSPeter Avalos	* compensate for missing MAXPATHLEN
1879327e51cbSPeter Avalos	  (Michael Piefel) <piefel@debian.org>
1880327e51cbSPeter Avalos
1881327e51cbSPeter Avalos	* add wide character string length computation
1882327e51cbSPeter Avalos	  (Michael Piefel) <piefel@debian.org>
1883327e51cbSPeter Avalos
1884327e51cbSPeter Avalos	* Avoid infinite loops caused by bad elf alignments
1885327e51cbSPeter Avalos	  or name and description note sizes. Reported by
1886327e51cbSPeter Avalos	  (Mikael Magnusson) <mmikael@comhem.se>
1887327e51cbSPeter Avalos
188879343712SPeter Avalos2004-03-09 13:55  Christos Zoulas  <christos@astron.com>
1889327e51cbSPeter Avalos
1890327e51cbSPeter Avalos	* Fix possible memory leak on error and add missing regfree
1891327e51cbSPeter Avalos	  (Dmitry V. Levin) <ldv@altlinux.org>
1892327e51cbSPeter Avalos
189379343712SPeter Avalos2003-12-23 12:12  Christos Zoulas  <christos@astron.com>
1894327e51cbSPeter Avalos
1895327e51cbSPeter Avalos	* fix -k flag (Maciej W. Rozycki)
1896327e51cbSPeter Avalos
189779343712SPeter Avalos2003-11-18 14:10  Christos Zoulas  <christos@astron.com>
1898327e51cbSPeter Avalos
1899327e51cbSPeter Avalos	* Try to give us much info as possible on corrupt elf files.
1900327e51cbSPeter Avalos	  (Willy Tarreau) <willy@w.ods.org>
1901327e51cbSPeter Avalos	* Updated python bindings (Brett Funderburg)
1902327e51cbSPeter Avalos	   <brettf@deepfile.com>
1903327e51cbSPeter Avalos
190479343712SPeter Avalos2003-11-11 15:03  Christos Zoulas  <christos@astron.com>
1905327e51cbSPeter Avalos
1906327e51cbSPeter Avalos	* Include file.h first, because it includes config.h
1907327e51cbSPeter Avalos	  breaks largefile test macros otherwise.
1908327e51cbSPeter Avalos	  (Paul Eggert <eggert@CS.UCLA.EDU> via
1909327e51cbSPeter Avalos	   Lars Hecking <lhecking@nmrc.ie>)
1910327e51cbSPeter Avalos
191179343712SPeter Avalos2003-10-14 21:39  Christos Zoulas  <christos@astron.com>
1912327e51cbSPeter Avalos
1913327e51cbSPeter Avalos	* Python bindings (Brett Funderburg) <brettf@deepfile.com>
1914327e51cbSPeter Avalos	* Don't lookup past the end of the buffer
1915327e51cbSPeter Avalos	  (Chad Hanson) <chanson@tcs-sec.com>
1916327e51cbSPeter Avalos	* Add MAGIC_ERROR and api on magic_errno()
1917327e51cbSPeter Avalos
191879343712SPeter Avalos2003-10-08 12:40  Christos Zoulas  <christos@astron.com>
1919327e51cbSPeter Avalos
1920327e51cbSPeter Avalos	* handle error conditions from compile as fatal
1921327e51cbSPeter Avalos	  (Antti Kantee) <pooka@netbsd.org>
1922327e51cbSPeter Avalos	* handle magic filename parsing sanely
1923327e51cbSPeter Avalos	* more magic fixes.
1924327e51cbSPeter Avalos	* fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
1925327e51cbSPeter Avalos	* describe magic file handling
1926327e51cbSPeter Avalos	  (Bryan Henderson) <bryanh@giraffe-data.com>
1927327e51cbSPeter Avalos
192879343712SPeter Avalos2003-09-12 15:09  Christos Zoulas  <christos@astron.com>
1929327e51cbSPeter Avalos
1930327e51cbSPeter Avalos	* update magic files.
1931327e51cbSPeter Avalos	* remove largefile support from file.h; it breaks things on most OS's
1932327e51cbSPeter Avalos
193379343712SPeter Avalos2003-08-10 10:25  Christos Zoulas  <christos@astron.com>
1934327e51cbSPeter Avalos
1935327e51cbSPeter Avalos	* fix unmapping'ing of mmaped files.
1936327e51cbSPeter Avalos
193779343712SPeter Avalos2003-07-10 12:03  Christos Zoulas  <christos@astron.com>
1938327e51cbSPeter Avalos
1939327e51cbSPeter Avalos	* don't exit with -1 on error; always exit 1 (Marty Leisner)
1940327e51cbSPeter Avalos	* restore utimes code.
1941327e51cbSPeter Avalos
194279343712SPeter Avalos2003-06-10 17:03  Christos Zoulas  <christos@astron.com>
1943327e51cbSPeter Avalos
1944327e51cbSPeter Avalos	* make sure we don't access uninitialized memory.
1945327e51cbSPeter Avalos	* pass lint
1946327e51cbSPeter Avalos	* #ifdef __cplusplus in magic.h
1947327e51cbSPeter Avalos
194879343712SPeter Avalos2003-05-25 19:23  Christos Zoulas  <christos@astron.com>
1949327e51cbSPeter Avalos
1950327e51cbSPeter Avalos	* rename cvs magic file to revision to deal with
1951327e51cbSPeter Avalos	  case insensitive filesystems.
1952327e51cbSPeter Avalos
195379343712SPeter Avalos2003-05-23 17:03  Christos Zoulas  <christos@astron.com>
1954327e51cbSPeter Avalos
1955327e51cbSPeter Avalos	* documentation fixes from Michael Piefel <piefel@debian.org>
1956327e51cbSPeter Avalos	* magic fixes (various)
1957327e51cbSPeter Avalos	* revert basename magic in .mgc name determination
1958327e51cbSPeter Avalos	* buffer protection in uncompress,
1959327e51cbSPeter Avalos	  signness issues,
1960327e51cbSPeter Avalos	  close files
1961327e51cbSPeter Avalos	  Maciej W. Rozycki <macro@ds2.pg.gda.pl
1962327e51cbSPeter Avalos
196379343712SPeter Avalos2003-04-21 20:12  Christos Zoulas  <christos@astron.com>
1964327e51cbSPeter Avalos
1965327e51cbSPeter Avalos	* fix zsh magic
1966327e51cbSPeter Avalos
196779343712SPeter Avalos2003-04-04 16:59  Christos Zoulas  <christos@astron.com>
1968327e51cbSPeter Avalos
1969327e51cbSPeter Avalos	* fix operand sort order in string.
1970327e51cbSPeter Avalos
197179343712SPeter Avalos2003-04-02 17:30  Christos Zoulas  <christos@astron.com>
1972327e51cbSPeter Avalos
1973327e51cbSPeter Avalos	* cleanup namespace in magic.h
1974327e51cbSPeter Avalos
197579343712SPeter Avalos2003-04-02 13:50  Christos Zoulas  <christos@astron.com>
1976327e51cbSPeter Avalos
1977327e51cbSPeter Avalos	* Magic additions (Alex Ott)
1978327e51cbSPeter Avalos	* Fix bug that broke VPATH compilation (Peter Breitenlohner)
1979327e51cbSPeter Avalos
198079343712SPeter Avalos2003-03-28 16:03  Christos Zoulas  <christos@astron.com>
1981327e51cbSPeter Avalos
1982327e51cbSPeter Avalos	* remove packed attribute from magic struct.
1983327e51cbSPeter Avalos	* make the magic struct properly aligned.
1984327e51cbSPeter Avalos	* bump version number of compiled files to 2.
1985327e51cbSPeter Avalos
198679343712SPeter Avalos2003-03-27 13:10  Christos Zoulas  <christos@astron.com>
1987327e51cbSPeter Avalos
1988327e51cbSPeter Avalos	* separate tar detection and run it before softmagic.
1989327e51cbSPeter Avalos	* fix reversed symlink test.
1990327e51cbSPeter Avalos	* fix version printing.
1991327e51cbSPeter Avalos	* make separator a string instead of a char.
1992327e51cbSPeter Avalos	* update manual page and sort options.
1993327e51cbSPeter Avalos
199479343712SPeter Avalos2003-03-26 11:00  Christos Zoulas  <christos@astron.com>
1995327e51cbSPeter Avalos
1996327e51cbSPeter Avalos	* Pass lint
1997327e51cbSPeter Avalos	* make NULL in magic_file mean stdin
1998327e51cbSPeter Avalos	* Fix "-" argument to file to pass NULL to magic_file
1999327e51cbSPeter Avalos	* avoid pointer casts by using memcpy
2000327e51cbSPeter Avalos	* rename magic_buf -> magic_buffer
2001327e51cbSPeter Avalos	* keep only the first error
2002327e51cbSPeter Avalos	* manual page: new sentence, new line
2003327e51cbSPeter Avalos	* fix typo in api function (magic_buf -> magic_buffer)
2004