Christos Zoulas [Thu, 27 Mar 2014 18:12:12 +0000 (18:12 +0000)]
- Add some debugging code to print incorrect formats.
- Fix "long" formats which in magic "long" == 32 bit, which is not
what "long" means in "C".
Christos Zoulas [Wed, 26 Mar 2014 15:28:41 +0000 (15:28 +0000)]
welcome to 5.18
Christos Zoulas [Sun, 23 Mar 2014 18:05:38 +0000 (18:05 +0000)]
add megaraid.
Christos Zoulas [Sun, 16 Mar 2014 13:32:55 +0000 (13:32 +0000)]
minor changes
Kimmo Suominen [Sun, 16 Mar 2014 08:56:36 +0000 (08:56 +0000)]
Turn heading into markdown heading.
Verify that PR/336 is addressed also.
Kimmo Suominen [Sun, 16 Mar 2014 08:53:09 +0000 (08:53 +0000)]
Document the release procedure.
Christos Zoulas [Sun, 16 Mar 2014 02:53:03 +0000 (02:53 +0000)]
add ConTeXt documents
Christos Zoulas [Sat, 15 Mar 2014 21:47:40 +0000 (21:47 +0000)]
add fmtcheck
Christos Zoulas [Fri, 14 Mar 2014 19:14:11 +0000 (19:14 +0000)]
today's changes
Christos Zoulas [Fri, 14 Mar 2014 19:02:37 +0000 (19:02 +0000)]
PR/319: Remove superfluous call to file_ascmagic_with_encoding. file_encoding
should have set looks_text correctly before, and file_ascmagic already calls
file_ascmagic_with_encoding if it needs to.
Christos Zoulas [Fri, 14 Mar 2014 18:48:11 +0000 (18:48 +0000)]
PR/320: Issue a warning for mime types that are attached to magic entries
that don't yet have descriptions.
Christos Zoulas [Fri, 14 Mar 2014 18:47:29 +0000 (18:47 +0000)]
Fix mime entries that were attached to magic entries that did not yet
have descriptions.
Christos Zoulas [Fri, 14 Mar 2014 17:38:33 +0000 (17:38 +0000)]
PR/333: Be more precise about counting the strength of a regex, by counting the
number of actual matching characters specified in them.
Christos Zoulas [Fri, 14 Mar 2014 14:58:59 +0000 (14:58 +0000)]
PR/334: don't try to free the magic list if it was not allocated, since this
is an error.
Christos Zoulas [Tue, 11 Mar 2014 21:00:13 +0000 (21:00 +0000)]
remove debugging printf.
Christos Zoulas [Tue, 11 Mar 2014 17:13:18 +0000 (17:13 +0000)]
remove bogus comment
Christos Zoulas [Tue, 11 Mar 2014 15:52:54 +0000 (15:52 +0000)]
fix bug intruduced by the locale changes.
Kimmo Suominen [Mon, 10 Mar 2014 12:42:49 +0000 (12:42 +0000)]
Add ID.
Kimmo Suominen [Mon, 10 Mar 2014 12:38:08 +0000 (12:38 +0000)]
Sort list of packages for ease of maintenance.
Kimmo Suominen [Mon, 10 Mar 2014 12:35:59 +0000 (12:35 +0000)]
Remove explicit autotools-dev.
Kimmo Suominen [Mon, 10 Mar 2014 08:48:18 +0000 (08:48 +0000)]
Fix typo another way. Per Christoph Biedl.
Christos Zoulas [Mon, 10 Mar 2014 00:53:38 +0000 (00:53 +0000)]
escape space.
Kimmo Suominen [Sun, 9 Mar 2014 11:18:24 +0000 (11:18 +0000)]
Fix typo.
Christos Zoulas [Sat, 8 Mar 2014 21:43:09 +0000 (21:43 +0000)]
Add compiled delphi magic
Christos Zoulas [Sat, 8 Mar 2014 17:28:08 +0000 (17:28 +0000)]
Explain date number format (Christoph Biedl)
Christos Zoulas [Sat, 8 Mar 2014 17:26:48 +0000 (17:26 +0000)]
FIx windows icons and cursors (Christoph Biedl)
the detection of MS-Windows icon files was buggy and incomplete. Since
non-animated cursors have a very similar format, they are added here,
too.
Some details: Using only the very first four octets for determination
has always some risk of false detection. So additionally look at
offset 9 which should always be zero, but according to Wikipedia might
also be 0xff.
In "number of colors" at offset 8, the zero value previously was used
to describe "256 colors", according to Wikipedia this isn't true, so
it was dropped.
On a side node: This introduces another usage of name/use. I'm afraid
we might sooner or later end up in name clashes on these identifiers.
Feel free to extend them like prefixing with the file name "msdos-".
Also, I was a bit surprised no "message" in "use" is printed, I wanted
to do
>>4 use ico-dir MS Windows icon resource
but that message gets lost. Hence the hackery
>>0 byte x MS Windows icon resource
>>4 use ico-dir
So a feature request: Print any message in "use".
This patch by the way fixes Debian#562250. It just got a little
bigger.
Kimmo Suominen [Sat, 8 Mar 2014 08:41:07 +0000 (08:41 +0000)]
Sync README.DEVELOPER and .travis.yml
Minimize the number and size of dependencies and remove redundant
packages from the list.
Christos Zoulas [Fri, 7 Mar 2014 23:11:51 +0000 (23:11 +0000)]
document the apple option (Christoph Biedl)
Christos Zoulas [Fri, 7 Mar 2014 23:11:16 +0000 (23:11 +0000)]
clarify the syntax for string searches (Christoph Biedl)
Christos Zoulas [Fri, 7 Mar 2014 17:25:17 +0000 (17:25 +0000)]
Add a couple of missing files
Christos Zoulas [Fri, 7 Mar 2014 17:20:37 +0000 (17:20 +0000)]
just commit the yml, not all the html surrounding it.
Christos Zoulas [Fri, 7 Mar 2014 13:55:30 +0000 (13:55 +0000)]
make this travis friendly.
Christos Zoulas [Thu, 6 Mar 2014 19:30:52 +0000 (19:30 +0000)]
Debian#605143: Appearently there's a formatting error in the
presentation of some not-so-often MS-DOS executables.
Christos Zoulas [Thu, 6 Mar 2014 18:55:09 +0000 (18:55 +0000)]
From Christoph Biedl, factor our riff magic
Christos Zoulas [Thu, 6 Mar 2014 17:45:46 +0000 (17:45 +0000)]
from glensc for testing
Christos Zoulas [Thu, 6 Mar 2014 17:29:28 +0000 (17:29 +0000)]
one more
Christos Zoulas [Thu, 6 Mar 2014 17:28:14 +0000 (17:28 +0000)]
new changes
Christos Zoulas [Thu, 6 Mar 2014 16:57:57 +0000 (16:57 +0000)]
fix typo, add comment of perhaps a simpler path to success
Christos Zoulas [Thu, 6 Mar 2014 16:50:55 +0000 (16:50 +0000)]
don't compare SIZE_MAX to off_t; if they are the same size in bytes it is
wrong. Use a more appropriate comparison.
Christos Zoulas [Thu, 6 Mar 2014 16:37:39 +0000 (16:37 +0000)]
typo
Christos Zoulas [Thu, 6 Mar 2014 16:37:16 +0000 (16:37 +0000)]
Fixes from Christoph Biedl:
Inspired by Debian#588953 that rightly complained about poor
recognition of avr32 ELF files: There have been changes since the
original bug submission, file(1) now detects them as
| ELF 32-bit MSB executable, *unknown arch 0xb9* version 1 (SYSV) (...)
but this was an impetus to update the list of "machines" (ELF speak),
or "architectures".
The list was taken from binutils-2.24:include/elf/common.h with some
extra research. Numbers marked "reserved" were excluded.
Additional changes:
* sorted strictly by machine number.
* some missing trailing comma added.
* slight change in Motorola names for clarity.
* fix obviously wrong endianess in 138 = LatticeMico32.
* marked all inofficial numbers as such (unless already "obsolete").
* description trimmed to keep strings short. Perhaps even any
trailing "familiy" should be dropped for the same reason.
For your information, the two attached files were used as starting
point:
elf-archs-file.magic: The relevant lines in magic/Magic/elf
elf-archs-binutils.magic: The relevant lines in include/elf/common.h,
sorted, converted into magic
As you can see, several names still differ, and it's not always easy
to judge which is better. The most prominent difference is machine
number 9, "IBM System/370" vs. "Amdahl". There's a reason for both,
and I decided to keep the name currently used by file(1).
Fun fact: file(1) knows more machine numbers than binutils.
Christos Zoulas [Thu, 6 Mar 2014 16:18:53 +0000 (16:18 +0000)]
sign police.
Christos Zoulas [Thu, 6 Mar 2014 16:16:56 +0000 (16:16 +0000)]
PR/323: Tobias Stoeckmann: Add size_t overflow check for stat.
Christos Zoulas [Thu, 6 Mar 2014 16:14:08 +0000 (16:14 +0000)]
PR/324: Sebastian Willing: Add CuBase
Christos Zoulas [Thu, 6 Mar 2014 16:08:58 +0000 (16:08 +0000)]
PR/326: Mark Schreiber: Add Abook (console addressbook program used with mutt)
Christos Zoulas [Thu, 6 Mar 2014 16:07:24 +0000 (16:07 +0000)]
PR/327: Shane Carr: Add zlma compressed flash magic
Christos Zoulas [Thu, 6 Mar 2014 16:03:39 +0000 (16:03 +0000)]
PR/328: Shane Carr: fix echo -ne "\012\013\014" | file -i -
which printed "binary" instead of "application/octet-stream"
Christos Zoulas [Thu, 6 Mar 2014 15:23:33 +0000 (15:23 +0000)]
remove debugging printf
Christos Zoulas [Thu, 6 Mar 2014 15:23:16 +0000 (15:23 +0000)]
simplify 0 offset case
Christos Zoulas [Tue, 4 Mar 2014 17:42:19 +0000 (17:42 +0000)]
off by one in out of bounds calculations (Jan Kaluza)
kim [Tue, 4 Mar 2014 12:20:42 +0000 (12:20 +0000)]
Fix pasto in previous.
Christos Zoulas [Mon, 3 Mar 2014 14:19:46 +0000 (14:19 +0000)]
add QEMU images
Christos Zoulas [Sun, 2 Mar 2014 14:52:23 +0000 (14:52 +0000)]
encode filename (Debian#435397)
Christos Zoulas [Sun, 2 Mar 2014 14:47:16 +0000 (14:47 +0000)]
add magic_errno (Debian#696113)
Christos Zoulas [Sun, 2 Mar 2014 00:01:29 +0000 (00:01 +0000)]
See Debian#657545: The "Linux/i386 core file" rule in linux:42 has a
bigger strength (70) than "JPEG image data" in jpeg:12 (50). As a
result, the provided file is mis-detected as "Linux/i386 core".
Christos Zoulas [Sat, 1 Mar 2014 22:32:39 +0000 (22:32 +0000)]
add some binary patterns for scripts (Debian#707014)
Christos Zoulas [Sat, 1 Mar 2014 03:04:06 +0000 (03:04 +0000)]
Debian#573362 (Christoph Biedl)
Christos Zoulas [Sat, 1 Mar 2014 03:01:45 +0000 (03:01 +0000)]
Debian#609211 from Christoph Biedl
Christos Zoulas [Thu, 27 Feb 2014 23:26:17 +0000 (23:26 +0000)]
add some class id matching (from Christoph Biedl)
Christos Zoulas [Tue, 25 Feb 2014 20:52:02 +0000 (20:52 +0000)]
Fix debugging build.
Christos Zoulas [Tue, 25 Feb 2014 20:28:16 +0000 (20:28 +0000)]
comment out, too weak magic
Christos Zoulas [Fri, 21 Feb 2014 14:32:48 +0000 (14:32 +0000)]
Fix memory leak (Anatol Belski)
kim [Tue, 18 Feb 2014 18:51:51 +0000 (18:51 +0000)]
I probably wouldn't remember all this next time, so writing it down.
kim [Tue, 18 Feb 2014 17:59:21 +0000 (17:59 +0000)]
Use C locale for LC_CTYPE around one more regcomp().
kim [Tue, 18 Feb 2014 11:09:31 +0000 (11:09 +0000)]
Cache old LC_CTYPE locale for restoring it later.
Cache old LC_CTYPE locale before setting it to "C", so
we can use it to restore LC_CTYPE instead of asking
setlocale() to scan the environment variables.
Christos Zoulas [Sat, 15 Feb 2014 01:30:52 +0000 (01:30 +0000)]
comment out python comment magic cause other things like mediawiki use it.
Reuben Thomas [Fri, 14 Feb 2014 20:43:48 +0000 (20:43 +0000)]
Add test case for CVE-2014-1943 (thanks, Christoph Biedl)
Reuben Thomas [Fri, 14 Feb 2014 20:42:37 +0000 (20:42 +0000)]
Remove obsolete test magic file
Reuben Thomas [Fri, 14 Feb 2014 20:40:41 +0000 (20:40 +0000)]
tests/Makefile.am: remove some redundancy in test file paths
Christos Zoulas [Wed, 12 Feb 2014 23:39:40 +0000 (23:39 +0000)]
new version
Christos Zoulas [Wed, 12 Feb 2014 23:39:28 +0000 (23:39 +0000)]
star expansions are not portable
Christos Zoulas [Wed, 12 Feb 2014 23:21:46 +0000 (23:21 +0000)]
new fix
Christos Zoulas [Wed, 12 Feb 2014 23:20:53 +0000 (23:20 +0000)]
count indirect recursion as recursion.
Christos Zoulas [Tue, 11 Feb 2014 15:44:54 +0000 (15:44 +0000)]
Recent changes
Christos Zoulas [Tue, 11 Feb 2014 15:41:25 +0000 (15:41 +0000)]
prevent infinite recursion.
Christos Zoulas [Tue, 11 Feb 2014 15:41:04 +0000 (15:41 +0000)]
Add magic error -E handling
Christos Zoulas [Thu, 6 Feb 2014 14:21:02 +0000 (14:21 +0000)]
new format for gpg keystores.
Christos Zoulas [Fri, 31 Jan 2014 01:57:00 +0000 (01:57 +0000)]
Add -E flag, mention previous changes
Christos Zoulas [Fri, 31 Jan 2014 01:51:32 +0000 (01:51 +0000)]
Add blackberry
Christos Zoulas [Wed, 8 Jan 2014 22:37:23 +0000 (22:37 +0000)]
PR/312: Nisse: Fix dolby lfeon and dsurmod
Christos Zoulas [Wed, 8 Jan 2014 22:29:21 +0000 (22:29 +0000)]
PR/300: Jung-uk Kim: Fix mime for tcl
Christos Zoulas [Wed, 8 Jan 2014 22:27:31 +0000 (22:27 +0000)]
PR/309: Aaron Reffett: Update jar.
Christos Zoulas [Wed, 8 Jan 2014 22:26:12 +0000 (22:26 +0000)]
PR/301: Ken Sharp: Recognize new make config files
Christos Zoulas [Wed, 8 Jan 2014 22:22:54 +0000 (22:22 +0000)]
PR/313: Aaron Reffett: Check properly for exceeding the offset.
Christos Zoulas [Wed, 8 Jan 2014 22:10:18 +0000 (22:10 +0000)]
PR/314: Jan Kaluza: Add QCW3 support
Christos Zoulas [Wed, 8 Jan 2014 22:02:06 +0000 (22:02 +0000)]
PR/318: Klortho: if handle_annotation prints something, mark it as printed.
kim [Wed, 8 Jan 2014 11:27:53 +0000 (11:27 +0000)]
Provide the link for subscribing to the mailing list.
Christos Zoulas [Tue, 7 Jan 2014 03:15:09 +0000 (03:15 +0000)]
add missing format attributes
Reuben Thomas [Mon, 6 Jan 2014 18:17:30 +0000 (18:17 +0000)]
Simplify adding a new test.
(at the price of using wildcards in tests/Makefile.am)
Add a regression test for PR #311.
Reuben Thomas [Mon, 6 Jan 2014 18:16:24 +0000 (18:16 +0000)]
Fix PR #311, .docx files incorrectly detected
Reuben Thomas [Mon, 6 Jan 2014 17:46:23 +0000 (17:46 +0000)]
Change test harness so that it uses the main magic file, rather than
per-test magic.
It would be easy to reintroduce per-test magic, but neither the one
(!) existing test, nor the one being added, needs it.
Add a new test for a bug recently fixed in EPUB magic. Let's have more
tests!
Making this change uncovered a failure: the magic for GEDCOM files has
been changed in the main magic files, and doesn't work any more. This
is bug #315. The magic should work as-is, but since the real fix is
non-obvious, change it back.
Update the gedcom.result, since the output has also changed in the
main magic files.
Reuben Thomas [Mon, 6 Jan 2014 13:43:35 +0000 (13:43 +0000)]
Remove inconsistency.
Reuben Thomas [Mon, 6 Jan 2014 13:41:18 +0000 (13:41 +0000)]
Fix cdf_app_to_mime, broken in previous commit: actually return the return value
Reuben Thomas [Mon, 6 Jan 2014 13:27:05 +0000 (13:27 +0000)]
Fix bad merge of duplicate EPUB magic; fixes Debian bug #722441
Christos Zoulas [Mon, 6 Jan 2014 02:25:32 +0000 (02:25 +0000)]
use fmtcheck if available.
Christos Zoulas [Sun, 5 Jan 2014 15:55:21 +0000 (15:55 +0000)]
Add lz4 support (Ville Skytta)
Christos Zoulas [Tue, 31 Dec 2013 19:18:02 +0000 (19:18 +0000)]
more improvements from Ralf Brown
Christos Zoulas [Tue, 31 Dec 2013 02:09:30 +0000 (02:09 +0000)]
Enable a stricter magic and explain the palmos header from Ralf Brown
Christos Zoulas [Sat, 21 Dec 2013 14:29:45 +0000 (14:29 +0000)]
add file extensions
Christos Zoulas [Sat, 21 Dec 2013 14:28:15 +0000 (14:28 +0000)]
fix wrong offset.