]> granicus.if.org Git - file/log
file
10 years agomerge and fix netpbm
Christos Zoulas [Sat, 24 Jan 2015 22:45:46 +0000 (22:45 +0000)]
merge and fix netpbm

10 years agolimit bytecnt
Christos Zoulas [Sat, 24 Jan 2015 22:11:25 +0000 (22:11 +0000)]
limit bytecnt

10 years agoadd lz4 bookmarks from wiz
Christos Zoulas [Sat, 24 Jan 2015 15:48:42 +0000 (15:48 +0000)]
add lz4 bookmarks from wiz

10 years agoperhaps add a search? added leading \n
Christos Zoulas [Sun, 11 Jan 2015 18:19:18 +0000 (18:19 +0000)]
perhaps add a search? added leading \n

10 years agoreturn error on not finding stream.
Christos Zoulas [Sun, 11 Jan 2015 17:00:23 +0000 (17:00 +0000)]
return error on not finding stream.

10 years agoFactor out finding CDF files by directory names. Add quickbooks
Christos Zoulas [Sun, 11 Jan 2015 16:58:25 +0000 (16:58 +0000)]
Factor out finding CDF files by directory names. Add quickbooks

10 years agotime related changes
Christos Zoulas [Fri, 9 Jan 2015 19:29:06 +0000 (19:29 +0000)]
time related changes

10 years agomore functions we supply
Christos Zoulas [Fri, 9 Jan 2015 19:28:57 +0000 (19:28 +0000)]
more functions we supply

10 years ago- stop doing time gymnastics for daylight savings.
Christos Zoulas [Fri, 9 Jan 2015 19:28:32 +0000 (19:28 +0000)]
- stop doing time gymnastics for daylight savings.
- use the _r functions for struct tm retrieval

10 years ago- always do arithmetic on dates
Christos Zoulas [Fri, 9 Jan 2015 19:27:41 +0000 (19:27 +0000)]
- always do arithmetic on dates
- fix T_LOCAL reversed logic

10 years agoadd clear and default.
Christos Zoulas [Tue, 6 Jan 2015 02:06:35 +0000 (02:06 +0000)]
add clear and default.

10 years agopass the original 64 bit value to the cdf_ converted to avoid truncation.
Christos Zoulas [Tue, 6 Jan 2015 02:04:10 +0000 (02:04 +0000)]
pass the original 64 bit value to the cdf_ converted to avoid truncation.
(from Christoph Biedl)

10 years agofix endianness (Christoph Biedl)
Christos Zoulas [Tue, 6 Jan 2015 01:58:09 +0000 (01:58 +0000)]
fix endianness (Christoph Biedl)

10 years agoFix:
Christos Zoulas [Mon, 5 Jan 2015 20:21:30 +0000 (20:21 +0000)]
Fix:
perl -e 'print "\x0" x 8, "bad", "\x0" x 1013, "H+", "\x0" x 6, "good"' | ./file
printing bad...
Reset the continuation offset. From Christoph Biedl

10 years agohandle line terminators better.
Christos Zoulas [Mon, 5 Jan 2015 20:05:39 +0000 (20:05 +0000)]
handle line terminators better.

10 years agomake sure we leave everything initialized.
Christos Zoulas [Mon, 5 Jan 2015 18:09:40 +0000 (18:09 +0000)]
make sure we leave everything initialized.

10 years agoPR/411: Fix memory corruption from corrupt? thumbs file
Christos Zoulas [Mon, 5 Jan 2015 18:00:36 +0000 (18:00 +0000)]
PR/411: Fix memory corruption from corrupt? thumbs file

10 years agofix shortcut code.
Christos Zoulas [Mon, 5 Jan 2015 00:17:13 +0000 (00:17 +0000)]
fix shortcut code.

10 years agosearch and regex don't copy stuff to value.
Christos Zoulas [Mon, 5 Jan 2015 00:16:01 +0000 (00:16 +0000)]
search and regex don't copy stuff to value.

10 years agoExplain recursion better and avoid double recursion in the masked entries
Christos Zoulas [Fri, 2 Jan 2015 22:40:27 +0000 (22:40 +0000)]
Explain recursion better and avoid double recursion in the masked entries

10 years agoBug + portability fixes from the NetBSD build.
Christos Zoulas [Fri, 2 Jan 2015 21:29:39 +0000 (21:29 +0000)]
Bug + portability fixes from the NetBSD build.

10 years agowelcome to 5.22 FILE5_22
Christos Zoulas [Fri, 2 Jan 2015 20:23:04 +0000 (20:23 +0000)]
welcome to 5.22

10 years agoadd a commented out debugging stanza
Christos Zoulas [Fri, 2 Jan 2015 16:56:50 +0000 (16:56 +0000)]
add a commented out debugging stanza

10 years agodon't depend on the existance of data to recurse.
Christos Zoulas [Fri, 2 Jan 2015 02:36:35 +0000 (02:36 +0000)]
don't depend on the existance of data to recurse.

10 years agoPut back stricter checks for DOS/MBR partition:
Christos Zoulas [Thu, 1 Jan 2015 17:43:47 +0000 (17:43 +0000)]
Put back stricter checks for DOS/MBR partition:
https://bugs.debian.org/774219

10 years agoAdd indirect relative offsets; make Exif use them. All other indirect magic
Christos Zoulas [Thu, 1 Jan 2015 17:07:34 +0000 (17:07 +0000)]
Add indirect relative offsets; make Exif use them. All other indirect magic
is absolute by default.

10 years agorelative from 0 offset is a NOP
Christos Zoulas [Thu, 1 Jan 2015 17:07:00 +0000 (17:07 +0000)]
relative from 0 offset is a NOP

10 years agouse indirect to parse the Exif data, which is really TIFF.
Christos Zoulas [Thu, 1 Jan 2015 04:17:41 +0000 (04:17 +0000)]
use indirect to parse the Exif data, which is really TIFF.

10 years agomore tags, and don't use indirect offsets.
Christos Zoulas [Thu, 1 Jan 2015 04:16:51 +0000 (04:16 +0000)]
more tags, and don't use indirect offsets.

10 years agoindirect offsets should be relative to the beginning of the current magic.
Christos Zoulas [Thu, 1 Jan 2015 04:12:23 +0000 (04:12 +0000)]
indirect offsets should be relative to the beginning of the current magic.

10 years agofix continuation level
Christos Zoulas [Thu, 1 Jan 2015 02:58:53 +0000 (02:58 +0000)]
fix continuation level

10 years agoadd more tags
Christos Zoulas [Thu, 1 Jan 2015 02:58:07 +0000 (02:58 +0000)]
add more tags
XXX: Indirect string offsets are probably wrong.

10 years agouse the tiff parser for exif
Christos Zoulas [Thu, 1 Jan 2015 02:57:40 +0000 (02:57 +0000)]
use the tiff parser for exif

10 years agoFix big-endian tiff images.
Christos Zoulas [Thu, 18 Dec 2014 21:56:58 +0000 (21:56 +0000)]
Fix big-endian tiff images.

10 years agoPR/230: make getline() public. file.c uses it.
Christos Zoulas [Thu, 18 Dec 2014 19:34:41 +0000 (19:34 +0000)]
PR/230: make getline() public. file.c uses it.

10 years agoLimit string printing to 100 chars, and add flags I forgot in the previous
Christos Zoulas [Tue, 16 Dec 2014 23:29:42 +0000 (23:29 +0000)]
Limit string printing to 100 chars, and add flags I forgot in the previous
commit.

10 years ago- Add a limit to the number of ELF notes processed (Suggested by Alexander
Christos Zoulas [Tue, 16 Dec 2014 23:18:40 +0000 (23:18 +0000)]
- Add a limit to the number of ELF notes processed (Suggested by Alexander
  Cherepanov)
- Restructure ELF note printing so that we don't print the same message
  multiple times on repeated notes of the same kind.

10 years ago2 more bugs.
Christos Zoulas [Tue, 16 Dec 2014 20:54:13 +0000 (20:54 +0000)]
2 more bugs.

10 years agoBail out on partial reads, from Alexander Cherepanov
Christos Zoulas [Tue, 16 Dec 2014 20:53:05 +0000 (20:53 +0000)]
Bail out on partial reads, from Alexander Cherepanov

10 years agoFix incorrect bounds check, from Alexander Cherepanov
Christos Zoulas [Tue, 16 Dec 2014 20:52:49 +0000 (20:52 +0000)]
Fix incorrect bounds check, from Alexander Cherepanov

10 years agorelax the binary resource checks. The example file has qres\0\0\0\1
Christos Zoulas [Tue, 16 Dec 2014 19:49:29 +0000 (19:49 +0000)]
relax the binary resource checks. The example file has qres\0\0\0\1

10 years agoAdd CVE info from git.
Christos Zoulas [Tue, 16 Dec 2014 16:08:28 +0000 (16:08 +0000)]
Add CVE info from git.

10 years agoPR/407: Add Qt magic
Christos Zoulas [Fri, 12 Dec 2014 16:48:39 +0000 (16:48 +0000)]
PR/407: Add Qt magic

10 years agoPR/405: Ignore exit code from uncompress programs because some (validly)
Christos Zoulas [Fri, 12 Dec 2014 16:33:01 +0000 (16:33 +0000)]
PR/405: Ignore exit code from uncompress programs because some (validly)
exit with non-zero code when they get SIGPIPE.

10 years agohandle more empty interpreters.
Christos Zoulas [Thu, 11 Dec 2014 14:19:36 +0000 (14:19 +0000)]
handle more empty interpreters.

10 years agoprint empty if we could not read the interpreter.
Christos Zoulas [Thu, 11 Dec 2014 14:10:53 +0000 (14:10 +0000)]
print empty if we could not read the interpreter.

10 years ago* change printable -> file_printable and use it in more places for safety
Christos Zoulas [Thu, 11 Dec 2014 12:34:24 +0000 (12:34 +0000)]
* change printable -> file_printable and use it in more places for safety
* in ELF, instead of "(uses dynamic libraries)" when PT_INTERP
  is present print the interpreter name.

10 years agoPR/405: file -bizL git-2.1.3.tar.xz broke because the xz decompressor
Christos Zoulas [Thu, 11 Dec 2014 11:47:08 +0000 (11:47 +0000)]
PR/405: file -bizL git-2.1.3.tar.xz broke because the xz decompressor
dies with SIGPIPE when we stop reading from it early. ignore SIGPIPE>

10 years agofix parameter options FILE5_21
Christos Zoulas [Thu, 11 Dec 2014 01:26:41 +0000 (01:26 +0000)]
fix parameter options

10 years agofix time
Christos Zoulas [Thu, 11 Dec 2014 01:09:20 +0000 (01:09 +0000)]
fix time

10 years agoupdate version
Christos Zoulas [Thu, 11 Dec 2014 00:59:51 +0000 (00:59 +0000)]
update version

10 years agoadd a demo entry to show shortcomings with the current file magic language.
Christos Zoulas [Wed, 10 Dec 2014 18:45:43 +0000 (18:45 +0000)]
add a demo entry to show shortcomings with the current file magic language.

10 years agocheck the proper variable
Christos Zoulas [Tue, 9 Dec 2014 02:47:45 +0000 (02:47 +0000)]
check the proper variable

10 years agoand non-zero sizes.
Christos Zoulas [Tue, 9 Dec 2014 02:47:07 +0000 (02:47 +0000)]
and non-zero sizes.

10 years agoOnly trust sizes of regular files.
Christos Zoulas [Tue, 9 Dec 2014 02:46:38 +0000 (02:46 +0000)]
Only trust sizes of regular files.

10 years agofix netbsd core magic entries
Christos Zoulas [Mon, 8 Dec 2014 20:53:52 +0000 (20:53 +0000)]
fix netbsd core magic entries

10 years agourl for format
Christos Zoulas [Mon, 8 Dec 2014 16:06:19 +0000 (16:06 +0000)]
url for format

10 years agoadd bpg.
Christos Zoulas [Mon, 8 Dec 2014 16:05:47 +0000 (16:05 +0000)]
add bpg.

10 years agoWIN32 changes from Angelo Paolitto
Christos Zoulas [Thu, 4 Dec 2014 15:56:46 +0000 (15:56 +0000)]
WIN32 changes from Angelo Paolitto

10 years agoDon't bail if there was no error, buf could have been NULL on entry.
Christos Zoulas [Thu, 4 Dec 2014 15:22:05 +0000 (15:22 +0000)]
Don't bail if there was no error, buf could have been NULL on entry.

10 years agomagic Delta ISO magic
Christos Zoulas [Wed, 3 Dec 2014 18:02:52 +0000 (18:02 +0000)]
magic Delta ISO magic

10 years agoput the changes in the original file not the generated file.
Christos Zoulas [Mon, 1 Dec 2014 13:50:58 +0000 (13:50 +0000)]
put the changes in the original file not the generated file.

10 years agoPR/402: Christian Hesse: Add more ssh key types
Christos Zoulas [Mon, 1 Dec 2014 03:40:00 +0000 (03:40 +0000)]
PR/402: Christian Hesse: Add more ssh key types

10 years agoRemove name recursion limit, it is always lower than the count... Rename
Christos Zoulas [Fri, 28 Nov 2014 02:46:39 +0000 (02:46 +0000)]
Remove name recursion limit, it is always lower than the count... Rename
things for consistency.

10 years agoadd a limit to the number of times a name/use entries can be used.
Christos Zoulas [Fri, 28 Nov 2014 02:35:05 +0000 (02:35 +0000)]
add a limit to the number of times a name/use entries can be used.

10 years agoKill -R and replace with -P param=value. Allow setting of 4 parameters:
Christos Zoulas [Thu, 27 Nov 2014 23:42:58 +0000 (23:42 +0000)]
Kill -R and replace with -P param=value. Allow setting of 4 parameters:
    indir, name, shnum, phnum.

10 years agoDocument changes
Christos Zoulas [Thu, 27 Nov 2014 16:15:06 +0000 (16:15 +0000)]
Document changes

10 years agobump recursion to 15, and allow it to be set from the command line.
Christos Zoulas [Thu, 27 Nov 2014 15:40:36 +0000 (15:40 +0000)]
bump recursion to 15, and allow it to be set from the command line.

10 years agoadjust limits better (from NetBSD)
Christos Zoulas [Thu, 27 Nov 2014 15:16:00 +0000 (15:16 +0000)]
adjust limits better (from NetBSD)

10 years agoComplain if alignments are < 4 and repair.
Christos Zoulas [Wed, 26 Nov 2014 15:33:10 +0000 (15:33 +0000)]
Complain if alignments are < 4 and repair.

10 years agofix typos.
Christos Zoulas [Sun, 23 Nov 2014 21:36:16 +0000 (21:36 +0000)]
fix typos.

10 years agoMention all the performance fixes from yesterday and today.
Christos Zoulas [Sun, 23 Nov 2014 13:58:37 +0000 (13:58 +0000)]
Mention all the performance fixes from yesterday and today.

10 years ago- reduce recursion level from 20 to 10 and make a symbolic constant for it.
Christos Zoulas [Sun, 23 Nov 2014 13:54:27 +0000 (13:54 +0000)]
- reduce recursion level from 20 to 10 and make a symbolic constant for it.
- pull out the guts of saving and restoring the output buffer into functions
  and take care not to overwrite the error message if an error happened.

10 years agoStop reporting bad capabilities after the first few.
Christos Zoulas [Sat, 22 Nov 2014 23:57:44 +0000 (23:57 +0000)]
Stop reporting bad capabilities after the first few.

10 years ago- limit the number of program and section header number of sections to be
Christos Zoulas [Sat, 22 Nov 2014 16:04:29 +0000 (16:04 +0000)]
- limit the number of program and section header number of sections to be
  processed to avoid excessive processing time.
- if a bad note is found, return 0 to stop processing immediately.

10 years agoNew change
Christos Zoulas [Wed, 12 Nov 2014 15:29:12 +0000 (15:29 +0000)]
New change

10 years agoSimplify freeing of the map and remove bogus frees in the user buffer case.
Christos Zoulas [Wed, 12 Nov 2014 15:28:34 +0000 (15:28 +0000)]
Simplify freeing of the map and remove bogus frees in the user buffer case.

10 years agoDecode the type of the pgp packet.
Christos Zoulas [Tue, 11 Nov 2014 21:32:38 +0000 (21:32 +0000)]
Decode the type of the pgp packet.

10 years agoPR/396: Add sereal magic
Christos Zoulas [Tue, 11 Nov 2014 20:10:49 +0000 (20:10 +0000)]
PR/396: Add sereal magic

10 years agotoday's fixes.
Christos Zoulas [Tue, 11 Nov 2014 17:49:39 +0000 (17:49 +0000)]
today's fixes.

10 years agoPR/398: Correctly truncate pascal strings (fixes out of bounds read of 1, 2,
Christos Zoulas [Tue, 11 Nov 2014 17:48:23 +0000 (17:48 +0000)]
PR/398: Correctly truncate pascal strings (fixes out of bounds read of 1, 2,
or 4 bytes).

10 years agofix memory leak.
Christos Zoulas [Tue, 11 Nov 2014 17:46:05 +0000 (17:46 +0000)]
fix memory leak.

10 years agoRemove duplicates from Chris Renshaw
Christos Zoulas [Mon, 10 Nov 2014 05:08:23 +0000 (05:08 +0000)]
Remove duplicates from Chris Renshaw

10 years agoMake strings from files always printable.
Christos Zoulas [Fri, 7 Nov 2014 15:24:14 +0000 (15:24 +0000)]
Make strings from files always printable.

10 years agonew mlocate entry.
Christos Zoulas [Mon, 3 Nov 2014 21:03:36 +0000 (21:03 +0000)]
new mlocate entry.

10 years agoAlways add the map to the head of the list; this way we can always dependably
Christos Zoulas [Wed, 29 Oct 2014 14:41:32 +0000 (14:41 +0000)]
Always add the map to the head of the list; this way we can always dependably
free it with mlist_free().

10 years agoPR/394: Properly cleanup in new buffers function.
Christos Zoulas [Tue, 28 Oct 2014 22:25:17 +0000 (22:25 +0000)]
PR/394: Properly cleanup in new buffers function.

10 years agoPR/395: fix typo
Christos Zoulas [Tue, 28 Oct 2014 22:10:46 +0000 (22:10 +0000)]
PR/395: fix typo

10 years agoPR/395: Avoid infinite loop in oomem cleanup.
Christos Zoulas [Tue, 28 Oct 2014 22:09:57 +0000 (22:09 +0000)]
PR/395: Avoid infinite loop in oomem cleanup.

10 years agopatches from joerg jenderek to improve dbase detection
Christos Zoulas [Tue, 28 Oct 2014 15:47:39 +0000 (15:47 +0000)]
patches from joerg jenderek to improve dbase detection

10 years agoreturn NODATA in more cases and be more picky about children's exit codes.
Christos Zoulas [Sun, 26 Oct 2014 20:23:30 +0000 (20:23 +0000)]
return NODATA in more cases and be more picky about children's exit codes.

10 years agom4 files can be ALAC and AAC
Christos Zoulas [Thu, 23 Oct 2014 23:12:51 +0000 (23:12 +0000)]
m4 files can be ALAC and AAC

10 years agoprint something before the ', offset', and boost the strength so that it
Christos Zoulas [Thu, 23 Oct 2014 17:17:09 +0000 (17:17 +0000)]
print something before the ', offset', and boost the strength so that it
wins the standard DOS/MBR boot sector magic. XXX: this all needs to be
refactored

10 years agoDon't treat empty chains as an error (Guy Helmer)
Christos Zoulas [Wed, 22 Oct 2014 19:27:36 +0000 (19:27 +0000)]
Don't treat empty chains as an error (Guy Helmer)

10 years ago- remove old compatibility code that ended up printing nothing before
Christos Zoulas [Wed, 22 Oct 2014 19:16:30 +0000 (19:16 +0000)]
- remove old compatibility code that ended up printing nothing before
  '; partition'
- remove trailing tab in magic
- add partition entry printing for the NetBSD mbr

10 years agoPR/390: Jan Kaluza: Fix detection of iso9660 filesystems
Christos Zoulas [Wed, 22 Oct 2014 18:16:03 +0000 (18:16 +0000)]
PR/390: Jan Kaluza: Fix detection of iso9660 filesystems

10 years agoFix note bounds reading, Francisco Alonso / Red Hat
Christos Zoulas [Fri, 17 Oct 2014 15:49:00 +0000 (15:49 +0000)]
Fix note bounds reading, Francisco Alonso / Red Hat

10 years agoOn arm, chars are by default unsigned so force sign extension.
Christos Zoulas [Wed, 15 Oct 2014 12:39:21 +0000 (12:39 +0000)]
On arm, chars are by default unsigned so force sign extension.
http://git.php.net/?p=php-src.git;a=patch;h=e64da8c20df3ec28bd2417924b207b870e9ab99f

10 years agomore detailed crypto magic
Christos Zoulas [Tue, 14 Oct 2014 16:50:37 +0000 (16:50 +0000)]
more detailed crypto magic

10 years agoPR/388: According to POSIX we should not quote the destination of the symlink.
Christos Zoulas [Mon, 13 Oct 2014 20:21:49 +0000 (20:21 +0000)]
PR/388: According to POSIX we should not quote the destination of the symlink.