]> granicus.if.org Git - file/log
file
10 years agoPR/319: Remove superfluous call to file_ascmagic_with_encoding. file_encoding
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.

10 years agoPR/320: Issue a warning for mime types that are attached to magic entries
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.

10 years agoFix mime entries that were attached to magic entries that did not yet
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.

10 years agoPR/333: Be more precise about counting the strength of a regex, by counting the
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.

10 years agoPR/334: don't try to free the magic list if it was not allocated, since this
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.

10 years agoremove debugging printf.
Christos Zoulas [Tue, 11 Mar 2014 21:00:13 +0000 (21:00 +0000)]
remove debugging printf.

10 years agoremove bogus comment
Christos Zoulas [Tue, 11 Mar 2014 17:13:18 +0000 (17:13 +0000)]
remove bogus comment

10 years agofix bug intruduced by the locale changes.
Christos Zoulas [Tue, 11 Mar 2014 15:52:54 +0000 (15:52 +0000)]
fix bug intruduced by the locale changes.

10 years agoAdd ID.
Kimmo Suominen [Mon, 10 Mar 2014 12:42:49 +0000 (12:42 +0000)]
Add ID.

10 years agoSort list of packages for ease of maintenance.
Kimmo Suominen [Mon, 10 Mar 2014 12:38:08 +0000 (12:38 +0000)]
Sort list of packages for ease of maintenance.

10 years agoRemove explicit autotools-dev.
Kimmo Suominen [Mon, 10 Mar 2014 12:35:59 +0000 (12:35 +0000)]
Remove explicit autotools-dev.

10 years agoFix typo another way. Per Christoph Biedl.
Kimmo Suominen [Mon, 10 Mar 2014 08:48:18 +0000 (08:48 +0000)]
Fix typo another way. Per Christoph Biedl.

10 years agoescape space.
Christos Zoulas [Mon, 10 Mar 2014 00:53:38 +0000 (00:53 +0000)]
escape space.

10 years agoFix typo.
Kimmo Suominen [Sun, 9 Mar 2014 11:18:24 +0000 (11:18 +0000)]
Fix typo.

10 years agoAdd compiled delphi magic
Christos Zoulas [Sat, 8 Mar 2014 21:43:09 +0000 (21:43 +0000)]
Add compiled delphi magic

10 years agoExplain date number format (Christoph Biedl)
Christos Zoulas [Sat, 8 Mar 2014 17:28:08 +0000 (17:28 +0000)]
Explain date number format (Christoph Biedl)

10 years agoFIx windows icons and cursors (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.

10 years agoSync README.DEVELOPER and .travis.yml
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.

10 years agodocument the apple option (Christoph Biedl)
Christos Zoulas [Fri, 7 Mar 2014 23:11:51 +0000 (23:11 +0000)]
document the apple option (Christoph Biedl)

10 years agoclarify the syntax for string searches (Christoph Biedl)
Christos Zoulas [Fri, 7 Mar 2014 23:11:16 +0000 (23:11 +0000)]
clarify the syntax for string searches (Christoph Biedl)

10 years agoAdd a couple of missing files
Christos Zoulas [Fri, 7 Mar 2014 17:25:17 +0000 (17:25 +0000)]
Add a couple of missing files

10 years agojust commit the yml, not all the html surrounding it.
Christos Zoulas [Fri, 7 Mar 2014 17:20:37 +0000 (17:20 +0000)]
just commit the yml, not all the html surrounding it.

10 years agomake this travis friendly.
Christos Zoulas [Fri, 7 Mar 2014 13:55:30 +0000 (13:55 +0000)]
make this travis friendly.

10 years agoDebian#605143: Appearently there's a formatting error in the
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.

10 years agoFrom Christoph Biedl, factor our riff magic
Christos Zoulas [Thu, 6 Mar 2014 18:55:09 +0000 (18:55 +0000)]
From Christoph Biedl, factor our riff magic

10 years agofrom glensc for testing
Christos Zoulas [Thu, 6 Mar 2014 17:45:46 +0000 (17:45 +0000)]
from glensc for testing

10 years agoone more
Christos Zoulas [Thu, 6 Mar 2014 17:29:28 +0000 (17:29 +0000)]
one more

10 years agonew changes
Christos Zoulas [Thu, 6 Mar 2014 17:28:14 +0000 (17:28 +0000)]
new changes

10 years agofix typo, add comment of perhaps a simpler path to success
Christos Zoulas [Thu, 6 Mar 2014 16:57:57 +0000 (16:57 +0000)]
fix typo, add comment of perhaps a simpler path to success

10 years agodon't compare SIZE_MAX to off_t; if they are the same size in bytes it is
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.

10 years agotypo
Christos Zoulas [Thu, 6 Mar 2014 16:37:39 +0000 (16:37 +0000)]
typo

10 years agoFixes from Christoph Biedl:
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.

10 years agosign police.
Christos Zoulas [Thu, 6 Mar 2014 16:18:53 +0000 (16:18 +0000)]
sign police.

10 years agoPR/323: Tobias Stoeckmann: Add size_t overflow check for stat.
Christos Zoulas [Thu, 6 Mar 2014 16:16:56 +0000 (16:16 +0000)]
PR/323: Tobias Stoeckmann: Add size_t overflow check for stat.

10 years agoPR/324: Sebastian Willing: Add CuBase
Christos Zoulas [Thu, 6 Mar 2014 16:14:08 +0000 (16:14 +0000)]
PR/324: Sebastian Willing: Add CuBase

10 years agoPR/326: Mark Schreiber: Add Abook (console addressbook program used with mutt)
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)

10 years agoPR/327: Shane Carr: Add zlma compressed flash magic
Christos Zoulas [Thu, 6 Mar 2014 16:07:24 +0000 (16:07 +0000)]
PR/327: Shane Carr: Add zlma compressed flash magic

10 years agoPR/328: Shane Carr: fix echo -ne "\012\013\014" | file -i -
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"

10 years agoremove debugging printf
Christos Zoulas [Thu, 6 Mar 2014 15:23:33 +0000 (15:23 +0000)]
remove debugging printf

10 years agosimplify 0 offset case
Christos Zoulas [Thu, 6 Mar 2014 15:23:16 +0000 (15:23 +0000)]
simplify 0 offset case

10 years agooff by one in out of bounds calculations (Jan Kaluza)
Christos Zoulas [Tue, 4 Mar 2014 17:42:19 +0000 (17:42 +0000)]
off by one in out of bounds calculations (Jan Kaluza)

10 years agoFix pasto in previous.
kim [Tue, 4 Mar 2014 12:20:42 +0000 (12:20 +0000)]
Fix pasto in previous.

10 years agoadd QEMU images
Christos Zoulas [Mon, 3 Mar 2014 14:19:46 +0000 (14:19 +0000)]
add QEMU images

10 years agoencode filename (Debian#435397)
Christos Zoulas [Sun, 2 Mar 2014 14:52:23 +0000 (14:52 +0000)]
encode filename (Debian#435397)

10 years agoadd magic_errno (Debian#696113)
Christos Zoulas [Sun, 2 Mar 2014 14:47:16 +0000 (14:47 +0000)]
add magic_errno (Debian#696113)

10 years agoSee Debian#657545: The "Linux/i386 core file" rule in linux:42 has a
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".

10 years agoadd some binary patterns for scripts (Debian#707014)
Christos Zoulas [Sat, 1 Mar 2014 22:32:39 +0000 (22:32 +0000)]
add some binary patterns for scripts (Debian#707014)

10 years agoDebian#573362 (Christoph Biedl)
Christos Zoulas [Sat, 1 Mar 2014 03:04:06 +0000 (03:04 +0000)]
Debian#573362 (Christoph Biedl)

10 years agoDebian#609211 from Christoph Biedl
Christos Zoulas [Sat, 1 Mar 2014 03:01:45 +0000 (03:01 +0000)]
Debian#609211 from Christoph Biedl

10 years agoadd some class id matching (from Christoph Biedl)
Christos Zoulas [Thu, 27 Feb 2014 23:26:17 +0000 (23:26 +0000)]
add some class id matching (from Christoph Biedl)

10 years agoFix debugging build.
Christos Zoulas [Tue, 25 Feb 2014 20:52:02 +0000 (20:52 +0000)]
Fix debugging build.

10 years agocomment out, too weak magic
Christos Zoulas [Tue, 25 Feb 2014 20:28:16 +0000 (20:28 +0000)]
comment out, too weak magic

10 years agoFix memory leak (Anatol Belski)
Christos Zoulas [Fri, 21 Feb 2014 14:32:48 +0000 (14:32 +0000)]
Fix memory leak (Anatol Belski)

10 years agoI probably wouldn't remember all this next time, so writing it down.
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.

10 years agoUse C locale for LC_CTYPE around one more regcomp().
kim [Tue, 18 Feb 2014 17:59:21 +0000 (17:59 +0000)]
Use C locale for LC_CTYPE around one more regcomp().

10 years agoCache old LC_CTYPE locale for restoring it later.
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.

10 years agocomment out python comment magic cause other things like mediawiki use it.
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.

10 years agoAdd test case for CVE-2014-1943 (thanks, Christoph Biedl)
Reuben Thomas [Fri, 14 Feb 2014 20:43:48 +0000 (20:43 +0000)]
Add test case for CVE-2014-1943 (thanks, Christoph Biedl)

10 years agoRemove obsolete test magic file
Reuben Thomas [Fri, 14 Feb 2014 20:42:37 +0000 (20:42 +0000)]
Remove obsolete test magic file

10 years agotests/Makefile.am: remove some redundancy in test file paths
Reuben Thomas [Fri, 14 Feb 2014 20:40:41 +0000 (20:40 +0000)]
tests/Makefile.am: remove some redundancy in test file paths

10 years agonew version FILE5_17
Christos Zoulas [Wed, 12 Feb 2014 23:39:40 +0000 (23:39 +0000)]
new version

10 years agostar expansions are not portable
Christos Zoulas [Wed, 12 Feb 2014 23:39:28 +0000 (23:39 +0000)]
star expansions are not portable

10 years agonew fix
Christos Zoulas [Wed, 12 Feb 2014 23:21:46 +0000 (23:21 +0000)]
new fix

10 years agocount indirect recursion as recursion.
Christos Zoulas [Wed, 12 Feb 2014 23:20:53 +0000 (23:20 +0000)]
count indirect recursion as recursion.

10 years agoRecent changes
Christos Zoulas [Tue, 11 Feb 2014 15:44:54 +0000 (15:44 +0000)]
Recent changes

10 years agoprevent infinite recursion.
Christos Zoulas [Tue, 11 Feb 2014 15:41:25 +0000 (15:41 +0000)]
prevent infinite recursion.

10 years agoAdd magic error -E handling
Christos Zoulas [Tue, 11 Feb 2014 15:41:04 +0000 (15:41 +0000)]
Add magic error -E handling

10 years agonew format for gpg keystores.
Christos Zoulas [Thu, 6 Feb 2014 14:21:02 +0000 (14:21 +0000)]
new format for gpg keystores.

10 years agoAdd -E flag, mention previous changes
Christos Zoulas [Fri, 31 Jan 2014 01:57:00 +0000 (01:57 +0000)]
Add -E flag, mention previous changes

10 years agoAdd blackberry
Christos Zoulas [Fri, 31 Jan 2014 01:51:32 +0000 (01:51 +0000)]
Add blackberry

11 years agoPR/312: Nisse: Fix dolby lfeon and dsurmod
Christos Zoulas [Wed, 8 Jan 2014 22:37:23 +0000 (22:37 +0000)]
PR/312: Nisse: Fix dolby lfeon and dsurmod

11 years agoPR/300: Jung-uk Kim: Fix mime for tcl
Christos Zoulas [Wed, 8 Jan 2014 22:29:21 +0000 (22:29 +0000)]
PR/300: Jung-uk Kim: Fix mime for tcl

11 years agoPR/309: Aaron Reffett: Update jar.
Christos Zoulas [Wed, 8 Jan 2014 22:27:31 +0000 (22:27 +0000)]
PR/309: Aaron Reffett: Update jar.

11 years agoPR/301: Ken Sharp: Recognize new make config files
Christos Zoulas [Wed, 8 Jan 2014 22:26:12 +0000 (22:26 +0000)]
PR/301: Ken Sharp: Recognize new make config files

11 years agoPR/313: Aaron Reffett: Check properly for exceeding the offset.
Christos Zoulas [Wed, 8 Jan 2014 22:22:54 +0000 (22:22 +0000)]
PR/313: Aaron Reffett: Check properly for exceeding the offset.

11 years agoPR/314: Jan Kaluza: Add QCW3 support
Christos Zoulas [Wed, 8 Jan 2014 22:10:18 +0000 (22:10 +0000)]
PR/314: Jan Kaluza: Add QCW3 support

11 years agoPR/318: Klortho: if handle_annotation prints something, mark it as printed.
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.

11 years agoProvide the link for subscribing to the mailing list.
kim [Wed, 8 Jan 2014 11:27:53 +0000 (11:27 +0000)]
Provide the link for subscribing to the mailing list.

11 years agoadd missing format attributes
Christos Zoulas [Tue, 7 Jan 2014 03:15:09 +0000 (03:15 +0000)]
add missing format attributes

11 years agoSimplify adding a new test.
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.

11 years agoFix PR #311, .docx files incorrectly detected
Reuben Thomas [Mon, 6 Jan 2014 18:16:24 +0000 (18:16 +0000)]
Fix PR #311, .docx files incorrectly detected

11 years agoChange test harness so that it uses the main magic file, rather than
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.

11 years agoRemove inconsistency.
Reuben Thomas [Mon, 6 Jan 2014 13:43:35 +0000 (13:43 +0000)]
Remove inconsistency.

11 years agoFix cdf_app_to_mime, broken in previous commit: actually return the return value
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

11 years agoFix bad merge of duplicate EPUB magic; fixes Debian bug #722441
Reuben Thomas [Mon, 6 Jan 2014 13:27:05 +0000 (13:27 +0000)]
Fix bad merge of duplicate EPUB magic; fixes Debian bug #722441

11 years agouse fmtcheck if available.
Christos Zoulas [Mon, 6 Jan 2014 02:25:32 +0000 (02:25 +0000)]
use fmtcheck if available.

11 years agoAdd lz4 support (Ville Skytta)
Christos Zoulas [Sun, 5 Jan 2014 15:55:21 +0000 (15:55 +0000)]
Add lz4 support (Ville Skytta)

11 years agomore improvements from Ralf Brown
Christos Zoulas [Tue, 31 Dec 2013 19:18:02 +0000 (19:18 +0000)]
more improvements from Ralf Brown

11 years agoEnable a stricter magic and explain the palmos header 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

11 years agoadd file extensions
Christos Zoulas [Sat, 21 Dec 2013 14:29:45 +0000 (14:29 +0000)]
add file extensions

11 years agofix wrong offset.
Christos Zoulas [Sat, 21 Dec 2013 14:28:15 +0000 (14:28 +0000)]
fix wrong offset.

11 years agonew magic
Christos Zoulas [Sat, 21 Dec 2013 14:27:24 +0000 (14:27 +0000)]
new magic

11 years agoBump the strength of gzip and reorder printing of attributes (Thomas Ledoux)
Christos Zoulas [Wed, 11 Dec 2013 17:55:00 +0000 (17:55 +0000)]
Bump the strength of gzip and reorder printing of attributes (Thomas Ledoux)

11 years agolimit the depth of recursion in regex because it breaks under Solaris
Christos Zoulas [Wed, 11 Dec 2013 14:14:20 +0000 (14:14 +0000)]
limit the depth of recursion in regex because it breaks under Solaris

11 years agobetter RRD detection (Christoph Biedl)
Christos Zoulas [Mon, 9 Dec 2013 20:31:53 +0000 (20:31 +0000)]
better RRD detection (Christoph Biedl)

11 years agoPR/304: Use a regex because people install perl in non-standard places
Christos Zoulas [Sun, 8 Dec 2013 23:33:18 +0000 (23:33 +0000)]
PR/304: Use a regex because people install perl in non-standard places

11 years agolocale and strcasestr changes
Christos Zoulas [Thu, 5 Dec 2013 17:02:34 +0000 (17:02 +0000)]
locale and strcasestr changes

11 years agoAdd GVOX audio from Hector Lahoz
Christos Zoulas [Mon, 2 Dec 2013 13:32:26 +0000 (13:32 +0000)]
Add GVOX audio from Hector Lahoz

11 years agoMention magic always left loaded FILE5_16
Christos Zoulas [Sun, 1 Dec 2013 19:22:44 +0000 (19:22 +0000)]
Mention magic always left loaded

11 years agoWelcome to 5.16
Christos Zoulas [Sun, 1 Dec 2013 19:19:01 +0000 (19:19 +0000)]
Welcome to 5.16