]> granicus.if.org Git - file/log
file
9 years agoPR/489: Avoid evaluating things twice.
Christos Zoulas [Thu, 29 Oct 2015 19:23:42 +0000 (19:23 +0000)]
PR/489: Avoid evaluating things twice.

9 years agoPR/491: Magic for PFR0
Christos Zoulas [Thu, 29 Oct 2015 18:52:16 +0000 (18:52 +0000)]
PR/491: Magic for PFR0

9 years agoDocument that this is for PR/490.
Christos Zoulas [Thu, 29 Oct 2015 18:49:11 +0000 (18:49 +0000)]
Document that this is for PR/490.

9 years agobump things so we beat html
Christos Zoulas [Thu, 29 Oct 2015 18:45:05 +0000 (18:45 +0000)]
bump things so we beat html

9 years agoc32 fixes from Joerg Jenderek
Christos Zoulas [Tue, 27 Oct 2015 23:24:33 +0000 (23:24 +0000)]
c32 fixes from Joerg Jenderek

9 years agoAudio Garmin files (Joerg Jenderek)
Christos Zoulas [Mon, 26 Oct 2015 19:57:01 +0000 (19:57 +0000)]
Audio Garmin files (Joerg Jenderek)

9 years agoadd extensions for dicom (Joerg Jenderek)
Christos Zoulas [Sat, 24 Oct 2015 15:32:58 +0000 (15:32 +0000)]
add extensions for dicom (Joerg Jenderek)

9 years agoFrom Christoph Biedl:
Christos Zoulas [Fri, 16 Oct 2015 15:11:07 +0000 (15:11 +0000)]
From Christoph Biedl:

The bad news first: Detection of WordPerfect/Corel is quite broken due
to forgotten endianess clarification, and has probably been ever since.
On LE archs, nothing but "(Corel/WP)" is printed.

Time for a clarification and cleanup. Basically, there's a product
(Offset 8) and file type (Offset 9) short, and little information about
their meanings. So I took the old logik and placed it in logical
groups, with some questions about PlanPerfect raised. Perhaps there was
an off-by-one when creating the data? Also, the "loadable file" and
"graphic image" fit into the scheme, no need for extra rules.

There were a few hints in the wp2x sources, and the LibreOffice has
a few sample files in the sources. Not all of them are detected, these
have a completely different header (very old format?).

9 years agoadd flags
Christos Zoulas [Thu, 15 Oct 2015 21:51:22 +0000 (21:51 +0000)]
add flags

9 years agofix multi-arch printing for 2
Christos Zoulas [Thu, 15 Oct 2015 20:56:51 +0000 (20:56 +0000)]
fix multi-arch printing for 2

9 years agoadd haswell, fix arm7s
Christos Zoulas [Thu, 15 Oct 2015 16:54:01 +0000 (16:54 +0000)]
add haswell, fix arm7s

9 years agoadd more arm info
Christos Zoulas [Thu, 15 Oct 2015 15:42:17 +0000 (15:42 +0000)]
add more arm info

9 years agoPR/484: add google chrome magic (Ville Skytta)
Christos Zoulas [Sat, 10 Oct 2015 15:37:44 +0000 (15:37 +0000)]
PR/484: add google chrome magic (Ville Skytta)

9 years agoPR/482, PR/483, Ville Skytta remove duplicate xar magic and add mime to it
Christos Zoulas [Sat, 10 Oct 2015 15:36:32 +0000 (15:36 +0000)]
PR/482, PR/483, Ville Skytta remove duplicate xar magic and add mime to it

9 years agoReturn the offset not size, so that we can process more notes. Noted by
Christos Zoulas [Fri, 9 Oct 2015 14:38:47 +0000 (14:38 +0000)]
Return the offset not size, so that we can process more notes. Noted by
Jan Kaluza.

9 years agoadd > (Christoph Biedl)
Christos Zoulas [Wed, 7 Oct 2015 02:37:57 +0000 (02:37 +0000)]
add > (Christoph Biedl)

9 years agoremove dup words (Jakub Wilk)
Christos Zoulas [Wed, 7 Oct 2015 02:36:50 +0000 (02:36 +0000)]
remove dup words (Jakub Wilk)

9 years agoAdd fingerprint data
Christos Zoulas [Fri, 2 Oct 2015 18:36:54 +0000 (18:36 +0000)]
Add fingerprint data

9 years agocentralize coff magic by Joerg Jenderek.
Christos Zoulas [Wed, 30 Sep 2015 20:32:35 +0000 (20:32 +0000)]
centralize coff magic by Joerg Jenderek.

9 years agourl for rar
Christos Zoulas [Wed, 30 Sep 2015 18:33:35 +0000 (18:33 +0000)]
url for rar

9 years agorar improvements (Christoph Biedl)
Christos Zoulas [Wed, 30 Sep 2015 18:32:46 +0000 (18:32 +0000)]
rar improvements (Christoph Biedl)

9 years agoPR/480: print (default) in the right place depending on POSIXLY_CORRECT
Christos Zoulas [Wed, 30 Sep 2015 14:02:06 +0000 (14:02 +0000)]
PR/480: print (default) in the right place depending on POSIXLY_CORRECT

9 years agoPR/481: Add mime for rar v5
Christos Zoulas [Wed, 30 Sep 2015 13:44:38 +0000 (13:44 +0000)]
PR/481: Add mime for rar v5

9 years agoRefactor RAR, add v5 for it from Christoph Biedl
Christos Zoulas [Mon, 28 Sep 2015 14:51:01 +0000 (14:51 +0000)]
Refactor RAR, add v5 for it from Christoph Biedl

9 years agodisambiguate NTFS and db magic by adding a blocksize test. Add mime
Christos Zoulas [Sun, 27 Sep 2015 05:40:08 +0000 (05:40 +0000)]
disambiguate NTFS and db magic by adding a blocksize test. Add mime
and extension. From Joerg Jenderek

9 years agoAdd windows tape format from Joerg Jenderek
Christos Zoulas [Wed, 23 Sep 2015 16:03:03 +0000 (16:03 +0000)]
Add windows tape format from Joerg Jenderek

9 years agoFix --mime-encoding without --mime-type (Christoph Biedl)
Christos Zoulas [Tue, 22 Sep 2015 15:40:32 +0000 (15:40 +0000)]
Fix --mime-encoding without --mime-type (Christoph Biedl)
printf '\x00\xff' | file --mime-encoding -

9 years agomore info for Garmin images from Joerg Jenderek
Christos Zoulas [Mon, 21 Sep 2015 21:12:43 +0000 (21:12 +0000)]
more info for Garmin images from Joerg Jenderek

9 years agoremove unused variables
Christos Zoulas [Thu, 17 Sep 2015 01:14:09 +0000 (01:14 +0000)]
remove unused variables

9 years agoMake the default case print something sane for each of the different styles:
Christos Zoulas [Thu, 17 Sep 2015 01:10:51 +0000 (01:10 +0000)]
Make the default case print something sane for each of the different styles:
apple, mime, encoding, default. Before it just printed data which is confusing.

9 years agoMove the annotation code back and add similar code to the mime code that
Christos Zoulas [Thu, 17 Sep 2015 01:10:00 +0000 (01:10 +0000)]
Move the annotation code back and add similar code to the mime code that
checks if there is a string to be printed and skips otherwise.

9 years agodrop the count of digits allowed.
Christos Zoulas [Wed, 16 Sep 2015 22:52:54 +0000 (22:52 +0000)]
drop the count of digits allowed.

9 years agoremove over-zealous, and fix test properly.
Christos Zoulas [Wed, 16 Sep 2015 22:37:05 +0000 (22:37 +0000)]
remove over-zealous, and fix test properly.

9 years agobump more...
Christos Zoulas [Wed, 16 Sep 2015 22:19:54 +0000 (22:19 +0000)]
bump more...

9 years agoannotations are attached to the first description entry, print them then.
Christos Zoulas [Wed, 16 Sep 2015 22:17:12 +0000 (22:17 +0000)]
annotations are attached to the first description entry, print them then.

9 years agothis will happen on systems that don't have mmap(2). Typically
Christos Zoulas [Wed, 16 Sep 2015 18:34:21 +0000 (18:34 +0000)]
this will happen on systems that don't have mmap(2). Typically
MALLOC type entries happen during regular parsing or compilation
and are allocated in coalesce_entries(). But they will also occur
when QUICK is not defined (i.e. when the target system does not
have mmap(2)).

9 years agoPR/479: Protect against 0-divide and offset out of bounds reads.
Christos Zoulas [Wed, 16 Sep 2015 18:25:23 +0000 (18:25 +0000)]
PR/479: Protect against 0-divide and offset out of bounds reads.

9 years agoPR/479: check the format length modifiers.
Christos Zoulas [Wed, 16 Sep 2015 18:21:26 +0000 (18:21 +0000)]
PR/479: check the format length modifiers.

9 years agowelcome to 5.25 FILE5_25
Christos Zoulas [Wed, 16 Sep 2015 13:51:55 +0000 (13:51 +0000)]
welcome to 5.25

9 years agonew magic from joerg jenderek
Christos Zoulas [Wed, 16 Sep 2015 13:49:33 +0000 (13:49 +0000)]
new magic from joerg jenderek

9 years agoPR/474: be more careful about updating string positions:
Christos Zoulas [Sat, 12 Sep 2015 18:10:42 +0000 (18:10 +0000)]
PR/474: be more careful about updating string positions:
1. if the numeric conversion failed, don't move the string pointer.
2. on escape parse failure restore the string position

9 years agoworks better if the change is in the original not the generated file.
Christos Zoulas [Fri, 11 Sep 2015 18:53:10 +0000 (18:53 +0000)]
works better if the change is in the original not the generated file.

9 years agoPR/474: Add a limit to the size of regex searches to prevent performance
Christos Zoulas [Fri, 11 Sep 2015 17:24:09 +0000 (17:24 +0000)]
PR/474:  Add a limit to the size of regex searches to prevent performance
issues.

9 years agoPR/475: Fix past end of buffer read.
Christos Zoulas [Thu, 10 Sep 2015 14:39:55 +0000 (14:39 +0000)]
PR/475: Fix past end of buffer read.

9 years agodon't leak memory when loading non-compiled files.
Christos Zoulas [Thu, 10 Sep 2015 13:59:47 +0000 (13:59 +0000)]
don't leak memory when loading non-compiled files.

9 years agofix sign-compare error.
Christos Zoulas [Thu, 10 Sep 2015 13:59:32 +0000 (13:59 +0000)]
fix sign-compare error.

9 years agoAlways print the method we are trying in debug mode.
Christos Zoulas [Thu, 10 Sep 2015 13:32:19 +0000 (13:32 +0000)]
Always print the method we are trying in debug mode.

9 years agoPR/472: minix: correct v3 identification, and remove zones from v2
Christos Zoulas [Wed, 9 Sep 2015 16:26:54 +0000 (16:26 +0000)]
PR/472: minix: correct v3 identification, and remove zones from v2

9 years agoPR/476: Add hopper magic
Christos Zoulas [Wed, 9 Sep 2015 16:25:29 +0000 (16:25 +0000)]
PR/476: Add hopper magic

9 years agobump the strength so that we beat the generic script magic
Christos Zoulas [Tue, 8 Sep 2015 13:59:44 +0000 (13:59 +0000)]
bump the strength so that we beat the generic script magic

9 years agoAdd missing 'e'
Christos Zoulas [Tue, 8 Sep 2015 13:48:44 +0000 (13:48 +0000)]
Add missing 'e'

9 years agoDocument fixes for --parameter issues
Christos Zoulas [Tue, 8 Sep 2015 13:48:28 +0000 (13:48 +0000)]
Document fixes for --parameter issues

9 years agoapply parameters before unwrapping() the list of files (Christoph Biedl)
Christos Zoulas [Tue, 8 Sep 2015 13:46:49 +0000 (13:46 +0000)]
apply parameters before unwrapping() the list of files (Christoph Biedl)

9 years ago--parameter takes a parameter (Christoph Biedl)
Christos Zoulas [Tue, 8 Sep 2015 13:46:01 +0000 (13:46 +0000)]
--parameter takes a parameter (Christoph Biedl)

9 years agomagic patches from David Griffith
Christos Zoulas [Mon, 7 Sep 2015 10:03:21 +0000 (10:03 +0000)]
magic patches from David Griffith

9 years agofix comments about byte sizes; Christoph Biedl
Christos Zoulas [Sun, 30 Aug 2015 14:16:33 +0000 (14:16 +0000)]
fix comments about byte sizes; Christoph Biedl

9 years agoadd missing 'x' and quoted spaces in magic (Christoph Biedl)
Christos Zoulas [Sat, 29 Aug 2015 07:10:35 +0000 (07:10 +0000)]
add missing 'x' and quoted spaces in magic (Christoph Biedl)

9 years agobump elf max phnum to 2048 since core dumps can have many entries if
Christos Zoulas [Fri, 28 Aug 2015 08:32:51 +0000 (08:32 +0000)]
bump elf max phnum to 2048 since core dumps can have many entries if
the binaries that produce them depend on many shared libraries

9 years agoAdd more patterns for Makefiles:
Christos Zoulas [Tue, 25 Aug 2015 07:34:06 +0000 (07:34 +0000)]
Add more patterns for Makefiles:
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181436

9 years agoclarify AOL images: https://bugs.debian.org/681304
Christos Zoulas [Mon, 24 Aug 2015 05:20:52 +0000 (05:20 +0000)]
clarify AOL images: https://bugs.debian.org/681304

9 years agoNew magic for LXT: https://bugs.debian.org/647412
Christos Zoulas [Mon, 24 Aug 2015 05:18:55 +0000 (05:18 +0000)]
New magic for LXT: https://bugs.debian.org/647412

9 years agoNew magic for Commodore raw tape files: https://bugs.debian.org/699777
Christos Zoulas [Mon, 24 Aug 2015 05:17:42 +0000 (05:17 +0000)]
New magic for Commodore raw tape files: https://bugs.debian.org/699777

9 years agoNew magic for Linux Software RAID: https://bugs.debian.org/663454
Christos Zoulas [Mon, 24 Aug 2015 05:16:11 +0000 (05:16 +0000)]
New magic for Linux Software RAID: https://bugs.debian.org/663454

9 years agoimprove btrfs magic: https://bugs.debian.org/663454
Christos Zoulas [Mon, 24 Aug 2015 05:11:10 +0000 (05:11 +0000)]
improve btrfs magic: https://bugs.debian.org/663454

9 years agomake htmlhelp files more general: https://bugs.debian.org/653911
Christos Zoulas [Mon, 24 Aug 2015 05:08:48 +0000 (05:08 +0000)]
make htmlhelp files more general: https://bugs.debian.org/653911

9 years agoAdd ttbin format files.
Christos Zoulas [Mon, 10 Aug 2015 05:18:27 +0000 (05:18 +0000)]
Add ttbin format files.

9 years agoPR/467: force binary magic for zlib
Christos Zoulas [Mon, 27 Jul 2015 15:41:09 +0000 (15:41 +0000)]
PR/467: force binary magic for zlib

9 years agoPR/468: decrease the strength of windows short magic so that HFS magic
Christos Zoulas [Mon, 27 Jul 2015 15:24:00 +0000 (15:24 +0000)]
PR/468: decrease the strength of windows short magic so that HFS magic
works

9 years agoPR/469: make c++ template code more restricted by including <> (Jan Kaluza)
Christos Zoulas [Mon, 27 Jul 2015 14:33:10 +0000 (14:33 +0000)]
PR/469: make c++ template code more restricted by including <> (Jan Kaluza)

9 years agoPR/470: Fix undefined behaviors.
Christos Zoulas [Mon, 27 Jul 2015 09:12:32 +0000 (09:12 +0000)]
PR/470: Fix undefined behaviors.

9 years agocentralize the byte swapping code.
Christos Zoulas [Mon, 27 Jul 2015 09:08:10 +0000 (09:08 +0000)]
centralize the byte swapping code.

9 years agoFix printing of dates (Jan Kaluza)
Christos Zoulas [Thu, 16 Jul 2015 14:28:57 +0000 (14:28 +0000)]
Fix printing of dates (Jan Kaluza)

9 years agoPR/188: Remove binary xml pattern.
Christos Zoulas [Sat, 11 Jul 2015 15:08:53 +0000 (15:08 +0000)]
PR/188: Remove binary xml pattern.
Print the version for XHTML

9 years agoPR/466: Windows fixes.
Christos Zoulas [Sat, 11 Jul 2015 14:41:37 +0000 (14:41 +0000)]
PR/466: Windows fixes.

9 years agosince this is a used by all NetPBM images, don't call it PPM.
Christos Zoulas [Sat, 11 Jul 2015 14:40:10 +0000 (14:40 +0000)]
since this is a used by all NetPBM images, don't call it PPM.

9 years agofix garmin result FILE5_24
Christos Zoulas [Thu, 9 Jul 2015 15:23:04 +0000 (15:23 +0000)]
fix garmin result

9 years agoadd a URL with the info
Christos Zoulas [Thu, 9 Jul 2015 15:16:41 +0000 (15:16 +0000)]
add a URL with the info

9 years agofix garmin map offset.
Christos Zoulas [Thu, 9 Jul 2015 15:13:51 +0000 (15:13 +0000)]
fix garmin map offset.

9 years agobump version
Christos Zoulas [Thu, 9 Jul 2015 14:38:59 +0000 (14:38 +0000)]
bump version

9 years agoStart the 5.24 release
Christos Zoulas [Thu, 9 Jul 2015 14:38:22 +0000 (14:38 +0000)]
Start the 5.24 release

9 years agohandle newer versions of zope (stephane blondon)
Christos Zoulas [Thu, 2 Jul 2015 18:25:57 +0000 (18:25 +0000)]
handle newer versions of zope (stephane blondon)

9 years agoadd new twoskip cyrus db file.
Christos Zoulas [Mon, 29 Jun 2015 14:44:26 +0000 (14:44 +0000)]
add new twoskip cyrus db file.

9 years agoPR/462: Add text to fortran magic
Christos Zoulas [Wed, 17 Jun 2015 19:55:27 +0000 (19:55 +0000)]
PR/462: Add text to fortran magic

9 years agoPR/461: Add new MIPS ISAs.
Christos Zoulas [Tue, 16 Jun 2015 17:23:08 +0000 (17:23 +0000)]
PR/461: Add new MIPS ISAs.
While there, factor out magic

9 years agoPR/460: Detect and avoid large (invalid) malloc in elf parser.
Christos Zoulas [Tue, 16 Jun 2015 14:18:07 +0000 (14:18 +0000)]
PR/460: Detect and avoid large (invalid) malloc in elf parser.

9 years agoprint a space between previous messages and error.
Christos Zoulas [Tue, 16 Jun 2015 14:17:37 +0000 (14:17 +0000)]
print a space between previous messages and error.

9 years agofix bug with 5.23 long options
Christos Zoulas [Thu, 11 Jun 2015 12:53:26 +0000 (12:53 +0000)]
fix bug with 5.23 long options

9 years agoFix bug with long options and explicitly number them to avoid this in
Christos Zoulas [Thu, 11 Jun 2015 12:52:32 +0000 (12:52 +0000)]
Fix bug with long options and explicitly number them to avoid this in
the future.

9 years agoPrepare for 5.23 FILE5_23
Christos Zoulas [Wed, 10 Jun 2015 17:51:37 +0000 (17:51 +0000)]
Prepare for 5.23

9 years agoPR/459: Don't let invalid magic entries go through with warnings because
Christos Zoulas [Wed, 10 Jun 2015 00:57:41 +0000 (00:57 +0000)]
PR/459: Don't let invalid magic entries go through with warnings because
later the softmagic entry would need a lot of sanity checks which it does
not have.

9 years ago- bytecnt needs to be adjusted by offset
Christos Zoulas [Tue, 9 Jun 2015 22:17:52 +0000 (22:17 +0000)]
- bytecnt needs to be adjusted by offset
- always return true from mget() regardless if match() matched. Fixes
  mime printing where we stopped matching the use magic because match
  return 0, since if (print) *returnval = 1; did not execute for mime.

9 years agoPR/458: Provide special version for env bash like we do with python.
Christos Zoulas [Thu, 4 Jun 2015 19:16:55 +0000 (19:16 +0000)]
PR/458: Provide special version for env bash like we do with python.

9 years agoFix utf-7 bugs
Christos Zoulas [Thu, 4 Jun 2015 19:16:28 +0000 (19:16 +0000)]
Fix utf-7 bugs

9 years agoPR/456, use utf-7 charset in mime printing for utf-7 files.
Christos Zoulas [Wed, 3 Jun 2015 19:51:27 +0000 (19:51 +0000)]
PR/456, use utf-7 charset in mime printing for utf-7 files.

9 years agoPR/455: Add feature to report only on contents of compressed data, not the
Christos Zoulas [Wed, 3 Jun 2015 18:21:24 +0000 (18:21 +0000)]
PR/455: Add feature to report only on contents of compressed data, not the
compression itself.

9 years agoPR/454: Fix memory corruption when the continuation level jumps by more than
Christos Zoulas [Wed, 3 Jun 2015 18:01:20 +0000 (18:01 +0000)]
PR/454: Fix memory corruption when the continuation level jumps by more than
20 in a single step.

9 years agowhat versions of libtool and autoconf we've been using recently.
Christos Zoulas [Wed, 3 Jun 2015 17:51:12 +0000 (17:51 +0000)]
what versions of libtool and autoconf we've been using recently.

9 years agomention MAGIC_CONTINUE fix.
Christos Zoulas [Fri, 29 May 2015 14:28:39 +0000 (14:28 +0000)]
mention MAGIC_CONTINUE fix.

9 years agoFix TODO's
Christos Zoulas [Fri, 29 May 2015 14:27:31 +0000 (14:27 +0000)]
Fix TODO's

9 years agoPR/449: Limit matching of mach-o multi-architecture magic
Christos Zoulas [Fri, 29 May 2015 14:21:58 +0000 (14:21 +0000)]
PR/449: Limit matching of mach-o multi-architecture magic