]> granicus.if.org Git - file/log
file
5 years agoArrange to print separators if we keep going.
Christos Zoulas [Thu, 9 May 2019 18:58:57 +0000 (18:58 +0000)]
Arrange to print separators if we keep going.

5 years agobump strength to beat "zip"
Christos Zoulas [Thu, 9 May 2019 18:58:02 +0000 (18:58 +0000)]
bump strength to beat "zip"

5 years agoAdd numpy, sort. from tobbez
Christos Zoulas [Thu, 9 May 2019 16:24:36 +0000 (16:24 +0000)]
Add numpy, sort. from tobbez

5 years agoPR/78: jpcima: Improve BambooTracker magic
Christos Zoulas [Wed, 8 May 2019 18:02:45 +0000 (18:02 +0000)]
PR/78: jpcima: Improve BambooTracker magic

5 years agoDocument recent changes.
Christos Zoulas [Tue, 7 May 2019 02:29:04 +0000 (02:29 +0000)]
Document recent changes.

5 years agoFrom: Denys Vlasenko
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.

5 years agoFrom: Denys Vlasenko
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.

5 years agoMention new fixes
Christos Zoulas [Mon, 6 May 2019 21:24:36 +0000 (21:24 +0000)]
Mention new fixes

5 years agoPR/77: Handle continuations properly in ascmagic when printing mime.
Christos Zoulas [Mon, 6 May 2019 21:23:38 +0000 (21:23 +0000)]
PR/77: Handle continuations properly in ascmagic when printing mime.

5 years ago- remove commented out lines
Christos Zoulas [Mon, 6 May 2019 21:22:40 +0000 (21:22 +0000)]
- remove commented out lines
- use the new file_separator

5 years ago- Add a file_separator function that prints the 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.

5 years agomention new fix
Christos Zoulas [Sun, 5 May 2019 19:27:20 +0000 (19:27 +0000)]
mention new fix

5 years agoFrom Denys Vlasenko:
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).

5 years agoFrom Denys Vlasenko:
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.

5 years agoFrom Denys Vlasenko:
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.

5 years agonew pcap type from fxlb
Christos Zoulas [Sun, 5 May 2019 17:03:41 +0000 (17:03 +0000)]
new pcap type from fxlb

5 years agoAdd GemDOS fonts (Joerg Jenderek)
Christos Zoulas [Sun, 5 May 2019 16:44:04 +0000 (16:44 +0000)]
Add GemDOS fonts (Joerg Jenderek)

5 years agoAdd "Windows System Deployment Image" from Joerg Jenderek
Christos Zoulas [Wed, 1 May 2019 17:55:25 +0000 (17:55 +0000)]
Add "Windows System Deployment Image" from Joerg Jenderek

5 years agomore garmin map detection from Joerg Jenderek
Christos Zoulas [Tue, 30 Apr 2019 04:02:04 +0000 (04:02 +0000)]
more garmin map detection from Joerg Jenderek

5 years agoone more https
Christos Zoulas [Tue, 30 Apr 2019 04:01:40 +0000 (04:01 +0000)]
one more https

5 years agoAlthough we are doing the right autoconf magic, MAJOR_IN_SYSMACROS is not
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.

5 years agoimprove ntfs filesystem detection (Joerg Jenderek)
Christos Zoulas [Tue, 23 Apr 2019 15:43:27 +0000 (15:43 +0000)]
improve ntfs filesystem detection (Joerg Jenderek)

5 years agouse https where supported (Daniel Kahn Gillmor)
Christos Zoulas [Fri, 19 Apr 2019 00:42:27 +0000 (00:42 +0000)]
use https where supported (Daniel Kahn Gillmor)

5 years agoAdd rpmsg (rights protected messages) from Daniel Kahn Gillmore
Christos Zoulas [Fri, 19 Apr 2019 00:40:47 +0000 (00:40 +0000)]
Add rpmsg (rights protected messages) from Daniel Kahn Gillmore

5 years agoimprove gzip detection (extensions) Joerg Jenderek
Christos Zoulas [Fri, 19 Apr 2019 00:35:18 +0000 (00:35 +0000)]
improve gzip detection (extensions) Joerg Jenderek

5 years agoCID 337782: Consistently return -1 if file_printf() fails.
Christos Zoulas [Mon, 15 Apr 2019 16:49:53 +0000 (16:49 +0000)]
CID 337782: Consistently return -1 if file_printf() fails.

5 years agoCID 337783: Avoid passing -1 to read
Christos Zoulas [Mon, 15 Apr 2019 16:49:29 +0000 (16:49 +0000)]
CID 337783: Avoid passing -1 to read

5 years agoCID 337784: cast to clarify sign extension
Christos Zoulas [Mon, 15 Apr 2019 16:48:41 +0000 (16:48 +0000)]
CID 337784: cast to clarify sign extension

5 years agofix --enable-zlib again
Christos Zoulas [Thu, 11 Apr 2019 11:52:26 +0000 (11:52 +0000)]
fix --enable-zlib again

5 years agoPR/73: enkeli: Require the actual central directory record, not just the
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.

5 years agoPR/76: mohd-akram: Fix python 3.7 magic
Christos Zoulas [Tue, 9 Apr 2019 18:28:25 +0000 (18:28 +0000)]
PR/76: mohd-akram: Fix python 3.7 magic

5 years agoXBMC/KODI additions from Joerg Jenderek
Christos Zoulas [Mon, 8 Apr 2019 05:56:48 +0000 (05:56 +0000)]
XBMC/KODI additions from Joerg Jenderek

5 years agoPR/72: tduffy: change non-ascii text in comment
Christos Zoulas [Sun, 7 Apr 2019 18:26:17 +0000 (18:26 +0000)]
PR/72: tduffy: change non-ascii text in comment

5 years agoPR/75: wylda: --enable-zlib doesn't
Christos Zoulas [Sun, 7 Apr 2019 18:04:58 +0000 (18:04 +0000)]
PR/75: wylda: --enable-zlib doesn't

5 years agoFIx compilation
Christos Zoulas [Wed, 3 Apr 2019 11:34:01 +0000 (11:34 +0000)]
FIx compilation

5 years agoxar improvements from joerg jenderek
Christos Zoulas [Sat, 30 Mar 2019 02:08:03 +0000 (02:08 +0000)]
xar improvements from joerg jenderek

5 years agoremove strtoul check (petk)
Christos Zoulas [Thu, 28 Mar 2019 20:54:57 +0000 (20:54 +0000)]
remove strtoul check (petk)

5 years agoremove setlocale check (petk)
Christos Zoulas [Thu, 28 Mar 2019 20:54:03 +0000 (20:54 +0000)]
remove setlocale check (petk)

5 years agoremove strerror check (petk)
Christos Zoulas [Thu, 28 Mar 2019 20:52:43 +0000 (20:52 +0000)]
remove strerror check (petk)

5 years agoAdd edid detection from Mubashshir
Christos Zoulas [Thu, 28 Mar 2019 12:36:01 +0000 (12:36 +0000)]
Add edid detection from Mubashshir

5 years agoDon't call fmtcheck if we don't have any formatting chars.
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.

5 years agomove WIM from msdos to windows and improve it (Joerg Jenderek)
Christos Zoulas [Wed, 13 Mar 2019 02:57:20 +0000 (02:57 +0000)]
move WIM from msdos to windows and improve it (Joerg Jenderek)

5 years agoAdd more extensions (Joerg Jenderek)
Christos Zoulas [Wed, 13 Mar 2019 02:55:07 +0000 (02:55 +0000)]
Add more extensions (Joerg Jenderek)

5 years agocleanup __arraycount
Christos Zoulas [Tue, 12 Mar 2019 20:43:05 +0000 (20:43 +0000)]
cleanup __arraycount

5 years agoremove double an (Masanobu Saitoh)
Christos Zoulas [Fri, 8 Mar 2019 13:38:15 +0000 (13:38 +0000)]
remove double an (Masanobu Saitoh)

5 years agoPR/70: v3l0c1r4pt0r: Add AIX backup and package format detection
Christos Zoulas [Thu, 7 Mar 2019 17:21:54 +0000 (17:21 +0000)]
PR/70: v3l0c1r4pt0r: Add AIX backup and package format detection

5 years agoMore sniffer packet types from fxlb
Christos Zoulas [Sun, 3 Mar 2019 17:13:34 +0000 (17:13 +0000)]
More sniffer packet types from fxlb

5 years agoImprove detection of debian archives (Joerg Jenderek)
Christos Zoulas [Sun, 3 Mar 2019 17:11:28 +0000 (17:11 +0000)]
Improve detection of debian archives (Joerg Jenderek)

5 years agooops forgot the default entry.
Christos Zoulas [Sun, 3 Mar 2019 14:59:41 +0000 (14:59 +0000)]
oops forgot the default entry.

5 years ago- stdint.h was checked twice (duplicated check removed)
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)

5 years agoPrint linktype value default match
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)

5 years agoremove duplicate line (chefe)
Christos Zoulas [Sun, 3 Mar 2019 02:32:40 +0000 (02:32 +0000)]
remove duplicate line (chefe)

5 years agoAutoconf's default includes (4th argument of AC_CHECK_MEMBERS) don't
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)

5 years agoPR/69: Only consider arrays > 1 element when quickly figuring out if a
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.

5 years agoSimplify and always return if not found (found by OSS-fuzz)
Christos Zoulas [Thu, 28 Feb 2019 12:52:56 +0000 (12:52 +0000)]
Simplify and always return if not found (found by OSS-fuzz)

5 years agofix syntax
Christos Zoulas [Thu, 28 Feb 2019 00:53:41 +0000 (00:53 +0000)]
fix syntax

5 years agoMore and fixes to existing apple formats from Greg Wildman
Christos Zoulas [Thu, 28 Feb 2019 00:52:57 +0000 (00:52 +0000)]
More and fixes to existing apple formats from Greg Wildman

5 years agorecent fixes
Christos Zoulas [Wed, 27 Feb 2019 16:54:27 +0000 (16:54 +0000)]
recent fixes

5 years agoUse memmem to speed up searches if available (Michael Schroeder)
Christos Zoulas [Wed, 27 Feb 2019 16:52:23 +0000 (16:52 +0000)]
Use memmem to speed up searches if available (Michael Schroeder)

5 years agoPrefix regex magic with search for keywords first for efficiency
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)

5 years agoAllow madvise too, since it is used in some malloc implementations
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)

5 years agocast to unsigned first to appease ubsan (oss-fuzz)
Christos Zoulas [Sat, 23 Feb 2019 21:54:05 +0000 (21:54 +0000)]
cast to unsigned first to appease ubsan (oss-fuzz)

5 years agoAdded Microsoft Xbox 360 XEX executable magic. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:37 +0000 (01:16 +0000)]
Added Microsoft Xbox 360 XEX executable magic. (GerbiSoft)

5 years agoXbox executable: Explicitly specify '.l' for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:36 +0000 (01:16 +0000)]
Xbox executable: Explicitly specify '.l' for (GerbiSoft)

5 years agoXbox executables: Show the game title and (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:35 +0000 (01:16 +0000)]
Xbox executables: Show the game title and (GerbiSoft)

5 years agoAdded Microsoft Xbox XPR0 textures. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:34 +0000 (01:16 +0000)]
Added Microsoft Xbox XPR0 textures. (GerbiSoft)

5 years agoAdded Nintendo 3DS BCWAV format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:33 +0000 (01:16 +0000)]
Added Nintendo 3DS BCWAV format. (GerbiSoft)

5 years agoCorrectly escape the '^' for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:32 +0000 (01:16 +0000)]
Correctly escape the '^' for (GerbiSoft)

5 years agoAdded Nintendo Wii U BFSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:31 +0000 (01:16 +0000)]
Added Nintendo Wii U BFSTM format. (GerbiSoft)

5 years agoFixed MIME type and file extension for BCSTM. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:30 +0000 (01:16 +0000)]
Fixed MIME type and file extension for BCSTM. (GerbiSoft)

5 years agoAdded Nintendo 3DS BCSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:29 +0000 (01:16 +0000)]
Added Nintendo 3DS BCSTM format. (GerbiSoft)

5 years agoAdded Nintendo Wii BRSTM format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:28 +0000 (01:16 +0000)]
Added Nintendo Wii BRSTM format. (GerbiSoft)

5 years agoADX: Fix AHX format ID; added AHX (Dreamcast). (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:27 +0000 (01:16 +0000)]
ADX: Fix AHX format ID; added AHX (Dreamcast). (GerbiSoft)

5 years agoAdded Atari 8-bit SAP format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:26 +0000 (01:16 +0000)]
Added Atari 8-bit SAP format. (GerbiSoft)

5 years agoMIME type and extension for VGM must be after (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:25 +0000 (01:16 +0000)]
MIME type and extension for VGM must be after (GerbiSoft)

5 years agoAdded MIME types for VGM and PSF. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:24 +0000 (01:16 +0000)]
Added MIME types for VGM and PSF. (GerbiSoft)

5 years agoAdded Portable Sound Format. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:23 +0000 (01:16 +0000)]
Added Portable Sound Format. (GerbiSoft)

5 years agoAdded VGM 1.61 and 1.71 sound chips. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:22 +0000 (01:16 +0000)]
Added VGM 1.61 and 1.71 sound chips. (GerbiSoft)

5 years agoMissing '>' in PVR (Xbox) with GBIX. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:21 +0000 (01:16 +0000)]
Missing '>' in PVR (Xbox) with GBIX. (GerbiSoft)

5 years agoAdded PowerVR 3.0 textures. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:20 +0000 (01:16 +0000)]
Added PowerVR 3.0 textures. (GerbiSoft)

5 years agoAdded unofficial MIME types for Wii and (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:19 +0000 (01:16 +0000)]
Added unofficial MIME types for Wii and (GerbiSoft)

5 years agoPrevent conflicts with CRI ADX and Targa images. (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:18 +0000 (01:16 +0000)]
Prevent conflicts with CRI ADX and Targa images. (GerbiSoft)

5 years agoAdded a MIME type and default file extension for (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:17 +0000 (01:16 +0000)]
Added a MIME type and default file extension for (GerbiSoft)

5 years agoAdded Scaleform video. (*.usm) (GerbiSoft)
Christos Zoulas [Sat, 23 Feb 2019 01:16:16 +0000 (01:16 +0000)]
Added Scaleform video. (*.usm) (GerbiSoft)

5 years agofix casts and bounds check (found by oss-fuzz)
Christos Zoulas [Wed, 20 Feb 2019 16:15:47 +0000 (16:15 +0000)]
fix casts and bounds check (found by oss-fuzz)

5 years agoupdate version FILE5_36
Christos Zoulas [Wed, 20 Feb 2019 15:17:11 +0000 (15:17 +0000)]
update version

5 years agomake empty zip beat regular zip again.
Christos Zoulas [Wed, 20 Feb 2019 15:07:44 +0000 (15:07 +0000)]
make empty zip beat regular zip again.

5 years agouse c++ casts everywhere.
Christos Zoulas [Wed, 20 Feb 2019 02:35:27 +0000 (02:35 +0000)]
use c++ casts everywhere.

5 years agomention recent fixes
Christos Zoulas [Tue, 19 Feb 2019 20:34:57 +0000 (20:34 +0000)]
mention recent fixes

5 years agoupdate comment
Christos Zoulas [Tue, 19 Feb 2019 20:34:42 +0000 (20:34 +0000)]
update comment

5 years agoPR/61: tmc: Add UCS-32 built-in detection.
Christos Zoulas [Tue, 19 Feb 2019 20:30:35 +0000 (20:30 +0000)]
PR/61: tmc: Add UCS-32 built-in detection.

5 years agoMention that the apple filetype/creator is only available for entries that
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)

5 years agofix type
Christos Zoulas [Mon, 18 Feb 2019 17:58:50 +0000 (17:58 +0000)]
fix type

5 years agoPR/62: spinpx: limit size of file_printable.
Christos Zoulas [Mon, 18 Feb 2019 17:46:56 +0000 (17:46 +0000)]
PR/62: spinpx: limit size of file_printable.

5 years agoPR/62: spinpx: Avoid non-nul-terminated string read.
Christos Zoulas [Mon, 18 Feb 2019 17:30:41 +0000 (17:30 +0000)]
PR/62: spinpx: Avoid non-nul-terminated string read.

5 years agoPR/59: magicus: Add java module and image magic.
Christos Zoulas [Mon, 18 Feb 2019 16:53:11 +0000 (16:53 +0000)]
PR/59: magicus: Add java module and image magic.

5 years agoAdd Foxit (pdf reader) add on format (Joerg Jenderek)
Christos Zoulas [Sat, 16 Feb 2019 14:01:25 +0000 (14:01 +0000)]
Add Foxit (pdf reader) add on format (Joerg Jenderek)

5 years agoFix indirect offset overflow calculation (B. Watson)
Christos Zoulas [Thu, 14 Feb 2019 00:25:59 +0000 (00:25 +0000)]
Fix indirect offset overflow calculation (B. Watson)

5 years agonew remarkable format from ax3l at github
Christos Zoulas [Sat, 9 Feb 2019 17:56:01 +0000 (17:56 +0000)]
new remarkable format from ax3l at github

5 years agoupdate location and name from fxlb at github
Christos Zoulas [Sat, 9 Feb 2019 17:52:18 +0000 (17:52 +0000)]
update location and name from fxlb at github