]> granicus.if.org Git - file/log
file
9 years agonew magic from Thomas M. Ott
Christos Zoulas [Sat, 14 Nov 2015 13:38:35 +0000 (13:38 +0000)]
new magic from Thomas M. Ott

9 years agoPR/494: make MAP_TYPE_USER be 0, and also set it expicitly. This avoids
Christos Zoulas [Fri, 13 Nov 2015 16:45:01 +0000 (16:45 +0000)]
PR/494: make MAP_TYPE_USER be 0, and also set it expicitly. This avoids
the problem on systems without QUICK (mmap) when an error is caught before
the map->type is set and the allocation of the map (when the magic file
cannot be opened).

9 years agoprovide forward declaration for makeerror()
Christos Zoulas [Fri, 13 Nov 2015 15:42:18 +0000 (15:42 +0000)]
provide forward declaration for makeerror()

9 years agoProvide dprintf(3)
Christos Zoulas [Fri, 13 Nov 2015 15:36:14 +0000 (15:36 +0000)]
Provide dprintf(3)

9 years agoProvide makeerror() when we don't have builtin-compress.
Christos Zoulas [Fri, 13 Nov 2015 15:35:10 +0000 (15:35 +0000)]
Provide makeerror() when we don't have builtin-compress.

9 years agofix formats
Christos Zoulas [Fri, 13 Nov 2015 00:50:40 +0000 (00:50 +0000)]
fix formats

9 years agoPR/496: Add more details for the PS/X executable format and add the CPE format.
Christos Zoulas [Fri, 13 Nov 2015 00:39:08 +0000 (00:39 +0000)]
PR/496: Add more details for the PS/X executable format and add the CPE format.

9 years agoPR/496: Add more image formats
Christos Zoulas [Fri, 13 Nov 2015 00:38:33 +0000 (00:38 +0000)]
PR/496: Add more image formats

9 years agoPush and pop a buffer so ascmagic does not print ", " because it thinks
Christos Zoulas [Wed, 11 Nov 2015 22:50:12 +0000 (22:50 +0000)]
Push and pop a buffer so ascmagic does not print ", " because it thinks
we've already printed.

9 years agomore symbolic constants
Christos Zoulas [Wed, 11 Nov 2015 22:30:29 +0000 (22:30 +0000)]
more symbolic constants

9 years agouse symbolic names for 0, 1, 2
Christos Zoulas [Wed, 11 Nov 2015 22:26:30 +0000 (22:26 +0000)]
use symbolic names for 0, 1, 2

9 years agoPrint the compression program name or zlib.
Christos Zoulas [Wed, 11 Nov 2015 22:22:19 +0000 (22:22 +0000)]
Print the compression program name or zlib.

9 years agorename the "from" tag in the auxv to "execfn".
Christos Zoulas [Wed, 11 Nov 2015 21:20:18 +0000 (21:20 +0000)]
rename the "from" tag in the auxv to "execfn".

9 years agoDecompression failures now report errors to the parent.
Christos Zoulas [Wed, 11 Nov 2015 21:19:11 +0000 (21:19 +0000)]
Decompression failures now report errors to the parent.

9 years agoImprove the strength of sendmail.fc files, print version, add extension
Christos Zoulas [Wed, 11 Nov 2015 15:27:03 +0000 (15:27 +0000)]
Improve the strength of sendmail.fc files, print version, add extension
(Joerg Jenderek)

9 years agoregex stuff.
Christos Zoulas [Wed, 11 Nov 2015 04:26:26 +0000 (04:26 +0000)]
regex stuff.

9 years agoPR/495: Spurious msooxml match. REG_STARTEND code is not working as it
Christos Zoulas [Wed, 11 Nov 2015 04:25:41 +0000 (04:25 +0000)]
PR/495: Spurious msooxml match. REG_STARTEND code is not working as it
is supposed to, remove it.

9 years agoPR/492: Don't exit from grandchild (magic_buffer case).
Christos Zoulas [Tue, 10 Nov 2015 22:52:07 +0000 (22:52 +0000)]
PR/492: Don't exit from grandchild (magic_buffer case).

9 years agoAdd missing bracket.
Christos Zoulas [Tue, 10 Nov 2015 17:47:02 +0000 (17:47 +0000)]
Add missing bracket.

9 years agoadd extensions and mime for boot roms (Joerg Jenderek)
Christos Zoulas [Tue, 10 Nov 2015 00:13:27 +0000 (00:13 +0000)]
add extensions and mime for boot roms (Joerg Jenderek)

9 years ago- check for MAP_FAILED before unmapping.
Christos Zoulas [Mon, 9 Nov 2015 21:21:16 +0000 (21:21 +0000)]
- check for MAP_FAILED before unmapping.
- reorder setting of the flags, so that we act properly on error.
Might fix PR/494

9 years agoAdd zlib support
Christos Zoulas [Mon, 9 Nov 2015 21:03:51 +0000 (21:03 +0000)]
Add zlib support

9 years agoAdd CCAST for const cast.
Christos Zoulas [Mon, 9 Nov 2015 21:03:42 +0000 (21:03 +0000)]
Add CCAST for const cast.

9 years agoAdd attributes to the proper place.
Christos Zoulas [Mon, 9 Nov 2015 18:21:05 +0000 (18:21 +0000)]
Add attributes to the proper place.

9 years agoHandle MacOS/X icons (Joerg Jenderek)
Christos Zoulas [Mon, 9 Nov 2015 17:02:41 +0000 (17:02 +0000)]
Handle MacOS/X icons (Joerg Jenderek)

9 years agoFix handling of 0x8c EXE files (Joerg Jenderek)
Christos Zoulas [Mon, 9 Nov 2015 16:59:45 +0000 (16:59 +0000)]
Fix handling of 0x8c EXE files (Joerg Jenderek)

9 years agoAdd java hprof dumps (Christoph Biedl)
Christos Zoulas [Mon, 9 Nov 2015 16:57:19 +0000 (16:57 +0000)]
Add java hprof dumps (Christoph Biedl)

9 years agorestrict fortran
Christos Zoulas [Thu, 5 Nov 2015 18:47:16 +0000 (18:47 +0000)]
restrict fortran

9 years agoreverse printing order so that the current entry can gain mime and ext
Christos Zoulas [Thu, 5 Nov 2015 18:20:46 +0000 (18:20 +0000)]
reverse printing order so that the current entry can gain mime and ext

9 years agoadd AUXV section processing (Jan Kaluza)
Christos Zoulas [Thu, 5 Nov 2015 16:58:31 +0000 (16:58 +0000)]
add AUXV section processing (Jan Kaluza)

9 years agomention compression fix.
Christos Zoulas [Thu, 5 Nov 2015 16:22:25 +0000 (16:22 +0000)]
mention compression fix.

9 years agoPR/492: Fix error with magic_buffer and compression.
Christos Zoulas [Thu, 5 Nov 2015 16:21:06 +0000 (16:21 +0000)]
PR/492: Fix error with magic_buffer and compression.

9 years agoadd mime and extensions for sqlite3 related magic (Joerg Jenderek)
Christos Zoulas [Wed, 4 Nov 2015 01:02:02 +0000 (01:02 +0000)]
add mime and extensions for sqlite3 related magic (Joerg Jenderek)

9 years agoallow ? in apple creator/type magic
Christos Zoulas [Sat, 31 Oct 2015 15:37:17 +0000 (15:37 +0000)]
allow ? in apple creator/type magic

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.