Up to [cvs.NetBSD.org] / src / external / bsd / file / dist / magic / magdir
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN, CHRISTOS
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)
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.
import file-5.20; bug fixes and better image magic descriptions.
sync with head
Pull up following revision(s) (requested by christos in ticket #30): Update file to 5.11 (CDF security fixes)
file pascal was added on branch yamt-pagecache on 2012-04-17 00:03:08 +0000
file pascal was added on branch netbsd-6 on 2012-03-07 23:18:27 +0000
from ftp.astron.com, CDF security fixes
Initial revision