]>
granicus.if.org Git - file/log
Christos Zoulas [Thu, 9 May 2019 18:58:57 +0000 (18:58 +0000)]
Arrange to print separators if we keep going.
Christos Zoulas [Thu, 9 May 2019 18:58:02 +0000 (18:58 +0000)]
bump strength to beat "zip"
Christos Zoulas [Thu, 9 May 2019 16:24:36 +0000 (16:24 +0000)]
Add numpy, sort. from tobbez
Christos Zoulas [Wed, 8 May 2019 18:02:45 +0000 (18:02 +0000)]
PR/78: jpcima: Improve BambooTracker magic
Christos Zoulas [Tue, 7 May 2019 02:29:04 +0000 (02:29 +0000)]
Document recent changes.
Christos Zoulas [Tue, 7 May 2019 02:27:11 +0000 (02:27 +0000)]
From: Denys Vlasenko
Reduce amount of stat(2) calls when processing elf files;
propagate fstat result deeper into callees.
Christos Zoulas [Tue, 7 May 2019 02:20:27 +0000 (02:20 +0000)]
From: Denys Vlasenko
Use sigaction(2) to save and restore SIGPIPE instead of signal(3)
because signal(3) does not have reliable semantics with respect to
SA_RESTART across all platforms: The original BSD semantics are to
always set SA_RESTART whereas the "new" BSD semantics were to keep
what siginterrupt(2) did.
And two missed optimizations:
= The saving/restoring of SIGPIPE is done even if file turns out
to be *not* compressed, and no decompressor is called.
= If old signal was already SIG_IGN, no need to restore it.
This causes, for example, ~160000 unnecessary calls
to rt_sigaction() when rpmbuild generates kernel rpms.
Finally we can't share the old and new sigaction pointer because
of the "restrict" semantics.
Christos Zoulas [Mon, 6 May 2019 21:24:36 +0000 (21:24 +0000)]
Mention new fixes
Christos Zoulas [Mon, 6 May 2019 21:23:38 +0000 (21:23 +0000)]
PR/77: Handle continuations properly in ascmagic when printing mime.
Christos Zoulas [Mon, 6 May 2019 21:22:40 +0000 (21:22 +0000)]
- remove commented out lines
- use the new file_separator
Christos Zoulas [Mon, 6 May 2019 21:22:13 +0000 (21:22 +0000)]
- Add a file_separator function that prints the separator.
- Don't append a separator after ascmagic since this is the last test.
Christos Zoulas [Sun, 5 May 2019 19:27:20 +0000 (19:27 +0000)]
mention new fix
Christos Zoulas [Sun, 5 May 2019 19:25:23 +0000 (19:25 +0000)]
From Denys Vlasenko:
Tools such as rpmdiff and rpmbuild call libmagic from processes
with large mapped virtual sizes (gigabytes). In this case,
vfork is much faster than fork (sometimes x100 faster).
Christos Zoulas [Sun, 5 May 2019 19:22:36 +0000 (19:22 +0000)]
From Denys Vlasenko:
This makes more clear what fds are closed when, when you read
caller function code.
This is a preparation to not clobber fdp[] in the child, so that
we can switch to using vfork() in a later patch.
Add ///BUG comments:
(*) we wait() in writechild, thus, if write() in writing child blocks
waiting for decompressor to consume data, and decompressor blocks waiting
ofr _us_ to read its data, we would deadlock.
(*) we can't know that the child we spawned is the only running child
of the process. We should use waitpid() to wait specifically for
the child we need.
Will fix in patch 4.
Christos Zoulas [Sun, 5 May 2019 19:20:23 +0000 (19:20 +0000)]
From Denys Vlasenko:
Use this more readable idiom:
pid = fork();
if (error) die;
if (child) { /* child */ ...; exit; }
/* parent */
This gets rid of error path sitting right in the middle of normal paths,
gets rid of /*NOTREACHED*/'s,
and allows (usually large) parent code path to be less indented.
Christos Zoulas [Sun, 5 May 2019 17:03:41 +0000 (17:03 +0000)]
new pcap type from fxlb
Christos Zoulas [Sun, 5 May 2019 16:44:04 +0000 (16:44 +0000)]
Add GemDOS fonts (Joerg Jenderek)
Christos Zoulas [Wed, 1 May 2019 17:55:25 +0000 (17:55 +0000)]
Add "Windows System Deployment Image" from Joerg Jenderek
Christos Zoulas [Tue, 30 Apr 2019 04:02:04 +0000 (04:02 +0000)]
more garmin map detection from Joerg Jenderek
Christos Zoulas [Tue, 30 Apr 2019 04:01:40 +0000 (04:01 +0000)]
one more https
Christos Zoulas [Tue, 23 Apr 2019 18:59:27 +0000 (18:59 +0000)]
Although we are doing the right autoconf magic, MAJOR_IN_SYSMACROS is not
defined, so we include it anyways if it exists in order to avoid warnings.
Christos Zoulas [Tue, 23 Apr 2019 15:43:27 +0000 (15:43 +0000)]
improve ntfs filesystem detection (Joerg Jenderek)
Christos Zoulas [Fri, 19 Apr 2019 00:42:27 +0000 (00:42 +0000)]
use https where supported (Daniel Kahn Gillmor)
Christos Zoulas [Fri, 19 Apr 2019 00:40:47 +0000 (00:40 +0000)]
Add rpmsg (rights protected messages) from Daniel Kahn Gillmore
Christos Zoulas [Fri, 19 Apr 2019 00:35:18 +0000 (00:35 +0000)]
improve gzip detection (extensions) Joerg Jenderek
Christos Zoulas [Mon, 15 Apr 2019 16:49:53 +0000 (16:49 +0000)]
CID 337782: Consistently return -1 if file_printf() fails.
Christos Zoulas [Mon, 15 Apr 2019 16:49:29 +0000 (16:49 +0000)]
CID 337783: Avoid passing -1 to read
Christos Zoulas [Mon, 15 Apr 2019 16:48:41 +0000 (16:48 +0000)]
CID 337784: cast to clarify sign extension
Christos Zoulas [Thu, 11 Apr 2019 11:52:26 +0000 (11:52 +0000)]
fix --enable-zlib again
Christos Zoulas [Tue, 9 Apr 2019 18:34:15 +0000 (18:34 +0000)]
PR/73: enkeli: Require the actual central directory record, not just the
end of central directory for zip.
Christos Zoulas [Tue, 9 Apr 2019 18:28:25 +0000 (18:28 +0000)]
PR/76: mohd-akram: Fix python 3.7 magic
Christos Zoulas [Mon, 8 Apr 2019 05:56:48 +0000 (05:56 +0000)]
XBMC/KODI additions from Joerg Jenderek
Christos Zoulas [Sun, 7 Apr 2019 18:26:17 +0000 (18:26 +0000)]
PR/72: tduffy: change non-ascii text in comment
Christos Zoulas [Sun, 7 Apr 2019 18:04:58 +0000 (18:04 +0000)]
PR/75: wylda: --enable-zlib doesn't
Christos Zoulas [Wed, 3 Apr 2019 11:34:01 +0000 (11:34 +0000)]
FIx compilation
Christos Zoulas [Sat, 30 Mar 2019 02:08:03 +0000 (02:08 +0000)]
xar improvements from joerg jenderek
Christos Zoulas [Thu, 28 Mar 2019 20:54:57 +0000 (20:54 +0000)]
remove strtoul check (petk)
Christos Zoulas [Thu, 28 Mar 2019 20:54:03 +0000 (20:54 +0000)]
remove setlocale check (petk)
Christos Zoulas [Thu, 28 Mar 2019 20:52:43 +0000 (20:52 +0000)]
remove strerror check (petk)
Christos Zoulas [Thu, 28 Mar 2019 12:36:01 +0000 (12:36 +0000)]
Add edid detection from Mubashshir
Christos Zoulas [Tue, 26 Mar 2019 12:46:35 +0000 (12:46 +0000)]
Don't call fmtcheck if we don't have any formatting chars.
Christos Zoulas [Wed, 13 Mar 2019 02:57:20 +0000 (02:57 +0000)]
move WIM from msdos to windows and improve it (Joerg Jenderek)
Christos Zoulas [Wed, 13 Mar 2019 02:55:07 +0000 (02:55 +0000)]
Add more extensions (Joerg Jenderek)
Christos Zoulas [Tue, 12 Mar 2019 20:43:05 +0000 (20:43 +0000)]
cleanup __arraycount
Christos Zoulas [Fri, 8 Mar 2019 13:38:15 +0000 (13:38 +0000)]
remove double an (Masanobu Saitoh)
Christos Zoulas [Thu, 7 Mar 2019 17:21:54 +0000 (17:21 +0000)]
PR/70: v3l0c1r4pt0r: Add AIX backup and package format detection
Christos Zoulas [Sun, 3 Mar 2019 17:13:34 +0000 (17:13 +0000)]
More sniffer packet types from fxlb
Christos Zoulas [Sun, 3 Mar 2019 17:11:28 +0000 (17:11 +0000)]
Improve detection of debian archives (Joerg Jenderek)
Christos Zoulas [Sun, 3 Mar 2019 14:59:41 +0000 (14:59 +0000)]
oops forgot the default entry.
Christos Zoulas [Sun, 3 Mar 2019 02:44:32 +0000 (02:44 +0000)]
- stdint.h was checked twice (duplicated check removed)
- stddef.h and limits.h are part of the C89+ standard (symbols in code
have already been fixed and removed).
(Peter Kokot)
Christos Zoulas [Sun, 3 Mar 2019 02:35:32 +0000 (02:35 +0000)]
Print linktype value default match
Moreover, c`apture length is unsigned, thus use %u.
(fxlb)
Christos Zoulas [Sun, 3 Mar 2019 02:32:40 +0000 (02:32 +0000)]
remove duplicate line (chefe)
Christos Zoulas [Sun, 3 Mar 2019 02:31:17 +0000 (02:31 +0000)]
Autoconf's default includes (4th argument of AC_CHECK_MEMBERS) don't
include <time.h> and therefore the struct member didn't get recognized.
(Peter Kokot)
Christos Zoulas [Sat, 2 Mar 2019 01:08:10 +0000 (01:08 +0000)]
PR/69: Only consider arrays > 1 element when quickly figuring out if a
file is JSON.
Christos Zoulas [Thu, 28 Feb 2019 12:52:56 +0000 (12:52 +0000)]
Simplify and always return if not found (found by OSS-fuzz)
Christos Zoulas [Thu, 28 Feb 2019 00:53:41 +0000 (00:53 +0000)]
fix syntax
Christos Zoulas [Thu, 28 Feb 2019 00:52:57 +0000 (00:52 +0000)]
More and fixes to existing apple formats from Greg Wildman
Christos Zoulas [Wed, 27 Feb 2019 16:54:27 +0000 (16:54 +0000)]
recent fixes
Christos Zoulas [Wed, 27 Feb 2019 16:52:23 +0000 (16:52 +0000)]
Use memmem to speed up searches if available (Michael Schroeder)
Christos Zoulas [Wed, 27 Feb 2019 16:46:23 +0000 (16:46 +0000)]
Prefix regex magic with search for keywords first for efficiency
(Michael Schroeder)
Christos Zoulas [Sun, 24 Feb 2019 18:12:04 +0000 (18:12 +0000)]
Allow madvise too, since it is used in some malloc implementations
(Leandro Pereira)
Christos Zoulas [Sat, 23 Feb 2019 21:54:05 +0000 (21:54 +0000)]
cast to unsigned first to appease ubsan (oss-fuzz)
Christos Zoulas [Sat, 23 Feb 2019 01:16:37 +0000 (01:16 +0000)]
Added Microsoft Xbox 360 XEX executable magic. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:36 +0000 (01:16 +0000)]
Xbox executable: Explicitly specify '.l' for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:35 +0000 (01:16 +0000)]
Xbox executables: Show the game title and (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:34 +0000 (01:16 +0000)]
Added Microsoft Xbox XPR0 textures. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:33 +0000 (01:16 +0000)]
Added Nintendo 3DS BCWAV format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:32 +0000 (01:16 +0000)]
Correctly escape the '^' for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:31 +0000 (01:16 +0000)]
Added Nintendo Wii U BFSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:30 +0000 (01:16 +0000)]
Fixed MIME type and file extension for BCSTM. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:29 +0000 (01:16 +0000)]
Added Nintendo 3DS BCSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:28 +0000 (01:16 +0000)]
Added Nintendo Wii BRSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:27 +0000 (01:16 +0000)]
ADX: Fix AHX format ID; added AHX (Dreamcast). (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:26 +0000 (01:16 +0000)]
Added Atari 8-bit SAP format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:25 +0000 (01:16 +0000)]
MIME type and extension for VGM must be after (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:24 +0000 (01:16 +0000)]
Added MIME types for VGM and PSF. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:23 +0000 (01:16 +0000)]
Added Portable Sound Format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:22 +0000 (01:16 +0000)]
Added VGM 1.61 and 1.71 sound chips. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:21 +0000 (01:16 +0000)]
Missing '>' in PVR (Xbox) with GBIX. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:20 +0000 (01:16 +0000)]
Added PowerVR 3.0 textures. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:19 +0000 (01:16 +0000)]
Added unofficial MIME types for Wii and (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:18 +0000 (01:16 +0000)]
Prevent conflicts with CRI ADX and Targa images. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:17 +0000 (01:16 +0000)]
Added a MIME type and default file extension for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:16 +0000 (01:16 +0000)]
Added Scaleform video. (*.usm) (GerbiSoft)
Christos Zoulas [Wed, 20 Feb 2019 16:15:47 +0000 (16:15 +0000)]
fix casts and bounds check (found by oss-fuzz)
Christos Zoulas [Wed, 20 Feb 2019 15:17:11 +0000 (15:17 +0000)]
update version
Christos Zoulas [Wed, 20 Feb 2019 15:07:44 +0000 (15:07 +0000)]
make empty zip beat regular zip again.
Christos Zoulas [Wed, 20 Feb 2019 02:35:27 +0000 (02:35 +0000)]
use c++ casts everywhere.
Christos Zoulas [Tue, 19 Feb 2019 20:34:57 +0000 (20:34 +0000)]
mention recent fixes
Christos Zoulas [Tue, 19 Feb 2019 20:34:42 +0000 (20:34 +0000)]
update comment
Christos Zoulas [Tue, 19 Feb 2019 20:30:35 +0000 (20:30 +0000)]
PR/61: tmc: Add UCS-32 built-in detection.
Christos Zoulas [Mon, 18 Feb 2019 18:59:25 +0000 (18:59 +0000)]
Mention that the apple filetype/creator is only available for entries that
have it (Kamil Dudka)
Christos Zoulas [Mon, 18 Feb 2019 17:58:50 +0000 (17:58 +0000)]
fix type
Christos Zoulas [Mon, 18 Feb 2019 17:46:56 +0000 (17:46 +0000)]
PR/62: spinpx: limit size of file_printable.
Christos Zoulas [Mon, 18 Feb 2019 17:30:41 +0000 (17:30 +0000)]
PR/62: spinpx: Avoid non-nul-terminated string read.
Christos Zoulas [Mon, 18 Feb 2019 16:53:11 +0000 (16:53 +0000)]
PR/59: magicus: Add java module and image magic.
Christos Zoulas [Sat, 16 Feb 2019 14:01:25 +0000 (14:01 +0000)]
Add Foxit (pdf reader) add on format (Joerg Jenderek)
Christos Zoulas [Thu, 14 Feb 2019 00:25:59 +0000 (00:25 +0000)]
Fix indirect offset overflow calculation (B. Watson)
Christos Zoulas [Sat, 9 Feb 2019 17:56:01 +0000 (17:56 +0000)]
new remarkable format from ax3l at github
Christos Zoulas [Sat, 9 Feb 2019 17:52:18 +0000 (17:52 +0000)]
update location and name from fxlb at github