]>
granicus.if.org Git - file/log
Christos Zoulas [Fri, 12 Sep 2014 20:47:00 +0000 (20:47 +0000)]
use recursion to traverse the jpeg markers
Christos Zoulas [Fri, 12 Sep 2014 13:37:11 +0000 (13:37 +0000)]
PR/380: Add zlib support
Christos Zoulas [Thu, 11 Sep 2014 15:23:40 +0000 (15:23 +0000)]
PR/379: Ville Skyttae: Add qpress support from
Christos Zoulas [Thu, 11 Sep 2014 15:09:34 +0000 (15:09 +0000)]
PR/378: don't print stuff, breaks all MP3 files.
Christos Zoulas [Thu, 11 Sep 2014 12:08:52 +0000 (12:08 +0000)]
remove duplicate assignment.
Christos Zoulas [Wed, 10 Sep 2014 18:41:51 +0000 (18:41 +0000)]
don't use setlocale(3); it is not thread-safe.
Christos Zoulas [Wed, 3 Sep 2014 13:34:16 +0000 (13:34 +0000)]
Apple HFS changes from Joerg Jenderek
Christos Zoulas [Sat, 30 Aug 2014 15:30:11 +0000 (15:30 +0000)]
PR/372: Fix incorrect change made for PR/342: We should not increment
magindex, if it is not a continuation.
Christos Zoulas [Sat, 30 Aug 2014 10:20:20 +0000 (10:20 +0000)]
add more "ftyp"es.
Christos Zoulas [Sat, 30 Aug 2014 10:19:54 +0000 (10:19 +0000)]
Be more strict about extra string parsing, and always report errors.
Christos Zoulas [Sat, 30 Aug 2014 08:34:17 +0000 (08:34 +0000)]
PR/376: Fix typos.
Christos Zoulas [Wed, 27 Aug 2014 13:00:37 +0000 (13:00 +0000)]
fix mime for cdf encryped files.
Christos Zoulas [Wed, 27 Aug 2014 07:02:36 +0000 (07:02 +0000)]
add encrypted cdf documents
Christos Zoulas [Wed, 27 Aug 2014 06:59:35 +0000 (06:59 +0000)]
recognize encrypted documents.
Christos Zoulas [Tue, 19 Aug 2014 14:18:04 +0000 (14:18 +0000)]
new gdb magic from Petr Gajdos
Christos Zoulas [Sun, 17 Aug 2014 13:48:16 +0000 (13:48 +0000)]
remove duplicate level information
Christos Zoulas [Sun, 17 Aug 2014 13:47:59 +0000 (13:47 +0000)]
remove dup
Christos Zoulas [Sun, 17 Aug 2014 12:58:54 +0000 (12:58 +0000)]
new magic for RSX-11 filesystems.
Christos Zoulas [Sat, 16 Aug 2014 16:07:12 +0000 (16:07 +0000)]
floppy related fixes from Joerg Jenderek
Christos Zoulas [Sat, 16 Aug 2014 10:43:28 +0000 (10:43 +0000)]
- hack to make entry print something so that it is accepted; what should
we do instead?
- fix overflowed constant
From Joerg Jenderek
Christos Zoulas [Sat, 16 Aug 2014 10:42:17 +0000 (10:42 +0000)]
remove dup ghost (Joerg Jenderek)
Christos Zoulas [Fri, 8 Aug 2014 07:09:59 +0000 (07:09 +0000)]
ISO fixes from Joerg Jenderek
Christos Zoulas [Thu, 7 Aug 2014 09:38:35 +0000 (09:38 +0000)]
Prevent wrap around (Remi Collet at redhat)
Christos Zoulas [Tue, 5 Aug 2014 07:38:45 +0000 (07:38 +0000)]
PR/360: Andreas Koehler: Escape regex properly.
Christos Zoulas [Tue, 5 Aug 2014 07:32:31 +0000 (07:32 +0000)]
PR/362: Bill: Fix incorrect JPEG SOFn parsing.
Christos Zoulas [Mon, 4 Aug 2014 06:48:22 +0000 (06:48 +0000)]
- fix so that apprentice succeeds
- simplify unneeded cast
Christos Zoulas [Mon, 4 Aug 2014 06:26:16 +0000 (06:26 +0000)]
PR/364: Add GRIB data
Christos Zoulas [Mon, 4 Aug 2014 06:21:30 +0000 (06:21 +0000)]
PR/365: Jan Kaluza: Add support for glibc locale archives.
Christos Zoulas [Mon, 4 Aug 2014 06:19:44 +0000 (06:19 +0000)]
PR/367: Brooks Davis: Add magic_load_buffers to provide a means to load the
magic database on environments that have no direct access to the filesystem.
Christos Zoulas [Mon, 4 Aug 2014 06:00:36 +0000 (06:00 +0000)]
PR/369: Matthieu CASTET: Add android sparse images.
Christos Zoulas [Mon, 4 Aug 2014 05:58:40 +0000 (05:58 +0000)]
PR/371: Benedikt Morbach: Add python 3.4 compiled magic
Christos Zoulas [Sun, 3 Aug 2014 07:31:47 +0000 (07:31 +0000)]
bump OS/BS MBR and remove leading comma since nothing was printed before it.
Restores behavior with 5.09
Christos Zoulas [Thu, 24 Jul 2014 19:36:17 +0000 (19:36 +0000)]
new change
Christos Zoulas [Thu, 24 Jul 2014 19:35:39 +0000 (19:35 +0000)]
Add thumbs.db parsing support.
Reuben Thomas [Mon, 14 Jul 2014 14:21:33 +0000 (14:21 +0000)]
Comment out too-sensitive Pascal magic
Christos Zoulas [Sun, 13 Jul 2014 13:50:35 +0000 (13:50 +0000)]
new nec-88 magic
Reuben Thomas [Mon, 30 Jun 2014 14:31:20 +0000 (14:31 +0000)]
Add test data for FIT map from Francis Irving (bug #358)
Christos Zoulas [Thu, 26 Jun 2014 12:53:36 +0000 (12:53 +0000)]
Fix warnings (Xin Li)
Christos Zoulas [Thu, 19 Jun 2014 17:17:58 +0000 (17:17 +0000)]
UBI byteorder consistency.
Christos Zoulas [Mon, 16 Jun 2014 16:56:57 +0000 (16:56 +0000)]
better PIT file recognition (Joerg Jenderek)
Christos Zoulas [Thu, 12 Jun 2014 16:33:08 +0000 (16:33 +0000)]
Adjust test result
Christos Zoulas [Thu, 12 Jun 2014 16:28:01 +0000 (16:28 +0000)]
Welcome to 5.19
Christos Zoulas [Thu, 12 Jun 2014 13:52:48 +0000 (13:52 +0000)]
Add new elf machines (Branko Dreven)
Christos Zoulas [Mon, 9 Jun 2014 13:05:57 +0000 (13:05 +0000)]
More bugs
Christos Zoulas [Mon, 9 Jun 2014 13:04:37 +0000 (13:04 +0000)]
Add missing check offset test (Francisco Alonso, Jan Kaluza at RedHat)
Christos Zoulas [Wed, 4 Jun 2014 17:36:34 +0000 (17:36 +0000)]
Correctly compute the truncated pascal string size (Francisco Alonso and
Jan Kaluza at RedHat)
Christos Zoulas [Wed, 4 Jun 2014 17:26:07 +0000 (17:26 +0000)]
Use the proper sector size when checking stream offsets (Francisco Alonso and
Jan Kaluza at RedHat)
Christos Zoulas [Wed, 4 Jun 2014 17:23:19 +0000 (17:23 +0000)]
Fix incorrect bounds check for sector count. (Francisco Alonso and Jan Kaluza
at RedHat)
Christos Zoulas [Tue, 3 Jun 2014 20:40:31 +0000 (20:40 +0000)]
remove stray g.
Christos Zoulas [Tue, 3 Jun 2014 19:17:27 +0000 (19:17 +0000)]
PR/356: Spelling fixes
Christos Zoulas [Tue, 3 Jun 2014 19:15:58 +0000 (19:15 +0000)]
PR/355: use vnd.debian.binary-package mime type.
Christos Zoulas [Tue, 3 Jun 2014 19:14:46 +0000 (19:14 +0000)]
PR/357: flake8 warning cleanups
Christos Zoulas [Tue, 3 Jun 2014 19:01:34 +0000 (19:01 +0000)]
* Enforce limit of 8K on regex searches that have no limits
* Allow the l modifier for regex to mean line count. Default
to byte count. If line count is specified, assume a max
of 80 characters per line to limit the byte count.
* Don't allow conversions to be used for dates, allowing
the mask field to be used as an offset.
* Bump the version of the magic format so that regex changes
are visible.
Christos Zoulas [Tue, 3 Jun 2014 18:22:34 +0000 (18:22 +0000)]
Add map
Christos Zoulas [Tue, 3 Jun 2014 18:22:25 +0000 (18:22 +0000)]
PR/358: Add .FIT map data.
Christos Zoulas [Tue, 3 Jun 2014 17:36:13 +0000 (17:36 +0000)]
remove line number mention in regex. We don't want to scan binary files
that don't have \n's forever, so make the limit be the number of bytes.
Christos Zoulas [Tue, 3 Jun 2014 01:40:24 +0000 (01:40 +0000)]
Add norton guide files (Joerg Jenderek)
Christos Zoulas [Mon, 2 Jun 2014 19:27:54 +0000 (19:27 +0000)]
remove l modifier
Christos Zoulas [Mon, 2 Jun 2014 17:53:45 +0000 (17:53 +0000)]
Use more the dos filename function (Joerg Jenderek)
Christos Zoulas [Mon, 2 Jun 2014 17:49:48 +0000 (17:49 +0000)]
Patch for acronis (Joerg Jenderek)
Christos Zoulas [Mon, 2 Jun 2014 17:48:56 +0000 (17:48 +0000)]
update from Joerg Jenderek
Christos Zoulas [Sun, 1 Jun 2014 22:47:52 +0000 (22:47 +0000)]
fix some more MBR misidentifications (Joerg Jenderek)
Christos Zoulas [Sun, 1 Jun 2014 19:15:26 +0000 (19:15 +0000)]
Symantek GHOST magic (Joerg Jenderek)
Christos Zoulas [Sun, 1 Jun 2014 19:14:42 +0000 (19:14 +0000)]
Fix some Dyalog APL magic that does not make sense (Joerg Jenderek)
Christos Zoulas [Sun, 1 Jun 2014 19:13:54 +0000 (19:13 +0000)]
Fix the strength of DOS/MBR (Joerg Jenderek)
Christos Zoulas [Fri, 30 May 2014 16:52:20 +0000 (16:52 +0000)]
document regex limit.
Christos Zoulas [Fri, 30 May 2014 16:51:23 +0000 (16:51 +0000)]
Update regex recommendation.
Christos Zoulas [Fri, 30 May 2014 16:48:44 +0000 (16:48 +0000)]
Limit regex search for BEGIN to the first 4K of the file.
Christos Zoulas [Fri, 30 May 2014 16:47:44 +0000 (16:47 +0000)]
If requested, limit search length.
Christos Zoulas [Fri, 30 May 2014 15:07:02 +0000 (15:07 +0000)]
recognize nonorton ghost files. Joerg Jenderek
Christos Zoulas [Wed, 28 May 2014 20:33:59 +0000 (20:33 +0000)]
- fix non-ascii.
- mention recent changes
Christos Zoulas [Wed, 28 May 2014 19:52:36 +0000 (19:52 +0000)]
further optimize awk by not looking for the BEGIN regex until we found the
BEGIN (Jan Kaluza)
Christos Zoulas [Wed, 28 May 2014 19:50:41 +0000 (19:50 +0000)]
fix endianness problem.
Christos Zoulas [Wed, 21 May 2014 13:04:38 +0000 (13:04 +0000)]
CVE-2014-0207: Prevent 0 element vectors and vectors longer than the number
of properties from accessing random memory.
Christos Zoulas [Tue, 20 May 2014 20:10:17 +0000 (20:10 +0000)]
add linux device tree.
Christos Zoulas [Thu, 15 May 2014 01:24:58 +0000 (01:24 +0000)]
PR/343: dosexec mime broken
Christos Zoulas [Wed, 14 May 2014 23:32:30 +0000 (23:32 +0000)]
PR/354: Fix stray ^M's
Christos Zoulas [Wed, 14 May 2014 23:30:28 +0000 (23:30 +0000)]
PR/354: Encoding irregularities.
Christos Zoulas [Wed, 14 May 2014 23:22:48 +0000 (23:22 +0000)]
PR/352: Support for Hangul (Korean) Word Processor 5.x Files (*.hwp)
Christos Zoulas [Wed, 14 May 2014 23:15:42 +0000 (23:15 +0000)]
PR/347: Windows patches.
Christos Zoulas [Wed, 14 May 2014 23:09:21 +0000 (23:09 +0000)]
remove unused.
Christos Zoulas [Wed, 14 May 2014 23:04:59 +0000 (23:04 +0000)]
PR/346: New sereal magic
Christos Zoulas [Tue, 13 May 2014 16:48:12 +0000 (16:48 +0000)]
PR/353: Dagobert Michelsen: Add "file.h" to get proper headers for intptr_t
Christos Zoulas [Tue, 13 May 2014 16:44:24 +0000 (16:44 +0000)]
Roman I Khimov:
access() can't handle NULL as first argument and we can end up
calling it this way if inname is NULL in file_or_fd() and fd is a
pipe. Issue spotted by clang static analysis.
Christos Zoulas [Tue, 13 May 2014 16:42:17 +0000 (16:42 +0000)]
Roman I Khimov:
Remove useless assignments found by clang static analysis.
Christos Zoulas [Tue, 13 May 2014 16:41:06 +0000 (16:41 +0000)]
Roman I Khimov:
If cdf_count_chain() is called with sid < 0, then we end up returning
zero length, which in turn leads to calloc() calls for 0 bytes in
cdf_read_long_sector_chain(), cdf_read_short_sector_chain() and
cdf_read_ssat(). Depending on calloc() implementation we can end
up returning -1 or 0 from those. As negative sid is probably wrong
case anyway, it might be better to always return -1.
Issue found by clang static analysis.
Christos Zoulas [Tue, 13 May 2014 16:38:23 +0000 (16:38 +0000)]
Roman I Khimov:
If file_reset() fails for some reason, we pass uninitialized sb to
close_and_restore() which uses it for utimes().
Issue spotted by clang static analysis.
Christos Zoulas [Wed, 7 May 2014 21:26:06 +0000 (21:26 +0000)]
Fix coredump in clang caused by missing array terminator element.
Christos Zoulas [Wed, 7 May 2014 21:25:41 +0000 (21:25 +0000)]
merge dup VDI
move virtual images from msdos to virtual
Christos Zoulas [Wed, 7 May 2014 19:36:59 +0000 (19:36 +0000)]
more lz4
Christos Zoulas [Wed, 7 May 2014 10:13:12 +0000 (10:13 +0000)]
Fix for uninialized title (Jan Kaluza)
Christos Zoulas [Tue, 6 May 2014 18:20:39 +0000 (18:20 +0000)]
Remove loop that kept reading the same offset (Jan Kaluza)
Christos Zoulas [Tue, 6 May 2014 16:08:32 +0000 (16:08 +0000)]
_POSIX2_RE_DUP_MAX is 255 on most systems.
Christos Zoulas [Tue, 6 May 2014 16:07:23 +0000 (16:07 +0000)]
Compile regex during the magic compilation process so that we catch bad
regular expressions early.
Christos Zoulas [Mon, 5 May 2014 20:53:10 +0000 (20:53 +0000)]
factor out all the duplicated regex code into a wrapper.
Christos Zoulas [Mon, 5 May 2014 16:11:21 +0000 (16:11 +0000)]
Apply patches from file-CVE-2012-1571.patch
From Francisco Alonso Espejo:
file < 5.18/git version can be made to crash when checking some
corrupt CDF files (Using an invalid cdf_read_short_sector size)
The problem I found here, is that in most situations (if
h_short_sec_size_p2 > 8) because the blocksize is 512 and normal
values are 06 which means reading 64 bytes.As long as the check
for the block size copy is not checked properly (there's an assert
that makes wrong/invalid assumptions)
Christos Zoulas [Sun, 4 May 2014 18:57:34 +0000 (18:57 +0000)]
PR/351: Fix compilation of empty files.
Christos Zoulas [Fri, 2 May 2014 02:25:10 +0000 (02:25 +0000)]
Code to detect gnu attributes, and start of parser.
Christos Zoulas [Fri, 2 May 2014 00:26:49 +0000 (00:26 +0000)]
From Christoph Biedl:
Debian bug #745546 et al: At the moment, the magic for "Macromedia
Flash data" and "Macromedia Flash Video" is just three printable
characters, no wonder this results in mis-detection of text files.
"Flash Video" is easy to fix, according to Wikipedia the forth
octet must have value 1.
"Flash data" is more work. The length information at offset 4 must be
non-zero, and the version number at offset 3 must be sound. According
to the pdf document, the latest version is 19, I found a few examples
in the lower twenties, so 32 should be a sane limit for the time
being. There are however quite a few files with version 255, and since
the virus scanners created an alert for all of them, they are now
reported as "suspicious".
Christos Zoulas [Wed, 30 Apr 2014 21:41:01 +0000 (21:41 +0000)]
Kill %h %hh and %l modifiers for bytes, shorts, and longs respectively.
Use nothing, for all types except quads which need %ll