]>
granicus.if.org Git - file/log
Christos Zoulas [Fri, 30 Nov 2018 12:44:59 +0000 (12:44 +0000)]
Add acronis true image backup (Joerg Jenderek)
Christos Zoulas [Tue, 27 Nov 2018 20:12:21 +0000 (20:12 +0000)]
Add Avira antivirus entries (Joerg Jenderek)
Christos Zoulas [Tue, 27 Nov 2018 17:34:32 +0000 (17:34 +0000)]
Avoid over-trimming UCS16 text, and ending up losing the last character.
Christos Zoulas [Mon, 26 Nov 2018 16:24:40 +0000 (16:24 +0000)]
Add mozilla json compressed data files (Joerg Jenderek)
Christos Zoulas [Fri, 23 Nov 2018 09:46:01 +0000 (09:46 +0000)]
Better VHD detection, from joerg jenderek
Christos Zoulas [Tue, 20 Nov 2018 18:57:17 +0000 (18:57 +0000)]
new magic for configuration dump of Tasmota firmware for ESP8266 based devices
by Espressif https://github.com/arendst/Sonoff-Tasmota/
From Joerg Jenderek
Christos Zoulas [Sun, 11 Nov 2018 01:58:19 +0000 (01:58 +0000)]
Change the mime types of Microsoft icons and add a space in the description.
Joerg Jenderek
Christos Zoulas [Fri, 9 Nov 2018 17:58:28 +0000 (17:58 +0000)]
From Michal:
The most correct way to detect the format would probably be to first
check for 'STOP' at the end, read the unsigned long preceding it and use
it as (negative) offset from end of file where 'XPAKPACK' is to be
found. However, file does not seem to support that kind of lookup.
Therefore, I went for the second best thing and checking for additional
'XPAKSTOP' terminating the metadata blob.
Technically, the information could be usefully amended by stating
the compression used. However, it seems that positive offsets following
negative offsets do not work, and reversing the logic would require
a lot of repetition, so I presumed it's not worth the effort.
You can view, comment on, or merge this pull request online at:
[This note is for me to fix positive offset from starting from negative
offsets.]
Christos Zoulas [Fri, 9 Nov 2018 17:51:12 +0000 (17:51 +0000)]
Add eBPF magic from Matteo Croce
Christos Zoulas [Fri, 9 Nov 2018 17:48:59 +0000 (17:48 +0000)]
Add magic for the NEC VE, from Holger Berger.
Christos Zoulas [Mon, 5 Nov 2018 18:03:25 +0000 (18:03 +0000)]
Need to pass found_match from match -> mget -> match so that the USE case
propagates the value.
Christos Zoulas [Sun, 28 Oct 2018 22:37:02 +0000 (22:37 +0000)]
replace unintended tabs with spaces. from dgk at github
Christos Zoulas [Wed, 24 Oct 2018 13:15:35 +0000 (13:15 +0000)]
If we are asked to print annotations and there are no annotations in
the matching entry, return 0 but break the search. This is handled
by introducing 'found_match' and separating it's function from returnval.
XXX: Nested entries.
Christos Zoulas [Tue, 23 Oct 2018 18:34:46 +0000 (18:34 +0000)]
If we encountered a match (an entry with description) even if we are not
printing (i.e. we are doing mime or something else), set the return value,
so that we stop searching. This avoids the issue where mime matched later
entries in the magic list, instead of matching nothing (entries with no
mime that would have matched earlier).
Christos Zoulas [Fri, 19 Oct 2018 01:04:21 +0000 (01:04 +0000)]
PR/49: giosh94mhz: stricter algol changes (only look at the first 1K)
Christos Zoulas [Fri, 19 Oct 2018 00:33:04 +0000 (00:33 +0000)]
more lint fixes
Christos Zoulas [Fri, 19 Oct 2018 00:26:26 +0000 (00:26 +0000)]
lint fixes
Christos Zoulas [Fri, 19 Oct 2018 00:26:08 +0000 (00:26 +0000)]
- C++ cast
- return 0 instead of -1 for error in donote
Christos Zoulas [Thu, 18 Oct 2018 23:35:42 +0000 (23:35 +0000)]
escape ><
Christos Zoulas [Thu, 18 Oct 2018 23:33:47 +0000 (23:33 +0000)]
welcome to file-5.35
Christos Zoulas [Thu, 18 Oct 2018 16:49:19 +0000 (16:49 +0000)]
- fix whitespace
- call all pcap files pcap instead of tcpdump
- add timestamp info (flxb)
Christos Zoulas [Tue, 16 Oct 2018 18:57:19 +0000 (18:57 +0000)]
Add AMOS (Amiga Basic Language) file format support (Stuart Caie)
Christos Zoulas [Tue, 16 Oct 2018 12:07:08 +0000 (12:07 +0000)]
Add biosig from Alois Schloeg
Christos Zoulas [Mon, 15 Oct 2018 16:29:16 +0000 (16:29 +0000)]
- use SIZE_T_FORMAT instead of 'z' in size_t format strings
- compile with c++ again
Christos Zoulas [Thu, 11 Oct 2018 15:35:43 +0000 (15:35 +0000)]
Add glibc NLS catalog magic (odubaj at redhat)
Christos Zoulas [Wed, 10 Oct 2018 17:41:10 +0000 (17:41 +0000)]
PR/48: tianxiaogu: Avoid zerodivide
Christos Zoulas [Tue, 9 Oct 2018 21:43:54 +0000 (21:43 +0000)]
PR/47: roramirez: Add mime and extension for AMR.
Christos Zoulas [Mon, 8 Oct 2018 18:25:25 +0000 (18:25 +0000)]
PR/46: vitalyisaev2: Search deeper in the zip file for additional headers.
Christos Zoulas [Tue, 2 Oct 2018 00:38:33 +0000 (00:38 +0000)]
PR/32: Chai T. Rex: Handle file -s <(echo '#!/bin/sh\n') on bash/linux
Christos Zoulas [Mon, 1 Oct 2018 23:33:15 +0000 (23:33 +0000)]
PR/45: sezero: mach-o magic did not print all the architectures for > 2
architectures.
Christos Zoulas [Mon, 1 Oct 2018 19:59:53 +0000 (19:59 +0000)]
PR/31: Fix pstring documentation
Christos Zoulas [Mon, 1 Oct 2018 19:14:03 +0000 (19:14 +0000)]
PR/38: bbc: Fix typo in Roslyn
Christos Zoulas [Mon, 1 Oct 2018 19:12:33 +0000 (19:12 +0000)]
Remove stale comment about gw.com
Christos Zoulas [Mon, 1 Oct 2018 19:12:02 +0000 (19:12 +0000)]
Fix gw.com
Christos Zoulas [Mon, 1 Oct 2018 19:10:56 +0000 (19:10 +0000)]
PR/40: Bump Cannon CR2 magic to beat TIFF
Christos Zoulas [Mon, 1 Oct 2018 18:58:29 +0000 (18:58 +0000)]
PR/39: jidanni: change "frames" to "components"
https://pdfs.semanticscholar.org/presentation/c996/
40e05b11319881c16352cdeae123ddbb0a3f .pdf
Christos Zoulas [Mon, 1 Oct 2018 18:51:39 +0000 (18:51 +0000)]
PR/33: change mailman and bugs to https
Christos Zoulas [Mon, 1 Oct 2018 18:50:31 +0000 (18:50 +0000)]
PR/33: fix for new bugs location
Christos Zoulas [Mon, 1 Oct 2018 18:45:39 +0000 (18:45 +0000)]
remove tests for stddef.h, locale.h, limits.h all defined in c89 (petk)
Christos Zoulas [Mon, 1 Oct 2018 18:43:01 +0000 (18:43 +0000)]
signal.h is part of c89, remove testing for it.
Christos Zoulas [Mon, 1 Oct 2018 18:39:21 +0000 (18:39 +0000)]
new magic http://kicad-pcb.org from pointhi
Christos Zoulas [Mon, 1 Oct 2018 18:37:05 +0000 (18:37 +0000)]
update audio, ahx details (alexmyczko)
Christos Zoulas [Mon, 1 Oct 2018 18:34:41 +0000 (18:34 +0000)]
add some more fm song types (alexmyczko)
Christos Zoulas [Tue, 11 Sep 2018 16:33:21 +0000 (16:33 +0000)]
make this compile again...
Christos Zoulas [Tue, 11 Sep 2018 00:39:04 +0000 (00:39 +0000)]
mention FreeBSD core support
Christos Zoulas [Tue, 11 Sep 2018 00:37:33 +0000 (00:37 +0000)]
Add FreeBSD-specific core file support (John Baldwin)
Christos Zoulas [Sun, 9 Sep 2018 20:33:28 +0000 (20:33 +0000)]
Remove trailing whitespace
XXX: We can't do this yet from magic files because trailing whitespace is
significant.
Christos Zoulas [Sat, 1 Sep 2018 15:52:02 +0000 (15:52 +0000)]
Fix use-after-free (https://runtimeverification.com/). The free code was
never changed when the mlist was changed from a NULL-terminated list to
a circular one.
Christos Zoulas [Sat, 1 Sep 2018 13:52:39 +0000 (13:52 +0000)]
use unsigned to print size (Francesco Lamonica)
Christos Zoulas [Mon, 27 Aug 2018 06:17:23 +0000 (06:17 +0000)]
avoid accessing memory beyond the end of the buffer (found by oss-fuzz)
Christos Zoulas [Tue, 21 Aug 2018 12:48:41 +0000 (12:48 +0000)]
reduce strenght to lose from infocom z commands
Christos Zoulas [Tue, 21 Aug 2018 12:48:06 +0000 (12:48 +0000)]
Provide a mime type for MPEG transport stream from:
https://en.wikipedia.org/wiki/MPEG_transport_stream
Christos Zoulas [Tue, 21 Aug 2018 08:58:16 +0000 (08:58 +0000)]
revert previous: we cannot default for mime/apple/etc on the first printed desc,
because they might be overriden later.
Christos Zoulas [Mon, 20 Aug 2018 15:42:03 +0000 (15:42 +0000)]
new fixes
Christos Zoulas [Mon, 20 Aug 2018 15:39:32 +0000 (15:39 +0000)]
PR/30: cbiedl: Allow all parameter values to be set.
Christos Zoulas [Mon, 20 Aug 2018 12:21:39 +0000 (12:21 +0000)]
remove debugging printf
Christos Zoulas [Mon, 20 Aug 2018 12:17:30 +0000 (12:17 +0000)]
don't use defaults if we are inside a USE entry.
Christos Zoulas [Mon, 20 Aug 2018 10:08:18 +0000 (10:08 +0000)]
It used to be the case that if a magic entry was found (with non-nul
description) that had no auxiliary information (apple, mime, or extension)
and one of them was requested, we kept looking for other entries and
if a worse match was found that had auxiliary information, that was printed.
This is unexpected, so print the default auxiliary information instead
if a magic match is found.
Christos Zoulas [Mon, 20 Aug 2018 08:06:54 +0000 (08:06 +0000)]
simplify numeric parsing (found by oss-fuzz)
Christos Zoulas [Sun, 19 Aug 2018 10:38:21 +0000 (10:38 +0000)]
handle error properly.
Christos Zoulas [Sun, 19 Aug 2018 10:16:47 +0000 (10:16 +0000)]
Try to simplify and make the code more consistent by checking
(print && *m->desc)
the same way.
Christos Zoulas [Sun, 19 Aug 2018 10:15:25 +0000 (10:15 +0000)]
don't require the use to match for printing mime info
Christos Zoulas [Sun, 19 Aug 2018 09:30:50 +0000 (09:30 +0000)]
Add a default case in case we did not find the 4th file header.
Christos Zoulas [Sun, 19 Aug 2018 09:14:39 +0000 (09:14 +0000)]
- conditionalizing the return value on (print) is wrong and breaks mime.
- don't open-code the continuation printing.
Christos Zoulas [Sat, 18 Aug 2018 14:44:48 +0000 (14:44 +0000)]
document MAGIC_NO_CHECK_JSON
Christos Zoulas [Sat, 18 Aug 2018 11:45:05 +0000 (11:45 +0000)]
document is_json.c
Christos Zoulas [Fri, 17 Aug 2018 09:12:33 +0000 (09:12 +0000)]
prevent overread (found by oss-fuzz)
Christos Zoulas [Mon, 13 Aug 2018 12:59:05 +0000 (12:59 +0000)]
Avoid read out of bounds (found by oss-fuzz)
Christos Zoulas [Sat, 11 Aug 2018 14:43:43 +0000 (14:43 +0000)]
- add stats
- add recursion limit
- add bail early
Christos Zoulas [Sat, 11 Aug 2018 12:17:37 +0000 (12:17 +0000)]
PR/25: cbiedl: Avoid strength underflow.
Christos Zoulas [Sat, 11 Aug 2018 12:12:39 +0000 (12:12 +0000)]
Add more tests
Christos Zoulas [Sat, 11 Aug 2018 12:11:11 +0000 (12:11 +0000)]
fix exponent parsing.
Christos Zoulas [Sat, 11 Aug 2018 12:05:24 +0000 (12:05 +0000)]
- keep track of the nesting level
- be pickier about parsing numbers
- only report as JSON objects and arrays; not plain elements.
Christos Zoulas [Sat, 11 Aug 2018 11:44:24 +0000 (11:44 +0000)]
PR/26: Include the line terminator character so that regex's that match
to the end of line work.
Christos Zoulas [Sat, 11 Aug 2018 11:32:15 +0000 (11:32 +0000)]
PR/27: cbiedl: Fix HPROF detection on big endian
Christos Zoulas [Sat, 11 Aug 2018 11:06:19 +0000 (11:06 +0000)]
Don't print the mime type when only encoding was requested.
Christos Zoulas [Sat, 11 Aug 2018 11:03:37 +0000 (11:03 +0000)]
mention JSON
Christos Zoulas [Sat, 11 Aug 2018 11:02:47 +0000 (11:02 +0000)]
Add a simple JSON parser...
Christos Zoulas [Fri, 3 Aug 2018 09:00:13 +0000 (09:00 +0000)]
remove extra parens
Christos Zoulas [Thu, 2 Aug 2018 12:53:51 +0000 (12:53 +0000)]
restructure to reduce code
Christos Zoulas [Thu, 2 Aug 2018 12:46:02 +0000 (12:46 +0000)]
correct error handling for file_printf() (coverity)
Christos Zoulas [Thu, 2 Aug 2018 06:33:05 +0000 (06:33 +0000)]
New hardware magic
Christos Zoulas [Thu, 2 Aug 2018 06:32:52 +0000 (06:32 +0000)]
new EDID magic
Christos Zoulas [Thu, 2 Aug 2018 06:23:27 +0000 (06:23 +0000)]
PR/10: Add sketchup.
Christos Zoulas [Wed, 1 Aug 2018 12:43:51 +0000 (12:43 +0000)]
fix reMarkable.
Christos Zoulas [Wed, 1 Aug 2018 12:05:00 +0000 (12:05 +0000)]
PR/16: Add autocad dxf magic
Christos Zoulas [Wed, 1 Aug 2018 10:34:03 +0000 (10:34 +0000)]
PR/19: Recognize ia64 and amd64 COFF files
Christos Zoulas [Wed, 1 Aug 2018 10:32:40 +0000 (10:32 +0000)]
PR/21: Add PNG extension
Christos Zoulas [Wed, 1 Aug 2018 10:31:07 +0000 (10:31 +0000)]
PR/22: remove accidentally added line.
Christos Zoulas [Wed, 1 Aug 2018 10:21:19 +0000 (10:21 +0000)]
We don't want to do anything here on errors (since we are already printing
errors), so ignore. For coverity.
Christos Zoulas [Wed, 1 Aug 2018 10:18:02 +0000 (10:18 +0000)]
Portability fix, don't call qsort with NULL/0. Found by coverity
Christos Zoulas [Wed, 1 Aug 2018 10:14:10 +0000 (10:14 +0000)]
remove useless assignment found by coverity
Christos Zoulas [Wed, 1 Aug 2018 10:12:59 +0000 (10:12 +0000)]
make MULT unsigned.
Christos Zoulas [Wed, 1 Aug 2018 10:11:16 +0000 (10:11 +0000)]
appease coverity by calling umask around mkstemp(3)
Christos Zoulas [Wed, 1 Aug 2018 10:09:47 +0000 (10:09 +0000)]
check file_printf()
Christos Zoulas [Wed, 1 Aug 2018 10:07:00 +0000 (10:07 +0000)]
Eliminate toctou by using fstat and always opening with non-blocking i/o.
Found by coverity.
Christos Zoulas [Wed, 1 Aug 2018 10:02:20 +0000 (10:02 +0000)]
better error handling, found by coverity.
Christos Zoulas [Wed, 1 Aug 2018 09:59:45 +0000 (09:59 +0000)]
fix leak on error, found by coverity.
Christos Zoulas [Wed, 1 Aug 2018 09:56:24 +0000 (09:56 +0000)]
check against -1 to appease coverity.
Christos Zoulas [Wed, 1 Aug 2018 09:53:18 +0000 (09:53 +0000)]
try to use the "right" off_t_max