The NetBSD Project

CVS log for src/external/bsd/file/dist/src/softmagic.c

[BACK] Up to [cvs.NetBSD.org] / src / external / bsd / file / dist / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 18 19:00:11 2023 UTC (7 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +135 -101 lines
Diff to previous 1.25 (colored)

merge conflicts between file-5.43 and file-5.45

Revision 1.1.1.20 / (download) - annotate - [select for diffs] (vendor branch), Fri Aug 18 18:36:49 2023 UTC (7 months, 3 weeks ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_45
Changes since 1.1.1.19: +133 -99 lines
Diff to previous 1.1.1.19 (colored)

Update to file-5.45 (Last was file-5.44)

2023-07-27  15:45  Christos Zoulas <christos@zoulas.com>

	* release 5.45

2023-07-17  11:53  Christos Zoulas <christos@zoulas.com>

	* PR/465: psrok1: Avoid muslc asctime_r crash

2023-05-21  13:05  Christos Zoulas <christos@zoulas.com>

	* add SIMH tape format support

2023-02-09  12:50  Christos Zoulas <christos@zoulas.com>

	* bump the max size of the elf section notes to be read to 128K
	  and make it configurable

2023-01-08   1:08  Christos Zoulas <christos@zoulas.com>

	* PR/415: Fix decompression with program returning empty

2022-12-26   1:47  Christos Zoulas <christos@zoulas.com>

	* PR/408: fix -p with seccomp
	* PR/412: fix MinGW compilation

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 24 20:21:46 2022 UTC (18 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.24: +241 -154 lines
Diff to previous 1.24 (colored)

merge changes between 5.40 and 5.43

Revision 1.1.1.19 / (download) - annotate - [select for diffs] (vendor branch), Sat Sep 24 20:07:55 2022 UTC (18 months, 2 weeks ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_43
Changes since 1.1.1.18: +239 -154 lines
Diff to previous 1.1.1.18 (colored)

Import file-5.43+; last was file-5.40

2022-09-20  17:12  Christos Zoulas <christos@zoulas.com>

	* fixed various clustefuzz issues

2022-09-19  15:54  Christos Zoulas <christos@zoulas.com>

	* Fix error detection for decompression code (Vincent Mihalkovic)

2022-09-15  13:50  Christos Zoulas <christos@zoulas.com>

	* Add MAGIC_NO_COMPRESS_FORK and use it to produce a more
	  meaningful error message if we are sandboxing.

2022-09-15  10:45  Christos Zoulas <christos@zoulas.com>

	* Add built-in lzip decompression support (Michal Gorny)

2022-09-14  10:35  Christos Zoulas <christos@zoulas.com>

	* Add built-in zstd decompression support (Martin Rodriguez Reboredo)

2022-09-13  14:55  Christos Zoulas <christos@zoulas.com>

	* release 5.43

2022-09-10   9:17  Christos Zoulas <christos@zoulas.com>

	* Add octal indirect magic (Michal Gorny)

2022-08-17  11:43  Christos Zoulas <christos@zoulas.com>

	* PR/374: avoid infinite loop in non-wide code (piru)
	* PR/373: Obey MAGIC_CONTINUE with multiple magic files (vismarli)

2022-07-26  11:10  Christos Zoulas <christos@zoulas.com>

	* Fix bug with large flist (Florian Weimer)

2022-07-07  13:21  Christos Zoulas <christos@zoulas.com>

        * PR/364: Detect non-nul-terminated core filenames from QEMU
	  (mam-ableton)

2022-07-04  15:45  Christos Zoulas <christos@zoulas.com>

	* PR/359: Add support for http://ndjson.org/ (darose)
	* PR/362: Fix wide printing (ro-ee)
	* PR/358: Fix width for -f - (jpalus)
	* PR/356: Fix JSON constant parsing (davewhite)

2022-06-10   9:40  Christos Zoulas <christos@zoulas.com>

	* release 5.42

2022-05-31  14:50   Christos Zoulas <christos@zoulas.com>

	* PR/348: add missing cases to prevent file from aborting on
	  random magic files.

2022-05-27  21:05   Christos Zoulas <christos@zoulas.com>

	* PR/351: octalify filenames when not raw before printing.

2022-04-18  17:51   Christos Zoulas <christos@zoulas.com>

	* fix regex cacheing bug (Dirk Mueller)
	* merge file_regcomp and file_regerror() to simplify the code
	  and reduce memory requirements for storing regexes (Dirk Mueller)

2022-03-19  12:56   Christos Zoulas <christos@zoulas.com>

	* cache regex (Dirk Mueller)
	* detect filesystem full by flushing output (Dirk Mueller)

2021-11-19  12:36   Christos Zoulas <christos@zoulas.com>

	* implement running decompressor programs using
	  posix_spawnp(2) instead of vfork(2)

2021-10-24  11:51   Christos Zoulas <christos@zoulas.com>

	* Add support for msdos dates and times

2021-10-20   9:55   Christos Zoulas <christos@zoulas.com>

	* use the system byte swapping functions if available (Werner Fink)

2021-10-18  11:57  Christos Zoulas <christos@zoulas.com>

	* release 5.41

2021-09-23  03:51  Christos Zoulas <christos@zoulas.com>

	* Avinash Sonawane: Fix tzname detection

2021-09-03  09:17  Christos Zoulas <christos@zoulas.com>

	* Fix relationship tests with "search" magic, don't short circuit
	  logic

2021-07-13  01:06  Christos Zoulas <christos@zoulas.com>

	* Fix memory leak in compile mode

2021-07-01  03:51  Christos Zoulas <christos@zoulas.com>

	* PR/272: kiefermat: Only set returnval = 1 when we printed something
	  (in all cases print or !print). This simplifies the logic and fixes
	  the issue in the PR with -k and --mime-type there was no continuation
	  printed before the default case.

2021-06-30  13:07  Christos Zoulas <christos@zoulas.com>

	* PR/270: Don't translate unprintable characters in %s magic formats
	  when -r
	* PR/269: Avoid undefined behavior with clang (adding offset to NULL)

2021-05-09  18:38  Christos Zoulas <christos@zoulas.com>

	* Add a new flag (f) that requires that the match is a full word,
	   not a partial word match.
	* Add varint types (unused)

2021-04-19  17:17  Christos Zoulas <christos@zoulas.com>

	* PR/256: mutableVoid: If the file is less than 3 bytes, use the file
	  length to determine type
	* PR/259: aleksandr.v.novichkov: mime printing through indirect magic
	  is not taken into account, use match directly so that it does.

2021-04-04  17:02  Christos Zoulas <christos@zoulas.com>

	* count the total bytes found not the total byte positions
	  in order to determine encoding (Anatol Belski)

Revision 1.24 / (download) - annotate - [select for diffs], Fri Apr 9 19:11:42 2021 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.23: +123 -116 lines
Diff to previous 1.23 (colored)

merge local changes between 5.39 and 5.40 and add magic entries from HEAD.

Revision 1.1.1.18 / (download) - annotate - [select for diffs] (vendor branch), Fri Apr 9 18:58:01 2021 UTC (3 years ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_40
Changes since 1.1.1.17: +121 -112 lines
Diff to previous 1.1.1.17 (colored)

2021-03-30  20:21  Christos Zoulas <christos@zoulas.com>

	* release 5.40

2021-02-05  16:31  Christos Zoulas <christos@zoulas.com>

	* PR/234: Add limit to the number of bytes to scan for encoding
	* PR/230: Fix /T (trim flag) for regex

2021-02-01  12:31  Christos Zoulas <christos@zoulas.com>
	* PR/77: Trim trailing separator.

2020-12-17  15:44  Christos Zoulas <christos@zoulas.com>

	* PR/211: Convert system read errors from corrupt ELF
	  files into human readable error messages

2020-12-08  16:24  Christos Zoulas <christos@zoulas.com>

	* fix multithreaded decompression file descriptor issue
	  by using close-on-exec (Denys Vlasenko)

2020-06-27  11:58  Christos Zoulas <christos@zoulas.com>

	* Exclude surrogate pairs from utf-8 detection (Michael Liu)

2020-06-25  12:53  Christos Zoulas <christos@zoulas.com>

	* Include # to the list of ignored format chars (Werner Fink)

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jun 15 00:37:24 2020 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.22: +115 -47 lines
Diff to previous 1.22 (colored)

merge conflicts

Revision 1.1.1.17 / (download) - annotate - [select for diffs] (vendor branch), Mon Jun 15 00:18:48 2020 UTC (3 years, 9 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_39
Changes since 1.1.1.16: +113 -45 lines
Diff to previous 1.1.1.16 (colored)

Import 5.39:

   * Remove unused subtype_mime (Steve Grubb)
   * Remove unused check in okstat (Steve Grubb)
   * Fix mime-type in elf binaries by making sure $x is set
   * Fix indirect negative offsets broken by OFFNEGATIVE
   * Fix GUID equality check
   * PR/165: Handle empty array and strings in JSON
   * PR/162: Add --exclude-quiet
   * Fix memory leak in ascmagic (Steve Grubb)
   * Fix string comparison length with ignore whitespace
   * Fix mingwin 64 compilation
   * PR/159: whitelist getpid needed for file_pipe2file()
   * Indicate negative offsets with a flag OFFNEGATIVE
     so that -0 works.
   * Introduce "offset" magic type that can be used to
     detect the file size, and bail on short files.
   * document DER better in the magic man page.
   * fix memory leaks (SonarQube)
   * rewrite confusing loops (SonarQube)
   * fix bogus test (SonarQube)
   * pass a sized buffer to file_fmttime() (SonarQube)
   * Don't allow * in printf formats, or the code itself (Christoph Biedl)
   * Introduce a printf output size checker to avoid DoS attacks
   * Avoid memory leak on error (oss-fuzz)
   * Check length of string on DER before derefercing and add new types
   * Add missing DER string (oss-fuzz)
   * Add missing DER types, and debugging
   * PR/140: Avoid abort with hand-crafted magic file (gockelhahn)
   * PR/139:  Avoid DoS in printf with hand-crafted magic file (gockelhahn)
   * PR/138: Avoid crash with hand-crafted magic file (gockelhahn)
   * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine)
   * add guid support native support via the "guid" type.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:44:47 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.19: +320 -201 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Wed May 22 17:26:05 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.21: +235 -137 lines
Diff to previous 1.21 (colored)

merge conflicts

Revision 1.1.1.16 / (download) - annotate - [select for diffs] (vendor branch), Wed May 22 17:19:56 2019 UTC (4 years, 10 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_38, FILE5_37
Changes since 1.1.1.15: +233 -135 lines
Diff to previous 1.1.1.15 (colored)

2019-05-14  22:26  Christos Zoulas <christos@zoulas.com>

	* release 5.37

2019-05-09  22:27  Christos Zoulas <christos@zoulas.com>

	* Make sure that continuation separators are printed
	  with -k within softmagic

2019-05-06  22:27  Christos Zoulas <christos@zoulas.com>

	* Change SIGPIPE saving and restoring during compression to use
	  sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko)
	* Cache stat(2) calls more to reduce number of calls (Denys Vlasenko)

2019-05-06  17:25  Christos Zoulas <christos@zoulas.com>

	* PR/77: Handle --mime-type and -k correctly.

2019-05-03  15:26  Christos Zoulas <christos@zoulas.com>

	* Switch decompression code to use vfork() because
	  tools like rpmdiff and rpmbuild call libmagic
	  with large process footprints (Denys Vlasenko)

2019-04-07  14:05  Christos Zoulas <christos@zoulas.com>

	* PR/75: --enable-zlib, did not work.

2019-02-27  11:54  Christos Zoulas <christos@zoulas.com>

	* Improve regex efficiency (Michael Schroeder) by:
		1. Prefixing regex searches with regular search
		   for keywords where possible
		2. Using memmem(3) where available

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:20 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.18.2.1: +90 -69 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with head

Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 19 00:32:47 2018 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

fix lint fixes

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 19 00:11:48 2018 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +89 -68 lines
Diff to previous 1.19 (colored)

Merge conflicts

Revision 1.1.1.15 / (download) - annotate - [select for diffs] (vendor branch), Thu Oct 18 23:54:09 2018 UTC (5 years, 5 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_35
Changes since 1.1.1.14: +87 -66 lines
Diff to previous 1.1.1.14 (colored)

2018-10-18  19:32  Christos Zoulas <christos@zoulas.com>

	* release 5.35

2018-09-10  20:38  Christos Zoulas <christos@zoulas.com>

	* Add FreeBSD ELF core file support (John Baldwin)

2018-08-20  18:40  Christos Zoulas <christos@zoulas.com>

	* PR/30: Allow all parameter values to be set (don't treat 0 specially)
	* handle default annotations on the softmagic match instead at the
	  end.

2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>

	* PR/23: Recognize JSON files

2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>

	* PR/18: file --mime-encoding should not print mime-type

2018-07-25   8:50  Christos Zoulas <christos@zoulas.com>

	* release 5.34

2018-06-22  16:38  Christos Zoulas <christos@zoulas.com>

	* Add Quad indirect offsets

2018-05-24  14:10  Christos Zoulas <christos@zoulas.com>

	* Enable parsing of ELF dynamic sections to handle PIE better

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:09 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18: +203 -74 lines
Diff to previous 1.18 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 15 19:45:32 2018 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Branch point for: phil-wifi
Changes since 1.18: +203 -74 lines
Diff to previous 1.18 (colored)

merge conflicts for file-5.33

Revision 1.1.1.14 / (download) - annotate - [select for diffs] (vendor branch), Sun Apr 15 19:32:48 2018 UTC (6 years ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_33
Changes since 1.1.1.13: +202 -71 lines
Diff to previous 1.1.1.13 (colored)

2018-04-15  14:52  Christos Zoulas <christos@zoulas.com>

	* release 5.33

2018-02-24  14:50  Christos Zoulas <christos@zoulas.com>

	* extend the support for ${x?:} expansions for magic descriptions

2018-02-21  16:25  Christos Zoulas <christos@zoulas.com>

	* add support for ${x?:} in mime types to handle
	  pie binaries.

2017-11-03   9:23  Christos Zoulas <christos@zoulas.com>

	* add support for negative offsets (offsets from the end of file)

2017-09-26   8:22  Christos Zoulas <christos@zoulas.com>

	* close the file on error when writing magic (Steve Grubb)

2017-09-24  12:02  Christos Zoulas <christos@zoulas.com>

	* seccomp support (Paul Moore)

2017-09-02  11:53  Christos Zoulas <christos@zoulas.com>

	* release 5.32

2017-08-28  16:37  Christos Zoulas <christos@zoulas.com>

	* Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)

2017-08-27  03:55  Christos Zoulas <christos@zoulas.com>

	* Fix always true condition (Thomas Jarosch)

2017-05-24  17:30  Christos Zoulas <christos@zoulas.com>

	* pickier parsing of numeric values in magic files.

2017-05-23  17:55  Christos Zoulas <christos@zoulas.com>

	* PR/615 add magic_getflags()

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 11 23:19:38 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

If we don't have any formatting characters, we are always ok.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 8 13:40:25 2017 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

merge file-5.32

Revision 1.1.1.13 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 8 13:22:41 2017 UTC (6 years, 7 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_32
Changes since 1.1.1.12: +2 -2 lines
Diff to previous 1.1.1.12 (colored)

2017-09-02  11:53  Christos Zoulas <christos@zoulas.com>

	* release 5.32

2017-08-28  16:37  Christos Zoulas <christos@zoulas.com>

	* Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)

2017-08-27  03:55  Christos Zoulas <christos@zoulas.com>

	* Fix always true condition (Thomas Jarosch)

2017-05-24  17:30  Christos Zoulas <christos@zoulas.com>

	* pickier parsing of numeric values in magic files.

2017-05-23  17:55  Christos Zoulas <christos@zoulas.com>

	* PR/615 add magic_getflags()

2017-05-23  13:55  Christos Zoulas <christos@zoulas.com>

	* release 5.31

2017-03-17  20:32  Christos Zoulas <christos@zoulas.com>

	* remove trailing spaces from magic files
	* refactor is_tar
	* better bounds checks for cdf

Revision 1.16 / (download) - annotate - [select for diffs], Thu May 25 00:11:26 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.15: +14 -7 lines
Diff to previous 1.15 (colored)

merge 5.31

Revision 1.1.1.12 / (download) - annotate - [select for diffs] (vendor branch), Wed May 24 23:59:56 2017 UTC (6 years, 10 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_31
Changes since 1.1.1.11: +14 -8 lines
Diff to previous 1.1.1.11 (colored)

Import file-5.31; mostly oss-fuzz found bugs.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:51:24 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.13: +361 -463 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:52:20 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.13: +361 -463 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 10 18:06:59 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

pacify lint.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 10 17:53:24 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.13: +360 -461 lines
Diff to previous 1.13 (colored)

merge conflicts

Revision 1.1.1.11 / (download) - annotate - [select for diffs] (vendor branch), Fri Feb 10 17:42:57 2017 UTC (7 years, 2 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_30
Changes since 1.1.1.10: +359 -460 lines
Diff to previous 1.1.1.10 (colored)

2017-02-10  12:24  Christos Zoulas <christos@zoulas.com>

	* release 5.30

2017-02-07  23:27  Christos Zoulas <christos@zoulas.com>

	* If we exceeded the offset in a search return no match
	  (Christoph Biedl)
	* Be more lenient on corrupt CDF files (Christoph Biedl)

2017-02-04  16:46  Christos Zoulas <christos@zoulas.com>

	* pacify ubsan sign extension (oss-fuzz/524)

2017-02-01  12:42  Christos Zoulas <christos@zoulas.com>

	* off by one in cdf parsing (PR/593)
	* report debugging sections in elf (PR/591)

2016-11-06  10:52  Christos Zoulas <christos@zoulas.com>

	* Allow @@@ in extensions
	* Add missing overflow check in der magic (Jonas Wagner)

2016-10-25  10:40  Christos Zoulas <christos@zoulas.com>

	* release 5.29

2016-10-24  11:20  Christos Zoulas <christos@zoulas.com>

	* der getlength overflow (Jonas Wagner)
	* multiple magic file load failure (Christoph Biedl)

2016-10-17  11:26  Christos Zoulas <christos@zoulas.com>

	* CDF parsing improvements (Guy Helmer)

2016-07-20   7:26  Christos Zoulas <christos@zoulas.com>

	* Add support for signed indirect offsets

2016-07-18   7:41  Christos Zoulas <christos@zoulas.com>

	* cat /dev/null | file - should print empty (Christoph Biedl)

2016-07-05  15:20  Christos Zoulas <christos@zoulas.com>

	* Bump string size from 64 to 96.

2016-06-13  20:20  Christos Zoulas <christos@zoulas.com>

	* PR/556: Fix separators on annotations.

2016-06-13  19:40  Christos Zoulas <christos@zoulas.com>

	* release 5.28
	* fix leak on allocation failure

2016-06-01   1:20  Christos Zoulas <christos@zoulas.com>

	* PR/555: Avoid overflow for offset > nbytes
	* PR/550: Segv on DER parsing:
	    - use the correct variable for length
	    - set offset to 0 on failure.

2016-05-13  12:00  Christos Zoulas <christos@zoulas.com>

	* release 5.27

2016-04-18   9:35  Christos Zoulas <christos@zoulas.com>

	* Errors comparing DER entries or computing offsets
	  are just indications of malformed non-DER files.
	  Don't print them.
	* Offset comparison was off-by-one.
	* Fix compression code (Werner Fink)
	* Put new bytes constant in the right file (not the generated one)

2016-04-16  18:34  Christos Zoulas <christos@zoulas.com>

	* release 5.26

2016-03-31  13:50  Christos Zoulas <christos@zoulas.com>

	* make the number of bytes read from files configurable.

2016-03-21  13:40  Christos Zoulas <christos@zoulas.com>

	* Add bounds checks for DER code (discovered by Thomas Jarosch)
	* Change indirect recursion limit to indirect use count and
	  bump from 15 to 50 to prevent abuse.

2016-03-13  20:39  Christos Zoulas <christos@zoulas.com>

	* Add -00 which prints filename\0description\0

2016-03-01  13:28  Christos Zoulas <christos@zoulas.com>

	* Fix ID3 indirect parsing

2016-01-19  10:18  Christos Zoulas <christos@zoulas.com>

	* add DER parsing capability

2015-11-13  10:35  Christos Zoulas <christos@zoulas.com>

	* provide dprintf(3) for the OS's that don't have it.

2015-11-11  16:25  Christos Zoulas <christos@zoulas.com>

	* redo the compression code report decompression errors

2015-11-10  23:25  Christos Zoulas <christos@zoulas.com>

	* REG_STARTEND code is not working as expected, delete it.

2015-11-09  16:05  Christos Zoulas <christos@zoulas.com>

	* Add zlib support if we have it.

2015-11-05  11:22  Christos Zoulas <christos@zoulas.com>

	* PR/492: compression forking was broken with magic_buffer.

2015-09-16   9:50  Christos Zoulas <christos@zoulas.com>

	* release 5.25

2015-09-11  13:25  Christos Zoulas <christos@zoulas.com>

	* add a limit to the length of regex searches

2015-09-08   9:50  Christos Zoulas <christos@zoulas.com>

	* fix problems with --parameter (Christoph Biedl)

2015-07-11  10:35  Christos Zoulas <christos@zoulas.com>

	* Windows fixes PR/466 (Jason Hood)

2015-07-09  10:35  Christos Zoulas <christos@zoulas.com>

	* release 5.24

2015-06-11   8:52  Christos Zoulas <christos@zoulas.com>

	* redo long option encoding to fix off-by-one in 5.23

2015-06-10  13:50  Christos Zoulas <christos@zoulas.com>

	* release 5.23

2015-06-09  16:10  Christos Zoulas <christos@zoulas.com>

	* Fix issue with regex range for magic with offset
	* Always return true from mget with USE (success to mget not match
	  indication). Fixes mime evaluation after USE magic
	* PR/459: Don't insert magic entries to the list if there are parsing
	  errors for them.

2015-06-03  16:00  Christos Zoulas <christos@zoulas.com>

	* PR/455: Add utf-7 encoding

2015-06-03  14:30  Christos Zoulas <christos@zoulas.com>

	* PR/455: Implement -Z, look inside, but don't report on compression
	* PR/454: Fix allocation error on bad magic.

2015-05-29  10:30  Christos Zoulas <christos@zoulas.com>

	* handle MAGIC_CONTINUE everywhere, not just in softmagic

2015-05-21  14:30  Christos Zoulas <christos@zoulas.com>

	* don't print descriptions for NAME types when mime.

2015-04-09  15:59  Christos Zoulas <christos@zoulas.com>

	* Add --extension to list the known extensions for this file type
	  Idea by Andrew J Roazen

2015-02-14  12:23  Christos Zoulas <christos@zoulas.com>

	* Bump file search buffer size to 1M.

2015-01-09  14:35  Christos Zoulas <christos@zoulas.com>

	* Fix multiple issues with date formats reported by Christoph Biedl:
		- T_LOCAL meaning was reversed
		- Arithmetic did not work
	  Also stop adjusting daylight savings for gmt printing.

2015-01-05  13:00  Christos Zoulas <christos@zoulas.com>

	* PR/411: Fix memory corruption from corrupt cdf file.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 2 21:15:32 2015 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.12: +79 -47 lines
Diff to previous 1.12 (colored)

merge conflicts

Revision 1.1.1.10 / (download) - annotate - [select for diffs] (vendor branch), Fri Jan 2 20:34:27 2015 UTC (9 years, 3 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_22
Changes since 1.1.1.9: +77 -45 lines
Diff to previous 1.1.1.9 (colored)

Import file-5.22

Revision 1.12 / (download) - annotate - [select for diffs], Fri Oct 10 20:15:02 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.11: +33 -22 lines
Diff to previous 1.11 (colored)

welcome to file-5.20

Revision 1.1.1.9 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 10 20:08:17 2014 UTC (9 years, 6 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_20
Changes since 1.1.1.8: +31 -20 lines
Diff to previous 1.1.1.8 (colored)

import file-5.20; bug fixes and better image magic descriptions.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Tue Aug 19 23:46:47 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.2: +241 -300 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 07:07:11 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.10: +224 -286 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Rebase.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 13 02:08:06 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.10: +224 -286 lines
Diff to previous 1.10 (colored)

merge conflicts

Revision 1.1.1.8 / (download) - annotate - [select for diffs] (vendor branch), Fri Jun 13 01:48:22 2014 UTC (9 years, 10 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_19
Changes since 1.1.1.7: +222 -284 lines
Diff to previous 1.1.1.7 (colored)

import file-5.19

2014-06-09   9:04  Christos Zoulas <christos@zoulas.com>

	* Misc buffer overruns and missing buffer size tests in cdf parsing
	  (Francisco Alonso, Jan Kaluza)

2014-06-02  14:50  Christos Zoulas <christos@zoulas.com>

	* 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.

2014-05-30  12:51  Christos Zoulas <christos@zoulas.com>

	* Make the range operator limit the length of the
	  regex search.

2014-05-14  19:23  Christos Zoulas <christos@zoulas.com>

	* PR/347: Windows fixes
	* PR/352: Hangul word processor recognition
	* PR/354: Encoding irregularities in text files

2014-05-06  6:12  Christos Zoulas <christos@zoulas.com>

	* Fix uninitialized title in CDF files (Jan Kaluza)

2014-05-04  14:55  Christos Zoulas <christos@zoulas.com>

	* PR/351: Fix compilation of empty files

2014-04-30  17:39  Christos Zoulas <christos@zoulas.com>

	* Fix integer formats: We don't specify 'l' or
	  'h' and 'hh' specifiers anymore, only 'll' for
	  quads and nothing for the rest. This is so that
	  magic writing is simpler.

2014-04-01  15:25  Christos Zoulas <christos@zoulas.com>

	* PR/341: Jan Kaluza, fix memory leak
	* PR/342: Jan Kaluza, fix out of bounds read

2014-03-28  15:25  Christos Zoulas <christos@zoulas.com>

	* Fix issue with long formats not matching fmtcheck

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Thu May 22 15:45:00 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.2.2: +92 -61 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 1 19:32:15 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.9: +30 -27 lines
Diff to previous 1.9 (colored)

merge conflicts

Revision 1.1.1.7 / (download) - annotate - [select for diffs] (vendor branch), Sun Dec 1 19:28:16 2013 UTC (10 years, 4 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_16
Changes since 1.1.1.6: +28 -25 lines
Diff to previous 1.1.1.6 (colored)

from ftp.astron.com, this is a bug fix release:
       * always leave magic file loaded, don't unload for magic_check, etc.
       * fix default encoding to binary instead of unknown which broke recently
       * handle empty and one byte files, less specially so that
         --mime-encoding does not break completely.
       * fix erroneous non-zero exit code from non-existant file and message
       * add CDF MSI file detection (Guy Helmer)

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:26:33 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.1: +67 -39 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

resync from head

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 23 16:15:58 2013 UTC (11 years ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Changes since 1.8: +67 -39 lines
Diff to previous 1.8 (colored)

merge new file

Revision 1.1.1.6 / (download) - annotate - [select for diffs] (vendor branch), Sat Mar 23 15:49:15 2013 UTC (11 years ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_14
Changes since 1.1.1.5: +81 -46 lines
Diff to previous 1.1.1.5 (colored)

import file-5.14
changes are "name" + "use" keyword features, bug fixes

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:26:07 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.6: +172 -46 lines
Diff to previous 1.6 (colored)

resync with head

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:04:36 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.4.2.1: +172 -46 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 4 17:03:13 2013 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.7: +23 -17 lines
Diff to previous 1.7 (colored)

bring return value fixes from head.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 3 23:05:38 2013 UTC (11 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.6: +159 -39 lines
Diff to previous 1.6 (colored)

merge changes

Revision 1.1.1.5 / (download) - annotate - [select for diffs] (vendor branch), Thu Jan 3 16:27:52 2013 UTC (11 years, 3 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE_5_12
Changes since 1.1.1.4: +178 -40 lines
Diff to previous 1.1.1.4 (colored)

from ftp.astron.com

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:03:09 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.4: +41 -17 lines
Diff to previous 1.4 (colored)

sync with head

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 7 17:30:56 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.5: +25 -6 lines
Diff to previous 1.5 (colored)

bring in changes from head.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Wed Mar 7 23:18:29 2012 UTC (12 years, 1 month ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.4: +18 -13 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by christos in ticket #30):
	Update file to 5.11 (CDF security fixes)

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 22 17:53:51 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.4: +18 -13 lines
Diff to previous 1.4 (colored)

merge conflicts

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Wed Feb 22 17:48:22 2012 UTC (12 years, 1 month ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_11
Changes since 1.1.1.3: +16 -11 lines
Diff to previous 1.1.1.3 (colored)

from ftp.astron.com, CDF security fixes

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 16 21:06:27 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored)

merge changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 16 20:37:37 2011 UTC (12 years, 7 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_09
Changes since 1.1.1.2: +5 -5 lines
Diff to previous 1.1.1.2 (colored)

from ftp.astron.com:
- elf seeking fixes
- improvements in cdf parsing
- waitpid only for our child
- magic fixes and additions

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 13 01:52:13 2011 UTC (12 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.2: +51 -52 lines
Diff to previous 1.2 (colored)

resolve conflicts

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu May 12 20:46:52 2011 UTC (12 years, 11 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_07
Changes since 1.1.1.1: +65 -65 lines
Diff to previous 1.1.1.1 (colored)

from ftp.astron.com.
- many security related fixes
- no MAXPATHLEN limits
- fixed missing text specification on ascii magic
- new ``pascal'' style string formats
- whitespace comparison fix
- more magic

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed May 13 18:52:03 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.2.2.1: +2016 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.2.2.1, Fri May 8 17:28:01 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.2: +0 -2016 lines
FILE REMOVED

file softmagic.c was added on branch jym-xensuspend on 2009-05-13 18:52:03 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 8 17:28:01 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jym-xensuspend
Changes since 1.1: +25 -24 lines
Diff to previous 1.1 (colored)

build glue and lint fixes

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri May 8 16:35:06 2009 UTC (14 years, 11 months ago) by christos
Branch: CHRISTOS
CVS Tags: FILE5_03
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

from ftp.astron.com

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 8 16:35:06 2009 UTC (14 years, 11 months ago) by christos
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>