]> granicus.if.org Git - file/log
file
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

11 years agoput back missing space.
Christos Zoulas [Sun, 1 Dec 2013 18:01:07 +0000 (18:01 +0000)]
put back missing space.

11 years agoput back filenames in error messages for the benefit of libmagic users.
Christos Zoulas [Fri, 29 Nov 2013 15:42:51 +0000 (15:42 +0000)]
put back filenames in error messages for the benefit of libmagic users.
file(1) itself, prints the filename at the beginning of the line so this
is duplicated information.

11 years agoPR/297: Better RRD detection
Christos Zoulas [Wed, 20 Nov 2013 00:00:14 +0000 (00:00 +0000)]
PR/297: Better RRD detection

11 years agoPR/298: Add CDR6 for Corel Draw 6.
Christos Zoulas [Tue, 19 Nov 2013 23:58:17 +0000 (23:58 +0000)]
PR/298: Add CDR6 for Corel Draw 6.

11 years agoPR/296: Add more BMP images
Christos Zoulas [Tue, 19 Nov 2013 23:56:04 +0000 (23:56 +0000)]
PR/296: Add more BMP images

11 years agoPR/295: Add EWF file format
Christos Zoulas [Tue, 19 Nov 2013 23:54:05 +0000 (23:54 +0000)]
PR/295: Add EWF file format

11 years agoPR/294: Fix file [--special-files]|[--mime-encoding] <one-byte-file>|<empty-file>
Christos Zoulas [Tue, 19 Nov 2013 23:49:44 +0000 (23:49 +0000)]
PR/294: Fix file [--special-files]|[--mime-encoding] <one-byte-file>|<empty-file>

11 years agoPR/293: Christian Hesse: Correct linux offset computation.
Christos Zoulas [Tue, 19 Nov 2013 23:18:15 +0000 (23:18 +0000)]
PR/293: Christian Hesse: Correct linux offset computation.

11 years agoPR/290: Rewrite xilinx to use pascal strings instead of hard-coded constants.
Christos Zoulas [Tue, 19 Nov 2013 23:15:13 +0000 (23:15 +0000)]
PR/290: Rewrite xilinx to use pascal strings instead of hard-coded constants.

11 years agoPR/289: Leave the database loaded in case of list, check, compile.
Christos Zoulas [Tue, 19 Nov 2013 21:01:12 +0000 (21:01 +0000)]
PR/289: Leave the database loaded in case of list, check, compile.

11 years agoPR/286: Default encoding is binary.
Christos Zoulas [Tue, 19 Nov 2013 20:45:50 +0000 (20:45 +0000)]
PR/286: Default encoding is binary.

11 years agoPR/287: Add another lzma case; there is no reliable way to check the format.
Christos Zoulas [Tue, 19 Nov 2013 20:38:57 +0000 (20:38 +0000)]
PR/287: Add another lzma case; there is no reliable way to check the format.

11 years agoPR/299: New fersion for SPSS.
Christos Zoulas [Tue, 19 Nov 2013 18:47:58 +0000 (18:47 +0000)]
PR/299: New fersion for SPSS.

11 years agodon't write a char to a pointer.
Christos Zoulas [Mon, 18 Nov 2013 17:54:58 +0000 (17:54 +0000)]
don't write a char to a pointer.

11 years agoadd the no encryption entry.
Christos Zoulas [Fri, 8 Nov 2013 01:24:22 +0000 (01:24 +0000)]
add the no encryption entry.

11 years agoexit code fix
Christos Zoulas [Wed, 6 Nov 2013 19:38:53 +0000 (19:38 +0000)]
exit code fix

11 years ago- since the name is printed alread in the message as <name>:<message> don't
Christos Zoulas [Wed, 6 Nov 2013 19:33:31 +0000 (19:33 +0000)]
- since the name is printed alread in the message as <name>:<message> don't
  repeat the name in the message
- if we could not stat, don't try to provide unreadable info
- if we could not stat, it is not an error, keep going.

11 years ago- split netbsd and freebsd version printing into separate functions
Christos Zoulas [Tue, 5 Nov 2013 15:44:01 +0000 (15:44 +0000)]
- split netbsd and freebsd version printing into separate functions
- don't let the NetBSD pax note end the search for notes
- add 2 more NetBSD notes

11 years agoadd android backup
Christos Zoulas [Tue, 5 Nov 2013 14:00:25 +0000 (14:00 +0000)]
add android backup

11 years agomove to more standard names.
Christos Zoulas [Tue, 29 Oct 2013 18:30:45 +0000 (18:30 +0000)]
move to more standard names.

11 years agoadd cdf improvements
Christos Zoulas [Tue, 29 Oct 2013 18:23:41 +0000 (18:23 +0000)]
add cdf improvements

11 years agoAdd microsoft installer files, improve the logic for handing mime and non-mime
Christos Zoulas [Tue, 29 Oct 2013 18:22:45 +0000 (18:22 +0000)]
Add microsoft installer files, improve the logic for handing mime and non-mime
on cdf. Parts from Guy Helmer

11 years agofix wrong offset for CDROM signature. (Anders Thulin)
Christos Zoulas [Thu, 24 Oct 2013 15:51:07 +0000 (15:51 +0000)]
fix wrong offset for CDROM signature. (Anders Thulin)

11 years agoadd bcache magic (Gabriel de Perthuis)
Christos Zoulas [Sun, 20 Oct 2013 17:41:05 +0000 (17:41 +0000)]
add bcache magic (Gabriel de Perthuis)