1*ae316d1dSXin LI2024-11-27 14:44 Christos Zoulas <christos@zoulas.com> 2*ae316d1dSXin LI 3*ae316d1dSXin LI * release 5.46 4*ae316d1dSXin LI * Add OFFPOSITIVE 5*ae316d1dSXin LI 6*ae316d1dSXin LI2024-11-25 13:56 Christos Zoulas <christos@zoulas.com> 7*ae316d1dSXin LI 8*ae316d1dSXin LI * avoid leaking symbols in libmagic 9*ae316d1dSXin LI 10*ae316d1dSXin LI2024-11-10 13:56 Christos Zoulas <christos@zoulas.com> 11*ae316d1dSXin LI 12*ae316d1dSXin LI * PR/562: jsummers: Search/regex offsets are absolute to the 13*ae316d1dSXin LI beginning of the file, so adjust them by subtracting the 14*ae316d1dSXin LI offset that the "use" starts so that we don't double-count it. 15*ae316d1dSXin LI 16*ae316d1dSXin LI 17*ae316d1dSXin LI2024-11-09 19:30 Christos Zoulas <christos@zoulas.com> 18*ae316d1dSXin LI * PR/543: matshch: bump nbuf so we can get the flags into the buffer. 19*ae316d1dSXin LI 20*ae316d1dSXin LI 21*ae316d1dSXin LI2024-11-02 14:34 Christos Zoulas <christos@zoulas.com> 22*ae316d1dSXin LI 23*ae316d1dSXin LI * Add Android elf notes (enh) 24*ae316d1dSXin LI 25*ae316d1dSXin LI2023-12-29 12:55 Christos Zoulas <christos@zoulas.com> 26*ae316d1dSXin LI 27*ae316d1dSXin LI * Add limit for number of magic warnings allowed 28*ae316d1dSXin LI 29*ae316d1dSXin LI2023-07-29 12:55 Christos Zoulas <christos@zoulas.com> 30*ae316d1dSXin LI 31*ae316d1dSXin LI * check regex bounds (found by clusterfuzz) 32*ae316d1dSXin LI 33898496eeSXin LI2023-07-27 15:45 Christos Zoulas <christos@zoulas.com> 34898496eeSXin LI 35898496eeSXin LI * release 5.45 36898496eeSXin LI 37898496eeSXin LI2023-07-17 11:53 Christos Zoulas <christos@zoulas.com> 38898496eeSXin LI 39898496eeSXin LI * PR/465: psrok1: Avoid muslc asctime_r crash 40898496eeSXin LI 41898496eeSXin LI2023-05-21 13:05 Christos Zoulas <christos@zoulas.com> 42898496eeSXin LI 43898496eeSXin LI * add SIMH tape format support 44898496eeSXin LI 45898496eeSXin LI2023-02-09 12:50 Christos Zoulas <christos@zoulas.com> 46898496eeSXin LI 47898496eeSXin LI * bump the max size of the elf section notes to be read to 128K 48898496eeSXin LI and make it configurable 49898496eeSXin LI 50898496eeSXin LI2023-01-08 1:08 Christos Zoulas <christos@zoulas.com> 51898496eeSXin LI 52898496eeSXin LI * PR/415: Fix decompression with program returning empty 53898496eeSXin LI 54898496eeSXin LI2022-12-26 1:47 Christos Zoulas <christos@zoulas.com> 55898496eeSXin LI 56898496eeSXin LI * PR/408: fix -p with seccomp 57898496eeSXin LI * PR/412: fix MinGW compilation 58898496eeSXin LI 59898496eeSXin LI2022-12-26 12:26 Christos Zoulas <christos@zoulas.com> 60898496eeSXin LI 61898496eeSXin LI * release 5.44 62898496eeSXin LI 63898496eeSXin LI2022-12-14 9:24 Christos Zoulas <christos@zoulas.com> 64898496eeSXin LI 65898496eeSXin LI * Handle nan's so that we don't get internal floating point exceptions 66898496eeSXin LI when they are enabled (Vincent Mihalkovic) 67898496eeSXin LI 68898496eeSXin LI2022-10-23 10:21 Christos Zoulas <christos@zoulas.com> 69898496eeSXin LI 70898496eeSXin LI * PR/397: Restore the ability to process files from stdin immediately. 71898496eeSXin LI 72898496eeSXin LI2022-09-20 17:12 Christos Zoulas <christos@zoulas.com> 73898496eeSXin LI 74898496eeSXin LI * fixed various clustefuzz issues 75898496eeSXin LI 76898496eeSXin LI2022-09-19 15:54 Christos Zoulas <christos@zoulas.com> 77898496eeSXin LI 78898496eeSXin LI * Fix error detection for decompression code (Vincent Mihalkovic) 79898496eeSXin LI 80898496eeSXin LI2022-09-15 13:50 Christos Zoulas <christos@zoulas.com> 81898496eeSXin LI 82898496eeSXin LI * Add MAGIC_NO_COMPRESS_FORK and use it to produce a more 83898496eeSXin LI meaningful error message if we are sandboxing. 84898496eeSXin LI 85898496eeSXin LI2022-09-15 10:45 Christos Zoulas <christos@zoulas.com> 86898496eeSXin LI 87898496eeSXin LI * Add built-in lzip decompression support (Michal Gorny) 88898496eeSXin LI 89898496eeSXin LI2022-09-14 10:35 Christos Zoulas <christos@zoulas.com> 90898496eeSXin LI 91898496eeSXin LI * Add built-in zstd decompression support (Martin Rodriguez Reboredo) 92898496eeSXin LI 93a2dfb722SXin LI2022-09-13 14:55 Christos Zoulas <christos@zoulas.com> 94a2dfb722SXin LI 95a2dfb722SXin LI * release 5.43 96a2dfb722SXin LI 97a2dfb722SXin LI2022-09-10 9:17 Christos Zoulas <christos@zoulas.com> 98a2dfb722SXin LI 99a2dfb722SXin LI * Add octal indirect magic (Michal Gorny) 100a2dfb722SXin LI 101a2dfb722SXin LI2022-08-17 11:43 Christos Zoulas <christos@zoulas.com> 102a2dfb722SXin LI 103a2dfb722SXin LI * PR/374: avoid infinite loop in non-wide code (piru) 104a2dfb722SXin LI * PR/373: Obey MAGIC_CONTINUE with multiple magic files (vismarli) 105a2dfb722SXin LI 106a2dfb722SXin LI2022-07-26 11:10 Christos Zoulas <christos@zoulas.com> 107a2dfb722SXin LI 108a2dfb722SXin LI * Fix bug with large flist (Florian Weimer) 109a2dfb722SXin LI 110a2dfb722SXin LI2022-07-07 13:21 Christos Zoulas <christos@zoulas.com> 111a2dfb722SXin LI 112a2dfb722SXin LI * PR/364: Detect non-nul-terminated core filenames from QEMU 113a2dfb722SXin LI (mam-ableton) 114a2dfb722SXin LI 115a2dfb722SXin LI2022-07-04 15:45 Christos Zoulas <christos@zoulas.com> 116a2dfb722SXin LI 117a2dfb722SXin LI * PR/359: Add support for http://ndjson.org/ (darose) 118a2dfb722SXin LI * PR/362: Fix wide printing (ro-ee) 119a2dfb722SXin LI * PR/358: Fix width for -f - (jpalus) 120a2dfb722SXin LI * PR/356: Fix JSON constant parsing (davewhite) 121a2dfb722SXin LI 122a4d6d3b8SXin LI2022-06-10 9:40 Christos Zoulas <christos@zoulas.com> 123a4d6d3b8SXin LI 124a4d6d3b8SXin LI * release 5.42 125a4d6d3b8SXin LI 126a4d6d3b8SXin LI2022-05-31 14:50 Christos Zoulas <christos@zoulas.com> 127a4d6d3b8SXin LI 128a4d6d3b8SXin LI * PR/348: add missing cases to prevent file from aborting on 129a4d6d3b8SXin LI random magic files. 130a4d6d3b8SXin LI 131a4d6d3b8SXin LI2022-05-27 21:05 Christos Zoulas <christos@zoulas.com> 132a4d6d3b8SXin LI 133a4d6d3b8SXin LI * PR/351: octalify filenames when not raw before printing. 134a4d6d3b8SXin LI 135a4d6d3b8SXin LI2022-04-18 17:51 Christos Zoulas <christos@zoulas.com> 136a4d6d3b8SXin LI 137a4d6d3b8SXin LI * fix regex cacheing bug (Dirk Mueller) 138a4d6d3b8SXin LI * merge file_regcomp and file_regerror() to simplify the code 139a4d6d3b8SXin LI and reduce memory requirements for storing regexes (Dirk Mueller) 140a4d6d3b8SXin LI 141a4d6d3b8SXin LI2022-03-19 12:56 Christos Zoulas <christos@zoulas.com> 142a4d6d3b8SXin LI 143a4d6d3b8SXin LI * cache regex (Dirk Mueller) 144a4d6d3b8SXin LI * detect filesystem full by flushing output (Dirk Mueller) 145a4d6d3b8SXin LI 146a4d6d3b8SXin LI2021-11-19 12:36 Christos Zoulas <christos@zoulas.com> 147a4d6d3b8SXin LI 148a4d6d3b8SXin LI * implement running decompressor programs using 149a4d6d3b8SXin LI posix_spawnp(2) instead of vfork(2) 150a4d6d3b8SXin LI 151a4d6d3b8SXin LI2021-10-24 11:51 Christos Zoulas <christos@zoulas.com> 152a4d6d3b8SXin LI 153a4d6d3b8SXin LI * Add support for msdos dates and times 154a4d6d3b8SXin LI 155a4d6d3b8SXin LI2021-10-20 9:55 Christos Zoulas <christos@zoulas.com> 156a4d6d3b8SXin LI 157a4d6d3b8SXin LI * use the system byte swapping functions if available (Werner Fink) 158a4d6d3b8SXin LI 15943a5ec4eSXin LI2021-10-18 11:57 Christos Zoulas <christos@zoulas.com> 16043a5ec4eSXin LI 16143a5ec4eSXin LI * release 5.41 16243a5ec4eSXin LI 16343a5ec4eSXin LI2021-09-23 03:51 Christos Zoulas <christos@zoulas.com> 16443a5ec4eSXin LI 16543a5ec4eSXin LI * Avinash Sonawane: Fix tzname detection 16643a5ec4eSXin LI 16743a5ec4eSXin LI2021-09-03 09:17 Christos Zoulas <christos@zoulas.com> 16843a5ec4eSXin LI 16943a5ec4eSXin LI * Fix relationship tests with "search" magic, don't short circuit 17043a5ec4eSXin LI logic 17143a5ec4eSXin LI 17243a5ec4eSXin LI2021-07-13 01:06 Christos Zoulas <christos@zoulas.com> 17343a5ec4eSXin LI 17443a5ec4eSXin LI * Fix memory leak in compile mode 17543a5ec4eSXin LI 17643a5ec4eSXin LI2021-07-01 03:51 Christos Zoulas <christos@zoulas.com> 17743a5ec4eSXin LI 17843a5ec4eSXin LI * PR/272: kiefermat: Only set returnval = 1 when we printed something 17943a5ec4eSXin LI (in all cases print or !print). This simplifies the logic and fixes 18043a5ec4eSXin LI the issue in the PR with -k and --mime-type there was no continuation 18143a5ec4eSXin LI printed before the default case. 18243a5ec4eSXin LI 18343a5ec4eSXin LI2021-06-30 13:07 Christos Zoulas <christos@zoulas.com> 18443a5ec4eSXin LI 18543a5ec4eSXin LI * PR/270: Don't translate unprintable characters in %s magic formats 18643a5ec4eSXin LI when -r 18743a5ec4eSXin LI * PR/269: Avoid undefined behavior with clang (adding offset to NULL) 18843a5ec4eSXin LI 18943a5ec4eSXin LI2021-05-09 18:38 Christos Zoulas <christos@zoulas.com> 19043a5ec4eSXin LI 19143a5ec4eSXin LI * Add a new flag (f) that requires that the match is a full word, 19243a5ec4eSXin LI not a partial word match. 19343a5ec4eSXin LI * Add varint types (unused) 19443a5ec4eSXin LI 19543a5ec4eSXin LI2021-04-19 17:17 Christos Zoulas <christos@zoulas.com> 19643a5ec4eSXin LI 19743a5ec4eSXin LI * PR/256: mutableVoid: If the file is less than 3 bytes, use the file 19843a5ec4eSXin LI length to determine type 19943a5ec4eSXin LI * PR/259: aleksandr.v.novichkov: mime printing through indirect magic 20043a5ec4eSXin LI is not taken into account, use match directly so that it does. 20143a5ec4eSXin LI 20243a5ec4eSXin LI2021-04-04 17:02 Christos Zoulas <christos@zoulas.com> 20343a5ec4eSXin LI 20443a5ec4eSXin LI * count the total bytes found not the total byte positions 20543a5ec4eSXin LI in order to determine encoding (Anatol Belski) 20643a5ec4eSXin LI 20743a5ec4eSXin LI2021-03-30 20:21 Christos Zoulas <christos@zoulas.com> 20843a5ec4eSXin LI 20943a5ec4eSXin LI * release 5.40 21043a5ec4eSXin LI 21143a5ec4eSXin LI2021-02-05 16:31 Christos Zoulas <christos@zoulas.com> 21243a5ec4eSXin LI 21343a5ec4eSXin LI * PR/234: Add limit to the number of bytes to scan for encoding 21443a5ec4eSXin LI * PR/230: Fix /T (trim flag) for regex 21543a5ec4eSXin LI 21643a5ec4eSXin LI2021-02-01 12:31 Christos Zoulas <christos@zoulas.com> 21743a5ec4eSXin LI * PR/77: Trim trailing separator. 21843a5ec4eSXin LI 21943a5ec4eSXin LI2020-12-17 15:44 Christos Zoulas <christos@zoulas.com> 22043a5ec4eSXin LI 22143a5ec4eSXin LI * PR/211: Convert system read errors from corrupt ELF 22243a5ec4eSXin LI files into human readable error messages 22343a5ec4eSXin LI 22443a5ec4eSXin LI2020-12-08 16:24 Christos Zoulas <christos@zoulas.com> 22543a5ec4eSXin LI 22643a5ec4eSXin LI * fix multithreaded decompression file descriptor issue 22743a5ec4eSXin LI by using close-on-exec (Denys Vlasenko) 22843a5ec4eSXin LI 22943a5ec4eSXin LI2020-06-27 11:58 Christos Zoulas <christos@zoulas.com> 23043a5ec4eSXin LI 23143a5ec4eSXin LI * Exclude surrogate pairs from utf-8 detection (Michael Liu) 23243a5ec4eSXin LI 23343a5ec4eSXin LI2020-06-25 12:53 Christos Zoulas <christos@zoulas.com> 23443a5ec4eSXin LI 23543a5ec4eSXin LI * Include # to the list of ignored format chars (Werner Fink) 23643a5ec4eSXin LI 2372726a701SXin LI2020-06-14 20:02 Christos Zoulas <christos@zoulas.com> 2382726a701SXin LI 2392726a701SXin LI * release 5.39 2402726a701SXin LI 2412726a701SXin LI2020-06-07 20:00 Christos Zoulas <christos@zoulas.com> 2422726a701SXin LI 2432726a701SXin LI * Remove unused subtype_mime (Steve Grubb) 2442726a701SXin LI * Remove unused check in okstat (Steve Grubb) 2452726a701SXin LI * Fix mime-type in elf binaries by making sure $x is set 2462726a701SXin LI * Fix indirect negative offsets broken by OFFNEGATIVE 2472726a701SXin LI * Fix GUID equality check 2482726a701SXin LI * PR/165: Handle empty array and strings in JSON 2492726a701SXin LI * PR/162: Add --exclude-quiet 2502726a701SXin LI 2512726a701SXin LI2020-06-06 15:33 Christos Zoulas <christos@zoulas.com> 2522726a701SXin LI 2532726a701SXin LI * Fix memory leak in ascmagic (Steve Grubb) 2542726a701SXin LI 2552726a701SXin LI2020-06-04 00:21 Christos Zoulas <christos@zoulas.com> 2562726a701SXin LI 2572726a701SXin LI * Fix string comparison length with ignore whitespace 2582726a701SXin LI 2592726a701SXin LI2020-05-31 00:11 Christos Zoulas <christos@zoulas.com> 2602726a701SXin LI 2612726a701SXin LI * Fix mingwin 64 compilation 2622726a701SXin LI 2632726a701SXin LI2020-05-30 23:56 Christos Zoulas <christos@zoulas.com> 2642726a701SXin LI 2652726a701SXin LI * PR/159: whitelist getpid needed for file_pipe2file() 2662726a701SXin LI 2672726a701SXin LI2020-05-09 18:57 Christos Zoulas <christos@zoulas.com> 2682726a701SXin LI 2692726a701SXin LI * Indicate negative offsets with a flag OFFNEGATIVE 2702726a701SXin LI so that -0 works. 2712726a701SXin LI * Introduce "offset" magic type that can be used to 2722726a701SXin LI detect the file size, and bail on short files. 2732726a701SXin LI * document DER better in the magic man page. 2742726a701SXin LI 2752726a701SXin LI2020-03-11 21:53 Christos Zoulas <christos@zoulas.com> 2762726a701SXin LI 2772726a701SXin LI * fix memory leaks (SonarQube) 2782726a701SXin LI 2792726a701SXin LI2020-03-08 21:33 Christos Zoulas <christos@zoulas.com> 2802726a701SXin LI 2812726a701SXin LI * fix memory leaks (SonarQube) 2822726a701SXin LI * rewrite confusing loops (SonarQube) 2832726a701SXin LI * fix bogus test (SonarQube) 2842726a701SXin LI * pass a sized buffer to file_fmttime() (SonarQube) 2852726a701SXin LI 2862726a701SXin LI * fix memory leaks (SonarQube) 2872726a701SXin LI 2882726a701SXin LI2020-02-20 15:50 Christos Zoulas <christos@zoulas.com> 2892726a701SXin LI 2902726a701SXin LI * Don't allow * in printf formats, or the code itself (Christoph Biedl) 2912726a701SXin LI * Introduce a printf output size checker to avoid DoS attacks 2922726a701SXin LI 2932726a701SXin LI2020-02-17 17:22 Christos Zoulas <christos@zoulas.com> 2942726a701SXin LI 2952726a701SXin LI * Avoid memory leak on error (oss-fuzz) 2962726a701SXin LI * Check length of string on DER before derefercing and add new types 2972726a701SXin LI * Add missing DER string (oss-fuzz) 2982726a701SXin LI 2992726a701SXin LI2020-02-16 20:45 Christos Zoulas <christos@zoulas.com> 3002726a701SXin LI 3012726a701SXin LI * Add missing DER types, and debugging 3022726a701SXin LI 3032726a701SXin LI2020-02-13 13:10 Christos Zoulas <christos@zoulas.com> 3042726a701SXin LI 3052726a701SXin LI * PR/140: Avoid abort with hand-crafted magic file (gockelhahn) 3062726a701SXin LI * PR/139 Avoid DoS in printf with hand-crafted magic file (gockelhahn) 3072726a701SXin LI * PR/138: Avoid crash with hand-crafted magic file (gockelhahn) 3082726a701SXin LI 3092726a701SXin LI2020-02-12 17:30 Christos Zoulas <christos@zoulas.com> 3102726a701SXin LI 3112726a701SXin LI * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine) 3122726a701SXin LI 3132726a701SXin LI2019-12-24 14:16 Christos Zoulas <christos@zoulas.com> 3142726a701SXin LI 3152726a701SXin LI * add guid support 3162726a701SXin LI 317d38c30c0SXin LI2019-12-16 21:11 Christos Zoulas <christos@zoulas.com> 318d38c30c0SXin LI 319d38c30c0SXin LI * release 5.38 320d38c30c0SXin LI 321d38c30c0SXin LI2019-12-15 22:13 Christos Zoulas <christos@zoulas.com> 322d38c30c0SXin LI Document changes since the previous release: 323d38c30c0SXin LI - Always accept -S (no sandbox) even if we don't support sandboxing 324898496eeSXin LI - More syscalls elided for sandboxing 325d38c30c0SXin LI - For ELF dynamic means having an interpreter not just PT_DYNAMIC 326d38c30c0SXin LI - Check for large ELF session header offset 327d38c30c0SXin LI - When saving and restoring a locale, keep the locale name in our 328d38c30c0SXin LI own storage. 329d38c30c0SXin LI - Add a flag to disable CSV file detection. 330d38c30c0SXin LI - Don't pass NULL/0 to memset to appease sanitizers. 331d38c30c0SXin LI - Avoid spurious prints when looks for extensions or apple strings 332d38c30c0SXin LI in fsmagic. 333d38c30c0SXin LI - Add builtin decompressors for xz and and bzip. 334d38c30c0SXin LI - Add a limit for the number of CDF elements. 335d38c30c0SXin LI - More checks for overflow in CDF. 336d38c30c0SXin LI 33748c779cdSXin LI2019-05-14 22:26 Christos Zoulas <christos@zoulas.com> 33848c779cdSXin LI 33948c779cdSXin LI * release 5.37 34048c779cdSXin LI 34148c779cdSXin LI2019-05-09 22:27 Christos Zoulas <christos@zoulas.com> 34248c779cdSXin LI 34348c779cdSXin LI * Make sure that continuation separators are printed 34448c779cdSXin LI with -k within softmagic 34548c779cdSXin LI 34648c779cdSXin LI2019-05-06 22:27 Christos Zoulas <christos@zoulas.com> 34748c779cdSXin LI 34848c779cdSXin LI * Change SIGPIPE saving and restoring during compression to use 34948c779cdSXin LI sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko) 35048c779cdSXin LI * Cache stat(2) calls more to reduce number of calls (Denys Vlasenko) 35148c779cdSXin LI 35248c779cdSXin LI2019-05-06 17:25 Christos Zoulas <christos@zoulas.com> 35348c779cdSXin LI 35448c779cdSXin LI * PR/77: Handle --mime-type and -k correctly. 35548c779cdSXin LI 35648c779cdSXin LI2019-05-03 15:26 Christos Zoulas <christos@zoulas.com> 35748c779cdSXin LI 35848c779cdSXin LI * Switch decompression code to use vfork() because 35948c779cdSXin LI tools like rpmdiff and rpmbuild call libmagic 36048c779cdSXin LI with large process footprints (Denys Vlasenko) 36148c779cdSXin LI 36248c779cdSXin LI2019-04-07 14:05 Christos Zoulas <christos@zoulas.com> 36348c779cdSXin LI 36448c779cdSXin LI * PR/75: --enable-zlib, did not work. 36548c779cdSXin LI 36648c779cdSXin LI2019-02-27 11:54 Christos Zoulas <christos@zoulas.com> 36748c779cdSXin LI 36848c779cdSXin LI * Improve regex efficiency (Michael Schroeder) by: 36948c779cdSXin LI 1. Prefixing regex searches with regular search 37048c779cdSXin LI for keywords where possible 37148c779cdSXin LI 2. Using memmem(3) where available 37248c779cdSXin LI 37348c779cdSXin LI2019-02-20 10:16 Christos Zoulas <christos@zoulas.com> 37448c779cdSXin LI 37548c779cdSXin LI * release 5.36 37648c779cdSXin LI 37748c779cdSXin LI2019-02-19 15:30 Christos Zoulas <christos@zoulas.com> 37848c779cdSXin LI 37948c779cdSXin LI * Fix cast to use cast macros 38048c779cdSXin LI * Add UCS-32 builtin detection (PR/61) reported by tmc 38148c779cdSXin LI 38248c779cdSXin LI2019-02-18 18:24 Christos Zoulas <christos@zoulas.com> 38348c779cdSXin LI 38448c779cdSXin LI * Fix stack read (PR/62) and write (PR/64) stack overflows 38548c779cdSXin LI reported by spinpx 38648c779cdSXin LI 38748c779cdSXin LI2018-10-18 19:32 Christos Zoulas <christos@zoulas.com> 38848c779cdSXin LI 38948c779cdSXin LI * release 5.35 39048c779cdSXin LI 39148c779cdSXin LI2018-09-10 20:38 Christos Zoulas <christos@zoulas.com> 39248c779cdSXin LI 39348c779cdSXin LI * Add FreeBSD ELF core file support (John Baldwin) 39448c779cdSXin LI 39548c779cdSXin LI2018-08-20 18:40 Christos Zoulas <christos@zoulas.com> 39648c779cdSXin LI 39748c779cdSXin LI * PR/30: Allow all parameter values to be set (don't treat 0 specially) 39848c779cdSXin LI * handle default annotations on the softmagic match instead at the 39948c779cdSXin LI end. 40048c779cdSXin LI 40148c779cdSXin LI2018-07-25 10:17 Christos Zoulas <christos@zoulas.com> 40248c779cdSXin LI 40348c779cdSXin LI * PR/23: Recognize JSON files 40448c779cdSXin LI 40548c779cdSXin LI2018-07-25 10:17 Christos Zoulas <christos@zoulas.com> 40648c779cdSXin LI 40748c779cdSXin LI * PR/18: file --mime-encoding should not print mime-type 40848c779cdSXin LI 4092dc4dbb9SEitan Adler2018-07-25 8:50 Christos Zoulas <christos@zoulas.com> 4102dc4dbb9SEitan Adler 4112dc4dbb9SEitan Adler * release 5.34 4122dc4dbb9SEitan Adler 4132dc4dbb9SEitan Adler2018-06-22 16:38 Christos Zoulas <christos@zoulas.com> 4142dc4dbb9SEitan Adler 4152dc4dbb9SEitan Adler * Add Quad indirect offsets 4162dc4dbb9SEitan Adler 4172dc4dbb9SEitan Adler2018-05-24 14:10 Christos Zoulas <christos@zoulas.com> 4182dc4dbb9SEitan Adler 4192dc4dbb9SEitan Adler * Enable parsing of ELF dynamic sections to handle PIE better 4202dc4dbb9SEitan Adler 42158a0f0d0SEitan Adler2018-04-15 14:52 Christos Zoulas <christos@zoulas.com> 42258a0f0d0SEitan Adler 42358a0f0d0SEitan Adler * release 5.33 42458a0f0d0SEitan Adler 42558a0f0d0SEitan Adler2018-02-24 14:50 Christos Zoulas <christos@zoulas.com> 42658a0f0d0SEitan Adler 42758a0f0d0SEitan Adler * extend the support for ${x?:} expansions for magic descriptions 42858a0f0d0SEitan Adler 42958a0f0d0SEitan Adler2018-02-21 16:25 Christos Zoulas <christos@zoulas.com> 43058a0f0d0SEitan Adler 43158a0f0d0SEitan Adler * add support for ${x?:} in mime types to handle 43258a0f0d0SEitan Adler pie binaries. 43358a0f0d0SEitan Adler 43458a0f0d0SEitan Adler2017-11-03 9:23 Christos Zoulas <christos@zoulas.com> 43558a0f0d0SEitan Adler 43658a0f0d0SEitan Adler * add support for negative offsets (offsets from the end of file) 43758a0f0d0SEitan Adler 43858a0f0d0SEitan Adler2017-09-26 8:22 Christos Zoulas <christos@zoulas.com> 43958a0f0d0SEitan Adler 44058a0f0d0SEitan Adler * close the file on error when writing magic (Steve Grubb) 44158a0f0d0SEitan Adler 44258a0f0d0SEitan Adler2017-09-24 12:02 Christos Zoulas <christos@zoulas.com> 44358a0f0d0SEitan Adler 44458a0f0d0SEitan Adler * seccomp support (Paul Moore) 44558a0f0d0SEitan Adler 44640427ccaSGordon Tetlow2017-09-02 11:53 Christos Zoulas <christos@zoulas.com> 44740427ccaSGordon Tetlow 44840427ccaSGordon Tetlow * release 5.32 44940427ccaSGordon Tetlow 45040427ccaSGordon Tetlow2017-08-28 16:37 Christos Zoulas <christos@zoulas.com> 45140427ccaSGordon Tetlow 45240427ccaSGordon Tetlow * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski) 45340427ccaSGordon Tetlow 45440427ccaSGordon Tetlow2017-08-27 03:55 Christos Zoulas <christos@zoulas.com> 45540427ccaSGordon Tetlow 45640427ccaSGordon Tetlow * Fix always true condition (Thomas Jarosch) 45740427ccaSGordon Tetlow 45840427ccaSGordon Tetlow2017-05-24 17:30 Christos Zoulas <christos@zoulas.com> 45940427ccaSGordon Tetlow 46040427ccaSGordon Tetlow * pickier parsing of numeric values in magic files. 46140427ccaSGordon Tetlow 46240427ccaSGordon Tetlow2017-05-23 17:55 Christos Zoulas <christos@zoulas.com> 46340427ccaSGordon Tetlow 46440427ccaSGordon Tetlow * PR/615 add magic_getflags() 46540427ccaSGordon Tetlow 46640427ccaSGordon Tetlow2017-05-23 13:55 Christos Zoulas <christos@zoulas.com> 46740427ccaSGordon Tetlow 46840427ccaSGordon Tetlow * release 5.31 46940427ccaSGordon Tetlow 47040427ccaSGordon Tetlow2017-03-17 20:32 Christos Zoulas <christos@zoulas.com> 47140427ccaSGordon Tetlow 47240427ccaSGordon Tetlow * remove trailing spaces from magic files 47340427ccaSGordon Tetlow * refactor is_tar 47440427ccaSGordon Tetlow * better bounds checks for cdf 47540427ccaSGordon Tetlow 47640427ccaSGordon Tetlow2017-02-10 12:24 Christos Zoulas <christos@zoulas.com> 47740427ccaSGordon Tetlow 47840427ccaSGordon Tetlow * release 5.30 47940427ccaSGordon Tetlow 48040427ccaSGordon Tetlow2017-02-07 23:27 Christos Zoulas <christos@zoulas.com> 48140427ccaSGordon Tetlow 48240427ccaSGordon Tetlow * If we exceeded the offset in a search return no match 48340427ccaSGordon Tetlow (Christoph Biedl) 48440427ccaSGordon Tetlow * Be more lenient on corrupt CDF files (Christoph Biedl) 48540427ccaSGordon Tetlow 48640427ccaSGordon Tetlow2017-02-04 16:46 Christos Zoulas <christos@zoulas.com> 48740427ccaSGordon Tetlow 48840427ccaSGordon Tetlow * pacify ubsan sign extension (oss-fuzz/524) 48940427ccaSGordon Tetlow 49040427ccaSGordon Tetlow2017-02-01 12:42 Christos Zoulas <christos@zoulas.com> 49140427ccaSGordon Tetlow 49240427ccaSGordon Tetlow * off by one in cdf parsing (PR/593) 49340427ccaSGordon Tetlow * report debugging sections in elf (PR/591) 49440427ccaSGordon Tetlow 49540427ccaSGordon Tetlow2016-11-06 10:52 Christos Zoulas <christos@zoulas.com> 49640427ccaSGordon Tetlow 49740427ccaSGordon Tetlow * Allow @@@ in extensions 49840427ccaSGordon Tetlow * Add missing overflow check in der magic (Jonas Wagner) 49940427ccaSGordon Tetlow 500a5d223e6SXin LI2016-10-25 10:40 Christos Zoulas <christos@zoulas.com> 501a5d223e6SXin LI 50240427ccaSGordon Tetlow * release 5.29 503a5d223e6SXin LI 504a5d223e6SXin LI2016-10-24 11:20 Christos Zoulas <christos@zoulas.com> 505a5d223e6SXin LI 506a5d223e6SXin LI * der getlength overflow (Jonas Wagner) 507a5d223e6SXin LI * multiple magic file load failure (Christoph Biedl) 508a5d223e6SXin LI 509a5d223e6SXin LI2016-10-17 11:26 Christos Zoulas <christos@zoulas.com> 510a5d223e6SXin LI 511a5d223e6SXin LI * CDF parsing improvements (Guy Helmer) 512a5d223e6SXin LI 513a5d223e6SXin LI2016-07-20 7:26 Christos Zoulas <christos@zoulas.com> 514a5d223e6SXin LI 515a5d223e6SXin LI * Add support for signed indirect offsets 516a5d223e6SXin LI 517a5d223e6SXin LI2016-07-18 7:41 Christos Zoulas <christos@zoulas.com> 518a5d223e6SXin LI 519a5d223e6SXin LI * cat /dev/null | file - should print empty (Christoph Biedl) 520a5d223e6SXin LI 521a5d223e6SXin LI2016-07-05 15:20 Christos Zoulas <christos@zoulas.com> 522a5d223e6SXin LI 523a5d223e6SXin LI * Bump string size from 64 to 96. 524a5d223e6SXin LI 525a5d223e6SXin LI2016-06-13 20:20 Christos Zoulas <christos@zoulas.com> 526a5d223e6SXin LI 527a5d223e6SXin LI * PR/556: Fix separators on annotations. 528a5d223e6SXin LI 529282e23f0SXin LI2016-06-13 19:40 Christos Zoulas <christos@zoulas.com> 530282e23f0SXin LI 531282e23f0SXin LI * release 5.28 532282e23f0SXin LI * fix leak on allocation failure 533282e23f0SXin LI 534282e23f0SXin LI2016-06-01 1:20 Christos Zoulas <christos@zoulas.com> 535282e23f0SXin LI 536282e23f0SXin LI * PR/555: Avoid overflow for offset > nbytes 537282e23f0SXin LI * PR/550: Segv on DER parsing: 538282e23f0SXin LI - use the correct variable for length 539282e23f0SXin LI - set offset to 0 on failure. 540282e23f0SXin LI 54120f8619dSXin LI2016-05-13 12:00 Christos Zoulas <christos@zoulas.com> 54220f8619dSXin LI 54320f8619dSXin LI * release 5.27 54420f8619dSXin LI 54520f8619dSXin LI2016-04-18 9:35 Christos Zoulas <christos@zoulas.com> 54620f8619dSXin LI 54720f8619dSXin LI * Errors comparing DER entries or computing offsets 54820f8619dSXin LI are just indications of malformed non-DER files. 54920f8619dSXin LI Don't print them. 55020f8619dSXin LI * Offset comparison was off-by-one. 55120f8619dSXin LI * Fix compression code (Werner Fink) 55220f8619dSXin LI * Put new bytes constant in the right file (not the generated one) 55320f8619dSXin LI 5543e41d09dSXin LI2016-04-16 18:34 Christos Zoulas <christos@zoulas.com> 5553e41d09dSXin LI 55620f8619dSXin LI * release 5.26 5573e41d09dSXin LI 5583e41d09dSXin LI2016-03-31 13:50 Christos Zoulas <christos@zoulas.com> 5593e41d09dSXin LI 5603e41d09dSXin LI * make the number of bytes read from files configurable. 5613e41d09dSXin LI 5623e41d09dSXin LI2016-03-21 13:40 Christos Zoulas <christos@zoulas.com> 5633e41d09dSXin LI 5643e41d09dSXin LI * Add bounds checks for DER code (discovered by Thomas Jarosch) 5653e41d09dSXin LI * Change indirect recursion limit to indirect use count and 5663e41d09dSXin LI bump from 15 to 50 to prevent abuse. 5673e41d09dSXin LI 5683e41d09dSXin LI2016-03-13 20:39 Christos Zoulas <christos@zoulas.com> 5693e41d09dSXin LI 5703e41d09dSXin LI * Add -00 which prints filename\0description\0 5713e41d09dSXin LI 5723e41d09dSXin LI2016-03-01 13:28 Christos Zoulas <christos@zoulas.com> 5733e41d09dSXin LI 5743e41d09dSXin LI * Fix ID3 indirect parsing 5753e41d09dSXin LI 5763e41d09dSXin LI2016-01-19 10:18 Christos Zoulas <christos@zoulas.com> 5773e41d09dSXin LI 5783e41d09dSXin LI * add DER parsing capability 5793e41d09dSXin LI 5803e41d09dSXin LI2015-11-13 10:35 Christos Zoulas <christos@zoulas.com> 5813e41d09dSXin LI 5823e41d09dSXin LI * provide dprintf(3) for the OS's that don't have it. 5833e41d09dSXin LI 5843e41d09dSXin LI2015-11-11 16:25 Christos Zoulas <christos@zoulas.com> 5853e41d09dSXin LI 5863e41d09dSXin LI * redo the compression code report decompression errors 5873e41d09dSXin LI 5883e41d09dSXin LI2015-11-10 23:25 Christos Zoulas <christos@zoulas.com> 5893e41d09dSXin LI 5903e41d09dSXin LI * REG_STARTEND code is not working as expected, delete it. 5913e41d09dSXin LI 5923e41d09dSXin LI2015-11-09 16:05 Christos Zoulas <christos@zoulas.com> 5933e41d09dSXin LI 5943e41d09dSXin LI * Add zlib support if we have it. 5953e41d09dSXin LI 5963e41d09dSXin LI2015-11-05 11:22 Christos Zoulas <christos@zoulas.com> 5973e41d09dSXin LI 5983e41d09dSXin LI * PR/492: compression forking was broken with magic_buffer. 5993e41d09dSXin LI 6009ce06829SXin LI2015-09-16 9:50 Christos Zoulas <christos@zoulas.com> 6019ce06829SXin LI 6029ce06829SXin LI * release 5.25 6039ce06829SXin LI 6049ce06829SXin LI2015-09-11 13:25 Christos Zoulas <christos@zoulas.com> 6059ce06829SXin LI 6069ce06829SXin LI * add a limit to the length of regex searches 6079ce06829SXin LI 6089ce06829SXin LI2015-09-08 9:50 Christos Zoulas <christos@zoulas.com> 6099ce06829SXin LI 6109ce06829SXin LI * fix problems with --parameter (Christoph Biedl) 6119ce06829SXin LI 6129ce06829SXin LI2015-07-11 10:35 Christos Zoulas <christos@zoulas.com> 6139ce06829SXin LI 6149ce06829SXin LI * Windows fixes PR/466 (Jason Hood) 6159ce06829SXin LI 6169fc5c47fSXin LI2015-07-09 10:35 Christos Zoulas <christos@zoulas.com> 6179fc5c47fSXin LI 6189fc5c47fSXin LI * release 5.24 6199fc5c47fSXin LI 6203fd03fdbSXin LI2015-06-11 8:52 Christos Zoulas <christos@zoulas.com> 6213fd03fdbSXin LI 6223fd03fdbSXin LI * redo long option encoding to fix off-by-one in 5.23 6235f0216bdSXin LI 6245f0216bdSXin LI2015-06-10 13:50 Christos Zoulas <christos@zoulas.com> 6255f0216bdSXin LI 6265f0216bdSXin LI * release 5.23 6275f0216bdSXin LI 6285f0216bdSXin LI2015-06-09 16:10 Christos Zoulas <christos@zoulas.com> 6295f0216bdSXin LI 6305f0216bdSXin LI * Fix issue with regex range for magic with offset 6315f0216bdSXin LI * Always return true from mget with USE (success to mget not match 6325f0216bdSXin LI indication). Fixes mime evaluation after USE magic 6335f0216bdSXin LI * PR/459: Don't insert magic entries to the list if there are parsing 6345f0216bdSXin LI errors for them. 6355f0216bdSXin LI 6365f0216bdSXin LI2015-06-03 16:00 Christos Zoulas <christos@zoulas.com> 6375f0216bdSXin LI 6385f0216bdSXin LI * PR/455: Add utf-7 encoding 6395f0216bdSXin LI 6405f0216bdSXin LI2015-06-03 14:30 Christos Zoulas <christos@zoulas.com> 6415f0216bdSXin LI 6425f0216bdSXin LI * PR/455: Implement -Z, look inside, but don't report on compression 6435f0216bdSXin LI * PR/454: Fix allocation error on bad magic. 6445f0216bdSXin LI 6455f0216bdSXin LI2015-05-29 10:30 Christos Zoulas <christos@zoulas.com> 6465f0216bdSXin LI 6475f0216bdSXin LI * handle MAGIC_CONTINUE everywhere, not just in softmagic 6485f0216bdSXin LI 6495f0216bdSXin LI2015-05-21 14:30 Christos Zoulas <christos@zoulas.com> 6505f0216bdSXin LI 6515f0216bdSXin LI * don't print descriptions for NAME types when mime. 6525f0216bdSXin LI 6535f0216bdSXin LI2015-04-09 15:59 Christos Zoulas <christos@zoulas.com> 6545f0216bdSXin LI 6555f0216bdSXin LI * Add --extension to list the known extensions for this file type 6565f0216bdSXin LI Idea by Andrew J Roazen 6575f0216bdSXin LI 6585f0216bdSXin LI2015-02-14 12:23 Christos Zoulas <christos@zoulas.com> 6595f0216bdSXin LI 6605f0216bdSXin LI * Bump file search buffer size to 1M. 6615f0216bdSXin LI 6625f0216bdSXin LI2015-01-09 14:35 Christos Zoulas <christos@zoulas.com> 6635f0216bdSXin LI 6645f0216bdSXin LI * Fix multiple issues with date formats reported by Christoph Biedl: 6655f0216bdSXin LI - T_LOCAL meaning was reversed 6665f0216bdSXin LI - Arithmetic did not work 6675f0216bdSXin LI Also stop adjusting daylight savings for gmt printing. 6685f0216bdSXin LI 6695f0216bdSXin LI2015-01-05 13:00 Christos Zoulas <christos@zoulas.com> 6705f0216bdSXin LI 6715f0216bdSXin LI * PR/411: Fix memory corruption from corrupt cdf file. 6725f0216bdSXin LI 6734460e5b0SXin LI2015-01-02 15:15 Christos Zoulas <christos@zoulas.com> 6744460e5b0SXin LI 6754460e5b0SXin LI * release 5.22 6764460e5b0SXin LI 6774460e5b0SXin LI2015-01-01 12:01 Christos Zoulas <christos@zoulas.com> 6784460e5b0SXin LI 6794460e5b0SXin LI * add indirect relative for TIFF/Exif 6804460e5b0SXin LI 6814460e5b0SXin LI2014-12-16 18:10 Christos Zoulas <christos@zoulas.com> 6824460e5b0SXin LI 6834460e5b0SXin LI * restructure elf note printing to avoid repeated messages 6844460e5b0SXin LI * add note limit, suggested by Alexander Cherepanov 6854460e5b0SXin LI 6864460e5b0SXin LI2014-12-16 16:53 Christos Zoulas <christos@zoulas.com> 6874460e5b0SXin LI 6884460e5b0SXin LI * Bail out on partial pread()'s (Alexander Cherepanov) 6894460e5b0SXin LI * Fix incorrect bounds check in file_printable (Alexander Cherepanov) 6904460e5b0SXin LI 6914460e5b0SXin LI2014-12-11 20:01 Christos Zoulas <christos@zoulas.com> 6924460e5b0SXin LI 6934460e5b0SXin LI * PR/405: ignore SIGPIPE from uncompress programs 6944460e5b0SXin LI * change printable -> file_printable and use it in 6954460e5b0SXin LI more places for safety 6964460e5b0SXin LI * in ELF, instead of "(uses dynamic libraries)" when PT_INTERP 6974460e5b0SXin LI is present print the interpreter name. 6984460e5b0SXin LI 699c2931133SXin LI2014-12-10 20:01 Christos Zoulas <christos@zoulas.com> 700c2931133SXin LI 701c2931133SXin LI * release 5.21 702c2931133SXin LI 703c2931133SXin LI2014-11-27 18:40 Christos Zoulas <christos@zoulas.com> 704c2931133SXin LI 705c2931133SXin LI * Allow setting more parameters from the command line. 706c2931133SXin LI * Split name/use and indirect magic recursion limits. 707c2931133SXin LI 708c2931133SXin LI2014-11-27 11:12 Christos Zoulas <christos@zoulas.com> 709c2931133SXin LI 710c2931133SXin LI * Adjust ELF parameters and the default recursion 711c2931133SXin LI level. 712c2931133SXin LI * Allow setting the recursion level dynamically. 713c2931133SXin LI 714c2931133SXin LI2014-11-24 8:55 Christos Zoulas <christos@zoulas.com> 715c2931133SXin LI 716c2931133SXin LI * The following fixes resulted from Thomas Jarosch's fuzzing 717c2931133SXin LI tests that revealed severe performance issues on pathological 718c2931133SXin LI input: 719c2931133SXin LI - limit number of elf program and sections processing 720c2931133SXin LI - abort elf note processing quickly 721c2931133SXin LI - reduce the number of recursion levels from 20 to 10 722c2931133SXin LI - preserve error messages in indirect magic handling 723c2931133SXin LI 7244460e5b0SXin LI This is tracked as CVE-2014-8116 and CVE-2014-8117 7254460e5b0SXin LI 726c2931133SXin LI2014-11-12 10:30 Christos Zoulas <christos@zoulas.com> 727c2931133SXin LI 728c2931133SXin LI * fix bogus free in the user buffer case. 729c2931133SXin LI 730c2931133SXin LI2014-11-11 12:35 Christos Zoulas <christos@zoulas.com> 731c2931133SXin LI 732c2931133SXin LI * fix out of bounds read for pascal strings 733c2931133SXin LI * fix memory leak (not freeing the head of each mlist) 734c2931133SXin LI 735c2931133SXin LI2014-11-07 10:25 Christos Zoulas <christos@zoulas.com> 736c2931133SXin LI 737c2931133SXin LI * When printing strings from a file, convert them to printable 738c2931133SXin LI on a byte by byte basis, so that we don't get issues with 739c2931133SXin LI locale's trying to interpret random byte streams as UTF-8 and 740c2931133SXin LI having printf error out with EILSEQ. 741c2931133SXin LI 742c2931133SXin LI2014-10-17 11:48 Christos Zoulas <christos@zoulas.com> 743c2931133SXin LI 744c2931133SXin LI * fix bounds in note reading (Francisco Alonso / Red Hat) 745c2931133SXin LI 746c2931133SXin LI2014-10-11 15:02 Christos Zoulas <christos@zoulas.com> 747c2931133SXin LI 748c2931133SXin LI * fix autoconf glue for setlocale and locale_t; some OS's 749c2931133SXin LI have locale_t in xlocale.h 750c2931133SXin LI 751c2931133SXin LI2014-10-10 15:01 Christos Zoulas <christos@zoulas.com> 752c2931133SXin LI 753c2931133SXin LI * release 5.20 754c2931133SXin LI 755c2931133SXin LI2014-08-17 10:01 Christos Zoulas <christos@zoulas.com> 756c2931133SXin LI 757c2931133SXin LI * recognize encrypted CDF documents 758c2931133SXin LI 759c2931133SXin LI2014-08-04 9:18 Christos Zoulas <christos@zoulas.com> 760c2931133SXin LI 761c2931133SXin LI * add magic_load_buffers from Brooks Davis 762c2931133SXin LI 763c2931133SXin LI2014-07-24 16:40 Christos Zoulas <christos@zoulas.com> 764c2931133SXin LI 765c2931133SXin LI * add thumbs.db support 766c2931133SXin LI 767b6cee71dSXin LI2014-06-12 12:28 Christos Zoulas <christos@zoulas.com> 768b6cee71dSXin LI 769b6cee71dSXin LI * release 5.19 770b6cee71dSXin LI 771b6cee71dSXin LI2014-06-09 9:04 Christos Zoulas <christos@zoulas.com> 772b6cee71dSXin LI 773b6cee71dSXin LI * Misc buffer overruns and missing buffer size tests in cdf parsing 774b6cee71dSXin LI (Francisco Alonso, Jan Kaluza) 775b6cee71dSXin LI 776b6cee71dSXin LI2014-06-02 14:50 Christos Zoulas <christos@zoulas.com> 777b6cee71dSXin LI 778b6cee71dSXin LI * Enforce limit of 8K on regex searches that have no limits 779b6cee71dSXin LI * Allow the l modifier for regex to mean line count. Default 780b6cee71dSXin LI to byte count. If line count is specified, assume a max 781b6cee71dSXin LI of 80 characters per line to limit the byte count. 782b6cee71dSXin LI * Don't allow conversions to be used for dates, allowing 783b6cee71dSXin LI the mask field to be used as an offset. 784b6cee71dSXin LI 785b6cee71dSXin LI2014-05-30 12:51 Christos Zoulas <christos@zoulas.com> 786b6cee71dSXin LI 787b6cee71dSXin LI * Make the range operator limit the length of the 788b6cee71dSXin LI regex search. 789b6cee71dSXin LI 790b6cee71dSXin LI2014-05-14 19:23 Christos Zoulas <christos@zoulas.com> 791b6cee71dSXin LI 792b6cee71dSXin LI * PR/347: Windows fixes 793b6cee71dSXin LI * PR/352: Hangul word processor recognition 794b6cee71dSXin LI * PR/354: Encoding irregularities in text files 795b6cee71dSXin LI 796b6cee71dSXin LI2014-05-06 6:12 Christos Zoulas <christos@zoulas.com> 797b6cee71dSXin LI 798b6cee71dSXin LI * Fix uninitialized title in CDF files (Jan Kaluza) 799b6cee71dSXin LI 800b6cee71dSXin LI2014-05-04 14:55 Christos Zoulas <christos@zoulas.com> 801b6cee71dSXin LI 802b6cee71dSXin LI * PR/351: Fix compilation of empty files 803b6cee71dSXin LI 804b6cee71dSXin LI2014-04-30 17:39 Christos Zoulas <christos@zoulas.com> 805b6cee71dSXin LI 806b6cee71dSXin LI * Fix integer formats: We don't specify 'l' or 807b6cee71dSXin LI 'h' and 'hh' specifiers anymore, only 'll' for 808b6cee71dSXin LI quads and nothing for the rest. This is so that 809b6cee71dSXin LI magic writing is simpler. 810b6cee71dSXin LI 811b6cee71dSXin LI2014-04-01 15:25 Christos Zoulas <christos@zoulas.com> 812b6cee71dSXin LI 813b6cee71dSXin LI * PR/341: Jan Kaluza, fix memory leak 814b6cee71dSXin LI * PR/342: Jan Kaluza, fix out of bounds read 815b6cee71dSXin LI 816b6cee71dSXin LI2014-03-28 15:25 Christos Zoulas <christos@zoulas.com> 817b6cee71dSXin LI 818b6cee71dSXin LI * Fix issue with long formats not matching fmtcheck 819b6cee71dSXin LI 820b6cee71dSXin LI2014-03-26 11:25 Christos Zoulas <christos@zoulas.com> 821b6cee71dSXin LI 822b6cee71dSXin LI * release 5.18 823b6cee71dSXin LI 824b6cee71dSXin LI2014-03-15 17:45 Christos Zoulas <christos@zoulas.com> 825b6cee71dSXin LI 826b6cee71dSXin LI * add fmtcheck(3) for those who don't have it 827b6cee71dSXin LI 828b6cee71dSXin LI2014-03-14 15:12 Christos Zoulas <christos@zoulas.com> 829b6cee71dSXin LI 830b6cee71dSXin LI * prevent mime entries from being attached to magic 831b6cee71dSXin LI entries with no descriptions 832b6cee71dSXin LI 833b6cee71dSXin LI * adjust magic strength for regex type 834b6cee71dSXin LI 835b6cee71dSXin LI * remove superfluous ascmagic with encoding test 836b6cee71dSXin LI 837b6cee71dSXin LI2014-03-06 12:01 Christos Zoulas <christos@zoulas.com> 838b6cee71dSXin LI 839b6cee71dSXin LI * fix regression fix echo -ne "\012\013\014" | file -i - 840b6cee71dSXin LI which printed "binary" instead of "application/octet-stream" 841b6cee71dSXin LI 842b6cee71dSXin LI * add size_t overflow check for magic file size 843b6cee71dSXin LI 844b6cee71dSXin LI2014-02-27 16:01 Christos Zoulas <christos@zoulas.com> 845b6cee71dSXin LI 846b6cee71dSXin LI * experimental support for matching with CFD CLSID 847b6cee71dSXin LI 848b6cee71dSXin LI2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) 849b6cee71dSXin LI 850b6cee71dSXin LI * Cache old LC_CTYPE locale before setting it to "C", so 851b6cee71dSXin LI we can use it to restore LC_CTYPE instead of asking 852b6cee71dSXin LI setlocale() to scan the environment variables. 853b6cee71dSXin LI 854b6cee71dSXin LI2014-02-12 18:21 Christos Zoulas <christos@zoulas.com> 855b6cee71dSXin LI 856b6cee71dSXin LI * Count recursion levels through indirect magic 857b6cee71dSXin LI 858b6cee71dSXin LI2014-02-11 10:40 Christos Zoulas <christos@zoulas.com> 859b6cee71dSXin LI 860b6cee71dSXin LI * Prevent infinite recursion on files with indirect offsets of 0 861b6cee71dSXin LI 862b6cee71dSXin LI2014-01-30 21:00 Christos Zoulas <christos@zoulas.com> 863b6cee71dSXin LI 864b6cee71dSXin LI * Add -E flag that makes file print filesystem errors to stderr 865b6cee71dSXin LI and exit. 866b6cee71dSXin LI 867b6cee71dSXin LI2014-01-08 17:20 Christos Zoulas <christos@zoulas.com> 868b6cee71dSXin LI 869b6cee71dSXin LI * mime printing could print results from multiple magic entries 870b6cee71dSXin LI if there were multiple matches. 871b6cee71dSXin LI * in some cases overflow was not detected when computing offsets 872b6cee71dSXin LI in softmagic. 873b6cee71dSXin LI 874b6cee71dSXin LI2013-12-05 12:00 Christos Zoulas <christos@zoulas.com> 875b6cee71dSXin LI 876b6cee71dSXin LI * use strcasestr() to for cdf strings 877b6cee71dSXin LI * reset to the "C" locale while doing regex operations, or case 878b6cee71dSXin LI insensitive comparisons; this is provisional 879b6cee71dSXin LI 880b6cee71dSXin LI2013-11-19 20:10 Christos Zoulas <christos@zoulas.com> 881b6cee71dSXin LI 882b6cee71dSXin LI * always leave magic file loaded, don't unload for magic_check, etc. 883b6cee71dSXin LI * fix default encoding to binary instead of unknown which broke recently 884b6cee71dSXin LI * handle empty and one byte files, less specially so that 885b6cee71dSXin LI --mime-encoding does not break completely. 886b6cee71dSXin LI ` 887b6cee71dSXin LI2013-11-06 14:40 Christos Zoulas <christos@zoulas.com> 888b6cee71dSXin LI 88940427ccaSGordon Tetlow * fix erroneous non-zero exit code from non-existent file and message 890b6cee71dSXin LI 891b6cee71dSXin LI2013-10-29 14:25 Christos Zoulas <christos@zoulas.com> 892b6cee71dSXin LI 893b6cee71dSXin LI * add CDF MSI file detection (Guy Helmer) 894b6cee71dSXin LI 895b6cee71dSXin LI2013-09-03 11:56 Christos Zoulas <christos@zoulas.com> 896b6cee71dSXin LI 897b6cee71dSXin LI * Don't mix errors and regular output if there was an error 898b6cee71dSXin LI * in magic_descriptor() don't close the file and try to restore 899b6cee71dSXin LI its position 900b6cee71dSXin LI 901b6cee71dSXin LI2013-05-30 17:25 Christos Zoulas <christos@zoulas.com> 902b6cee71dSXin LI 903b6cee71dSXin LI * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 904b6cee71dSXin LI 905b6cee71dSXin LI2013-05-28 17:25 Christos Zoulas <christos@zoulas.com> 906b6cee71dSXin LI 907b6cee71dSXin LI * Fix spacing issues in softmagic and elf (Jan Kaluza) 908b6cee71dSXin LI 909b6cee71dSXin LI2013-05-02 18:00 Christos Zoulas <christos@zoulas.com> 910b6cee71dSXin LI 911b6cee71dSXin LI * Fix segmentation fault with multiple magic_load commands. 912b6cee71dSXin LI 913b6cee71dSXin LI2013-04-22 11:20 Christos Zoulas <christos@zoulas.com> 914b6cee71dSXin LI 915b6cee71dSXin LI * The way "default" was implemented was not very useful 916b6cee71dSXin LI because the "if something was printed at that level" 917b6cee71dSXin LI was not easily controlled by the user, and the format 918b6cee71dSXin LI was bound to a string which is too restrictive. Add 919b6cee71dSXin LI a "clear" for that level keyword and make "default" 920b6cee71dSXin LI void. This way one can do: 921b6cee71dSXin LI 922b6cee71dSXin LI >>13 clear x 923b6cee71dSXin LI >>13 lelong 1 foo 924b6cee71dSXin LI >>13 lelong 2 bar 925b6cee71dSXin LI >>13 default x 926b6cee71dSXin LI >>>13 lelong x unknown %x 927b6cee71dSXin LI 928b6cee71dSXin LI2013-03-25 13:20 Christos Zoulas <christos@zoulas.com> 929b6cee71dSXin LI 930b6cee71dSXin LI * disallow strength setting in "name" entries 931b6cee71dSXin LI 932b6cee71dSXin LI2013-03-06 21:24 Christos Zoulas <christos@zoulas.com> 933b6cee71dSXin LI 934b6cee71dSXin LI * fix recursive magic separator printing 935b6cee71dSXin LI 936b6cee71dSXin LI2013-02-26 19:28 Christos Zoulas <christos@zoulas.com> 937b6cee71dSXin LI 938b6cee71dSXin LI * limit recursion level for mget 939b6cee71dSXin LI * fix pread() related breakage in cdf 940b6cee71dSXin LI * handle offsets properly in recursive "use" 941b6cee71dSXin LI 942b6cee71dSXin LI2013-02-18 10:39 Christos Zoulas <christos@zoulas.com> 943b6cee71dSXin LI 944b6cee71dSXin LI * add elf reading of debug info to determine if file is stripped 945b6cee71dSXin LI (Jan Kaluza) 946b6cee71dSXin LI * use pread() 947b6cee71dSXin LI 948b6cee71dSXin LI2013-01-25 18:05 Christos Zoulas <christos@zoulas.com> 949b6cee71dSXin LI 950b6cee71dSXin LI * change mime description size from 64 to 80 to accommodate OOXML. 951b6cee71dSXin LI 952b6cee71dSXin LI2013-01-11 14:50 Christos Zoulas <christos@zoulas.com> 953b6cee71dSXin LI 954b6cee71dSXin LI * Warn about inconsistent continuation levels. 955b6cee71dSXin LI * Change fsmagic to add a space after it prints. 956b6cee71dSXin LI 957b6cee71dSXin LI2013-01-10 21:00 Christos Zoulas <christos@zoulas.com> 958b6cee71dSXin LI 959b6cee71dSXin LI * Make getline public so that file can link against it. 960b6cee71dSXin LI Perhaps it is better to rename it, or hide it differently. 961b6cee71dSXin LI Fixes builds on platforms that do not provide it. 962b6cee71dSXin LI 963b6cee71dSXin LI2013-01-07 16:30 Christos Zoulas <christos@zoulas.com> 964b6cee71dSXin LI 965b6cee71dSXin LI * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document 966b6cee71dSXin LI what long, int, short, etc is (Guy Harris) 967b6cee71dSXin LI 968b6cee71dSXin LI2013-01-06 11:20 Christos Zoulas <christos@zoulas.com> 969b6cee71dSXin LI 970b6cee71dSXin LI * add magic_version function and constant 971b6cee71dSXin LI * Redo memory allocation and de-allocation. 972b6cee71dSXin LI (prevents double frees on non mmap platforms) 973b6cee71dSXin LI * Fix bug with name/use having to do with passing 974b6cee71dSXin LI found state from the parent to the child and back. 975b6cee71dSXin LI 976b6cee71dSXin LI2012-12-19 8:47 Christos Zoulas <christos@zoulas.com> 977b6cee71dSXin LI 978b6cee71dSXin LI * Only print elf capabilities for archs we know (Jan Kaluza) 979b6cee71dSXin LI 980b6cee71dSXin LI2012-10-30 19:14 Christos Zoulas <christos@zoulas.com> 981b6cee71dSXin LI 982b6cee71dSXin LI * Add "name" and "use" file types in order to look 983b6cee71dSXin LI inside mach-o files. 984b6cee71dSXin LI 985b6cee71dSXin LI2012-09-06 10:40 Christos Zoulas <christos@zoulas.com> 986b6cee71dSXin LI 987b6cee71dSXin LI * make --version exit 0 (Matthew Schultz) 988b6cee71dSXin LI * add string/T (Jan Kaluza) 989b6cee71dSXin LI 990b6cee71dSXin LI2012-08-09 2:15 Christos Zoulas <christos@zoulas.com> 991b6cee71dSXin LI 992b6cee71dSXin LI * add z and t modifiers for our own vasprintf 993b6cee71dSXin LI * search for $HOME/.magic.mgc if it is there first 994b6cee71dSXin LI * fix reads from a pipe, and preserve errno 995b6cee71dSXin LI 996b6cee71dSXin LI2012-05-15 13:12 Christos Zoulas <christos@zoulas.com> 997b6cee71dSXin LI 998b6cee71dSXin LI * use ctime_r, asctime_r 999b6cee71dSXin LI 1000b6cee71dSXin LI2012-04-06 17:18 Christos Zoulas <christos@zoulas.com> 1001b6cee71dSXin LI 1002b6cee71dSXin LI * Fixes for indirect offsets to handle apple disk formats 1003b6cee71dSXin LI 1004b6cee71dSXin LI2012-04-03 18:26 Christos Zoulas <christos@zoulas.com> 1005b6cee71dSXin LI 1006b6cee71dSXin LI * Add windows date field types 1007b6cee71dSXin LI * More info for windows shortcuts (incomplete) 1008b6cee71dSXin LI 100980c86c36SDavid E. O'Brien2012-02-20 17:33 Christos Zoulas <christos@zoulas.com> 101080c86c36SDavid E. O'Brien 101180c86c36SDavid E. O'Brien * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann) 101280c86c36SDavid E. O'Brien 101380c86c36SDavid E. O'Brien2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com> 101480c86c36SDavid E. O'Brien 101580c86c36SDavid E. O'Brien * Support Tilera architectures (tile64, tilepro, tilegx). 101680c86c36SDavid E. O'Brien 101780c86c36SDavid E. O'Brien2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org> 101880c86c36SDavid E. O'Brien 101980c86c36SDavid E. O'Brien * Add magic for /usr/bin/env Perl scripts 102080c86c36SDavid E. O'Brien * Weaken generic script magic to avoid clashing with 102180c86c36SDavid E. O'Brien language-specific magic. 102280c86c36SDavid E. O'Brien 102380c86c36SDavid E. O'Brien2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org> 102480c86c36SDavid E. O'Brien 102580c86c36SDavid E. O'Brien * Simplify if (p) free(p) to free(p). 102680c86c36SDavid E. O'Brien 102780c86c36SDavid E. O'Brien2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org> 102880c86c36SDavid E. O'Brien 102980c86c36SDavid E. O'Brien * Remove hardwired token finding (names.h), turning it into soft 103080c86c36SDavid E. O'Brien magic. Patterns are either anchored regexs or search/8192. English 103180c86c36SDavid E. O'Brien language detection and PL/1 detection have been removed as they 103280c86c36SDavid E. O'Brien were too fragile. -e tokens is still accepted for backwards 103380c86c36SDavid E. O'Brien compatibility. 103480c86c36SDavid E. O'Brien * Move 3ds patterns (which are commented out anyway) into autodesk 103580c86c36SDavid E. O'Brien (they were, oddly, in c-lang). 103680c86c36SDavid E. O'Brien 103780c86c36SDavid E. O'Brien2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org> 103880c86c36SDavid E. O'Brien 103980c86c36SDavid E. O'Brien * Tweak strength of generic hash-bang detectors to be less than 104080c86c36SDavid E. O'Brien specific ones. 104180c86c36SDavid E. O'Brien * Make an inconsistent description of Python scripts consistent. 104280c86c36SDavid E. O'Brien 104380c86c36SDavid E. O'Brien2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org> 104480c86c36SDavid E. O'Brien 104580c86c36SDavid E. O'Brien * Fix minor error in file(1). 104680c86c36SDavid E. O'Brien 104780c86c36SDavid E. O'Brien2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org> 104880c86c36SDavid E. O'Brien 104980c86c36SDavid E. O'Brien * Fix issue #150 (I hope). 105080c86c36SDavid E. O'Brien 105180c86c36SDavid E. O'Brien2011-09-22 12:57 Christos Zoulas <christos@zoulas.com> 105280c86c36SDavid E. O'Brien 105380c86c36SDavid E. O'Brien * Python3 binding fixes from Kelly Anderson 105480c86c36SDavid E. O'Brien 105580c86c36SDavid E. O'Brien2011-09-20 11:32 Christos Zoulas <christos@zoulas.com> 105680c86c36SDavid E. O'Brien 105780c86c36SDavid E. O'Brien * If a string type magic entry is marked as text or binary 105880c86c36SDavid E. O'Brien only match text files against text entries and binary 105980c86c36SDavid E. O'Brien files against binary entries. 106080c86c36SDavid E. O'Brien 106180c86c36SDavid E. O'Brien2011-09-01 12:12 Christos Zoulas <christos@zoulas.com> 106280c86c36SDavid E. O'Brien 106380c86c36SDavid E. O'Brien * Don't wait for any subprocess, just the one we forked. 106480c86c36SDavid E. O'Brien 106580c86c36SDavid E. O'Brien2011-08-26 16:40 Christos Zoulas <christos@zoulas.com> 106680c86c36SDavid E. O'Brien 106780c86c36SDavid E. O'Brien * If the application name is not set in a cdf file, try to see 106880c86c36SDavid E. O'Brien if it has a directory with the application name on it. 106980c86c36SDavid E. O'Brien 107080c86c36SDavid E. O'Brien2011-08-17 14:32 Christos Zoulas <christos@zoulas.com> 107180c86c36SDavid E. O'Brien 107280c86c36SDavid E. O'Brien * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza 107380c86c36SDavid E. O'Brien 107480c86c36SDavid E. O'Brien2011-08-14 09:03 Christos Zoulas <christos@zoulas.com> 107580c86c36SDavid E. O'Brien 107680c86c36SDavid E. O'Brien * Don't use variable string formats. 107780c86c36SDavid E. O'Brien 107880c86c36SDavid E. O'Brien2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org> 107980c86c36SDavid E. O'Brien 108080c86c36SDavid E. O'Brien * Fix detection of Zip files (Mantis #128). 108180c86c36SDavid E. O'Brien * Make some minor improvements to file(1). 108280c86c36SDavid E. O'Brien * Rename MIME types for filesystem objects for consistency with 108380c86c36SDavid E. O'Brien xdg-utils. Typically this means that application/x-foo becomes 108480c86c36SDavid E. O'Brien inode/foo, but some names also change slightly, e.g. 108580c86c36SDavid E. O'Brien application/x-character-device becomes inode/chardevice. 108680c86c36SDavid E. O'Brien 108780c86c36SDavid E. O'Brien2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 108880c86c36SDavid E. O'Brien 108980c86c36SDavid E. O'Brien * fix mingw compilation (Abradoks) 109080c86c36SDavid E. O'Brien 109180c86c36SDavid E. O'Brien2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 109280c86c36SDavid E. O'Brien 109380c86c36SDavid E. O'Brien * remove patchlevel.h 109480c86c36SDavid E. O'Brien * Fix read past allocated memory caused by double-incrementing 109580c86c36SDavid E. O'Brien a pointer in a loop (reported by Roberto Maar) 109680c86c36SDavid E. O'Brien 109780c86c36SDavid E. O'Brien2011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 109880c86c36SDavid E. O'Brien 109980c86c36SDavid E. O'Brien * Fix cdf string buffer setting (Sven Anders) 110080c86c36SDavid E. O'Brien 110180c86c36SDavid E. O'Brien2011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 110280c86c36SDavid E. O'Brien 110380c86c36SDavid E. O'Brien * Eliminate MAXPATHLEN and use dynamic allocation for 110480c86c36SDavid E. O'Brien path and file buffers. 110580c86c36SDavid E. O'Brien 110680c86c36SDavid E. O'Brien2011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 110780c86c36SDavid E. O'Brien 110880c86c36SDavid E. O'Brien * binary tests on magic entries with masks could spuriously 110980c86c36SDavid E. O'Brien get converted to ascii. 111080c86c36SDavid E. O'Brien 111180c86c36SDavid E. O'Brien2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 111280c86c36SDavid E. O'Brien 111380c86c36SDavid E. O'Brien * Improve file.man (remove BUGS, present email addresses consistently). 111480c86c36SDavid E. O'Brien 111580c86c36SDavid E. O'Brien2011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 111680c86c36SDavid E. O'Brien 111780c86c36SDavid E. O'Brien * add lrzip support (from Ville Skytta) 111880c86c36SDavid E. O'Brien 111980c86c36SDavid E. O'Brien2011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 112080c86c36SDavid E. O'Brien 112180c86c36SDavid E. O'Brien * fix CDF bounds checking (Guy Helmer) 112280c86c36SDavid E. O'Brien 112380c86c36SDavid E. O'Brien2011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 112480c86c36SDavid E. O'Brien 112580c86c36SDavid E. O'Brien * add cdf_ctime() that prints a meaningful error when time cannot 112680c86c36SDavid E. O'Brien be converted. 112780c86c36SDavid E. O'Brien 112880c86c36SDavid E. O'Brien2011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 112980c86c36SDavid E. O'Brien 113080c86c36SDavid E. O'Brien * help and version output to stdout. 113180c86c36SDavid E. O'Brien 113280c86c36SDavid E. O'Brien * When matching softmagic for ascii files, don't just print 113380c86c36SDavid E. O'Brien the softmagic classification, keep going and print the 113480c86c36SDavid E. O'Brien text classification too. This fixes broken troff files when 113580c86c36SDavid E. O'Brien we moved them from keyword recognition to softmagic 113680c86c36SDavid E. O'Brien (they stopped printing "with CRLF" etc.) 113780c86c36SDavid E. O'Brien Reported by Doug McIlroy. 113880c86c36SDavid E. O'Brien 113980c86c36SDavid E. O'Brien2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 114080c86c36SDavid E. O'Brien 114180c86c36SDavid E. O'Brien * Fix two potential buffer overruns in apprentice_list. 114280c86c36SDavid E. O'Brien 114380c86c36SDavid E. O'Brien2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 114480c86c36SDavid E. O'Brien 114580c86c36SDavid E. O'Brien * New Python binding in pure Python. 114680c86c36SDavid E. O'Brien * Update libmagic(3). 114780c86c36SDavid E. O'Brien 114880c86c36SDavid E. O'Brien2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 114980c86c36SDavid E. O'Brien 115080c86c36SDavid E. O'Brien * Fix Python bindings (including recent Python 3 compatibility 115180c86c36SDavid E. O'Brien update). 115280c86c36SDavid E. O'Brien 115380c86c36SDavid E. O'Brien2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 115480c86c36SDavid E. O'Brien 115580c86c36SDavid E. O'Brien * magic/Makefile.am: make it easier to recover from magic build failures. 115680c86c36SDavid E. O'Brien * Fix pstring length specifier parsing to avoid generating invalid 115780c86c36SDavid E. O'Brien magic files. 115880c86c36SDavid E. O'Brien * Add pstring length "J" (for "JPEG") to specify that the length 115980c86c36SDavid E. O'Brien include itself. 116080c86c36SDavid E. O'Brien * Fix JPEG comment parsing at last using pstring/HJ! 116180c86c36SDavid E. O'Brien * Ignore section 5 man pages in doc/.cvsignore. 116280c86c36SDavid E. O'Brien 116380c86c36SDavid E. O'Brien2010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 116480c86c36SDavid E. O'Brien 116580c86c36SDavid E. O'Brien * Add pstring/BHhLl to specify the type of the length of pascal 116680c86c36SDavid E. O'Brien strings. 116780c86c36SDavid E. O'Brien 116880c86c36SDavid E. O'Brien2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 116980c86c36SDavid E. O'Brien 117080c86c36SDavid E. O'Brien * Fix "-e soft": it was ignored when softmagic was called 117180c86c36SDavid E. O'Brien during asciimagic. 117280c86c36SDavid E. O'Brien * Improve comments and use "unsigned char" in tar.h/is_tar.c. 117380c86c36SDavid E. O'Brien 117480c86c36SDavid E. O'Brien2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 117580c86c36SDavid E. O'Brien 117680c86c36SDavid E. O'Brien * Make bug reporting addresses more visible. 117780c86c36SDavid E. O'Brien 117880c86c36SDavid E. O'Brien2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 117980c86c36SDavid E. O'Brien 118080c86c36SDavid E. O'Brien * Add tcl magic from Gustaf Neumann 118180c86c36SDavid E. O'Brien 118280c86c36SDavid E. O'Brien2010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 118380c86c36SDavid E. O'Brien 118480c86c36SDavid E. O'Brien * Fix the whitespace comparing code (Christopher Chittleborough) 118580c86c36SDavid E. O'Brien 118680c86c36SDavid E. O'Brien2010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 118780c86c36SDavid E. O'Brien 118880c86c36SDavid E. O'Brien * allow string/t to work (Jan Kaluza) 118980c86c36SDavid E. O'Brien 119080c86c36SDavid E. O'Brien2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 119180c86c36SDavid E. O'Brien 119280c86c36SDavid E. O'Brien * Apply some patches from Ubuntu and Fedora. 119380c86c36SDavid E. O'Brien 119480c86c36SDavid E. O'Brien2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 119580c86c36SDavid E. O'Brien 119680c86c36SDavid E. O'Brien * Apply all patches from Debian package 5.04-6 which have not 119780c86c36SDavid E. O'Brien already been applied and are not Debian-specific. 119880c86c36SDavid E. O'Brien 119980c86c36SDavid E. O'Brien2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 120080c86c36SDavid E. O'Brien 120180c86c36SDavid E. O'Brien * Minor security fix to softmagic.c (don't use untrusted 120280c86c36SDavid E. O'Brien string as printf format). 120380c86c36SDavid E. O'Brien 120480c86c36SDavid E. O'Brien2010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 120580c86c36SDavid E. O'Brien 120680c86c36SDavid E. O'Brien * MINGW32 portability from LRN 120780c86c36SDavid E. O'Brien 120880c86c36SDavid E. O'Brien * Don't warn about escaping magic regex chars when we are in a regex. 120980c86c36SDavid E. O'Brien 121080c86c36SDavid E. O'Brien2010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 121180c86c36SDavid E. O'Brien 121280c86c36SDavid E. O'Brien * Only try to print prpsinfo for core files. (Jan Kaluza) 121380c86c36SDavid E. O'Brien 121480c86c36SDavid E. O'Brien2010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 121580c86c36SDavid E. O'Brien 121680c86c36SDavid E. O'Brien * Try more elf offsets for Debian core files. (Arnaud Giersch) 121780c86c36SDavid E. O'Brien 121880c86c36SDavid E. O'Brien2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 121980c86c36SDavid E. O'Brien 122080c86c36SDavid E. O'Brien * Clarify which sort of CDF we mean. 122180c86c36SDavid E. O'Brien 122280c86c36SDavid E. O'Brien2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 122380c86c36SDavid E. O'Brien 122480c86c36SDavid E. O'Brien * Re-jig Zip file type magic so that unsupported special 122580c86c36SDavid E. O'Brien Zip types (those with "mimetype" at offset 30) can be 122680c86c36SDavid E. O'Brien recognized. 122780c86c36SDavid E. O'Brien 122880c86c36SDavid E. O'Brien2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 122980c86c36SDavid E. O'Brien 123080c86c36SDavid E. O'Brien * Add support for OCF (EPUB) files (application/epub+zip) 123180c86c36SDavid E. O'Brien 123280c86c36SDavid E. O'Brien2010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 123380c86c36SDavid E. O'Brien 123480c86c36SDavid E. O'Brien * Fix core-dump from unbound loop: 123580c86c36SDavid E. O'Brien https://bugzilla.redhat.com/show_bug.cgi?id=533245 123680c86c36SDavid E. O'Brien 123780c86c36SDavid E. O'Brien2010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 123880c86c36SDavid E. O'Brien 123980c86c36SDavid E. O'Brien * print proper mime for crystal reports file 124080c86c36SDavid E. O'Brien 124180c86c36SDavid E. O'Brien * print the last summary information of a cdf document, not the 124280c86c36SDavid E. O'Brien first so that nested documents print the right info 124380c86c36SDavid E. O'Brien 124480c86c36SDavid E. O'Brien2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 124580c86c36SDavid E. O'Brien 124680c86c36SDavid E. O'Brien * bring back some fixes from OpenBSD: 124780c86c36SDavid E. O'Brien - make gcc2 builds file 124880c86c36SDavid E. O'Brien - fix typos in a magic file comment 124980c86c36SDavid E. O'Brien 125080c86c36SDavid E. O'Brien2009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 125180c86c36SDavid E. O'Brien 125280c86c36SDavid E. O'Brien * ctime/asctime can return NULL on some OS's although 125380c86c36SDavid E. O'Brien they should not (Toshit Antani) 125480c86c36SDavid E. O'Brien 125580c86c36SDavid E. O'Brien2009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 125680c86c36SDavid E. O'Brien 125780c86c36SDavid E. O'Brien * Centralize magic path handling routines and remove the 125880c86c36SDavid E. O'Brien special-casing from file.c so that the python module for 125980c86c36SDavid E. O'Brien example comes up with the same magic path (Fixes ~/.magic 126080c86c36SDavid E. O'Brien handling) (from Gab) 126180c86c36SDavid E. O'Brien 126280c86c36SDavid E. O'Brien2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 126380c86c36SDavid E. O'Brien 126480c86c36SDavid E. O'Brien * When magic argument is a directory, read the files in 126580c86c36SDavid E. O'Brien strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 126680c86c36SDavid E. O'Brien 126780c86c36SDavid E. O'Brien2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 126880c86c36SDavid E. O'Brien 126980c86c36SDavid E. O'Brien * Combine overlapping epoc and psion magic files into one (epoc). 127080c86c36SDavid E. O'Brien 127180c86c36SDavid E. O'Brien * Add some more EPOC MIME types. 127280c86c36SDavid E. O'Brien 127380c86c36SDavid E. O'Brien2009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 127480c86c36SDavid E. O'Brien 127580c86c36SDavid E. O'Brien * Fix 3 bugs (From Ian Darwin): 127680c86c36SDavid E. O'Brien - file_showstr could move one past the end of the array 127780c86c36SDavid E. O'Brien - parse_apple did not nul terminate the string in the overflow case 127880c86c36SDavid E. O'Brien - parse_mime truncated the wrong string in the overflow case 127980c86c36SDavid E. O'Brien 128080c86c36SDavid E. O'Brien2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 128180c86c36SDavid E. O'Brien 128280c86c36SDavid E. O'Brien * Include Localstuff when compiling magic. 128380c86c36SDavid E. O'Brien 128480c86c36SDavid E. O'Brien2009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 128580c86c36SDavid E. O'Brien 128680c86c36SDavid E. O'Brien * Fix logic for including mygetopts.h 128780c86c36SDavid E. O'Brien 128880c86c36SDavid E. O'Brien * Make cdf.c compile again with debugging 128980c86c36SDavid E. O'Brien 129080c86c36SDavid E. O'Brien * Add the necessary field handling for crystal reports files to work 129180c86c36SDavid E. O'Brien 129280c86c36SDavid E. O'Brien2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 129380c86c36SDavid E. O'Brien 129480c86c36SDavid E. O'Brien * Stop "(if" identifying Lisp files, that's plain dumb! 129580c86c36SDavid E. O'Brien 129680c86c36SDavid E. O'Brien2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 129780c86c36SDavid E. O'Brien 129880c86c36SDavid E. O'Brien * Add a couple of missing MP3 MIME types. 129980c86c36SDavid E. O'Brien 130080c86c36SDavid E. O'Brien2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 130180c86c36SDavid E. O'Brien 130280c86c36SDavid E. O'Brien * Add full range of hash-bang tests for Python and Ruby. 130380c86c36SDavid E. O'Brien 130480c86c36SDavid E. O'Brien * Add MIME types for Python and Ruby scripts. 130580c86c36SDavid E. O'Brien 130680c86c36SDavid E. O'Brien2009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 130780c86c36SDavid E. O'Brien 130880c86c36SDavid E. O'Brien * off by one in parsing hw capabilities in elf 130980c86c36SDavid E. O'Brien (Cheng Renquan) 131080c86c36SDavid E. O'Brien 131180c86c36SDavid E. O'Brien2009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 131280c86c36SDavid E. O'Brien 131380c86c36SDavid E. O'Brien * lint fixes and more from NetBSD 131480c86c36SDavid E. O'Brien 131570b95ceeSXin LI2009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 131670b95ceeSXin LI 131770b95ceeSXin LI * Avoid null dereference in cdf code (Drew Yao) 131870b95ceeSXin LI 131970b95ceeSXin LI * More cdf bounds checks and overflow checks 132070b95ceeSXin LI 132170b95ceeSXin LI2009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 132270b95ceeSXin LI 132370b95ceeSXin LI * Buffer overflow fixes from Drew Yao 132470b95ceeSXin LI 132570b95ceeSXin LI2009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 132670b95ceeSXin LI 132770b95ceeSXin LI * Fix more cdf lossage. All the documents I have 132870b95ceeSXin LI right now print the correct information. 132970b95ceeSXin LI 133070b95ceeSXin LI2009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 133170b95ceeSXin LI 133270b95ceeSXin LI * don't print \012- separators in the same magic entry 133370b95ceeSXin LI if it consists of multiple magic printing lines. 133470b95ceeSXin LI 133570b95ceeSXin LI2009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 133670b95ceeSXin LI 133770b95ceeSXin LI * Avoid file descriptor leak in compress code from 133870b95ceeSXin LI (Daniel Novotny) 133970b95ceeSXin LI 134070b95ceeSXin LI2009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 134170b95ceeSXin LI 134270b95ceeSXin LI * Allow escaping of relation characters, so that we can say \^[A-Z] 134370b95ceeSXin LI and the ^ is not eaten as a relation char. 134470b95ceeSXin LI 134570b95ceeSXin LI * Fix troff and fortran to their previous glory using 134670b95ceeSXin LI regex. This was broken since their removel from ascmagic. 134770b95ceeSXin LI 134870b95ceeSXin LI2009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 134970b95ceeSXin LI 135070b95ceeSXin LI * don't use strlen in strndup() (Toby Peterson) 135170b95ceeSXin LI 135270b95ceeSXin LI2009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 135370b95ceeSXin LI 135470b95ceeSXin LI * avoid c99 syntax. 135570b95ceeSXin LI 135670b95ceeSXin LI2009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 135770b95ceeSXin LI 135870b95ceeSXin LI * make the cdf code use the buffer first if available, 135970b95ceeSXin LI and then the fd code. 136070b95ceeSXin LI 136170b95ceeSXin LI2009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 136270b95ceeSXin LI 136370b95ceeSXin LI * look for struct option to determine if getopt.h is usable for IRIX. 136470b95ceeSXin LI 136570b95ceeSXin LI * sanitize cdf document strings 136670b95ceeSXin LI 136770b95ceeSXin LI2009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 136870b95ceeSXin LI 136970b95ceeSXin LI * fix OS/2 warnings. 137070b95ceeSXin LI 13717dbb948bSDavid E. O'Brien2008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 13727dbb948bSDavid E. O'Brien 13737dbb948bSDavid E. O'Brien * fix initial offset calculation for non 4K sector files 13747dbb948bSDavid E. O'Brien 13757dbb948bSDavid E. O'Brien * add loop limits to avoid DoS attacks by constructing 13767dbb948bSDavid E. O'Brien looping sector references. 13777dbb948bSDavid E. O'Brien 13787dbb948bSDavid E. O'Brien2008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 13797dbb948bSDavid E. O'Brien 13807dbb948bSDavid E. O'Brien * fix memory botches on cdf file parsing. 13817dbb948bSDavid E. O'Brien 13827dbb948bSDavid E. O'Brien * exit with non-zero value for any error, not just for the last 13837dbb948bSDavid E. O'Brien file processed. 13847dbb948bSDavid E. O'Brien 13857dbb948bSDavid E. O'Brien2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 13867dbb948bSDavid E. O'Brien 13877dbb948bSDavid E. O'Brien * Replace all str{cpy,cat} functions with strl{cpy,cat} 13887dbb948bSDavid E. O'Brien * Ensure that strl{cpy,cat} are included in libmagic, 13897dbb948bSDavid E. O'Brien as needed. 13907dbb948bSDavid E. O'Brien 13917dbb948bSDavid E. O'Brien2008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 13927dbb948bSDavid E. O'Brien 13937dbb948bSDavid E. O'Brien * Handle ID3 format files. 13947dbb948bSDavid E. O'Brien 13957dbb948bSDavid E. O'Brien2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 13967dbb948bSDavid E. O'Brien 13977dbb948bSDavid E. O'Brien * Fix --mime, --mime-type and --mime-encoding under new scheme. 13987dbb948bSDavid E. O'Brien 13997dbb948bSDavid E. O'Brien * Rename "ascii" to "text" and add "encoding" test. 14007dbb948bSDavid E. O'Brien 14017dbb948bSDavid E. O'Brien * Return a precise ("utf-16le" or "utf-16be") MIME charset for 14027dbb948bSDavid E. O'Brien UTF-16. 14037dbb948bSDavid E. O'Brien 14047dbb948bSDavid E. O'Brien * Fix error in comment caused by automatic indentation adding 14057dbb948bSDavid E. O'Brien words! 14067dbb948bSDavid E. O'Brien 14077dbb948bSDavid E. O'Brien2008-11-06 10:35 Christos Zoulas <christos@astron.com> 14087dbb948bSDavid E. O'Brien 14097dbb948bSDavid E. O'Brien * use memchr instead of strchr because the string 14107dbb948bSDavid E. O'Brien might not be NUL terminated (Scott MacVicar) 14117dbb948bSDavid E. O'Brien 14127dbb948bSDavid E. O'Brien2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 14137dbb948bSDavid E. O'Brien 14147dbb948bSDavid E. O'Brien * Fix a printf with a non-literal format string. 14157dbb948bSDavid E. O'Brien 14167dbb948bSDavid E. O'Brien * Fix formatting and punctuation of help for "--apple". 14177dbb948bSDavid E. O'Brien 14187dbb948bSDavid E. O'Brien2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 14197dbb948bSDavid E. O'Brien 14207dbb948bSDavid E. O'Brien * Correct words counts in comments of struct magic. 14217dbb948bSDavid E. O'Brien 14227dbb948bSDavid E. O'Brien * Fix handle_annotation to allow both Apple and MIME types to be 14237dbb948bSDavid E. O'Brien printed, and to return correct code if MIME type is 14247dbb948bSDavid E. O'Brien printed (1, not 0) or if there's an error (-1 not 1). 14257dbb948bSDavid E. O'Brien 14267dbb948bSDavid E. O'Brien * Fix output of charset for MIME type (precede with semi-colon; 14277dbb948bSDavid E. O'Brien fixes Debian bug #501460). 14287dbb948bSDavid E. O'Brien 14297dbb948bSDavid E. O'Brien * Fix potential attacks via conversion specifications in magic 14307dbb948bSDavid E. O'Brien strings. 14317dbb948bSDavid E. O'Brien 14327dbb948bSDavid E. O'Brien * Add a FIXME for Debian bug #488562 (magic files should be 14337dbb948bSDavid E. O'Brien read in a defined order, by sorting the names). 14347dbb948bSDavid E. O'Brien 14357dbb948bSDavid E. O'Brien2008-10-18 16:45 Christos Zoulas <christos@astron.com> 14367dbb948bSDavid E. O'Brien 14377dbb948bSDavid E. O'Brien * Added APPLE file creator/type 14387dbb948bSDavid E. O'Brien 14397dbb948bSDavid E. O'Brien2008-10-12 10:20 Christos Zoulas <christos@astron.com> 14407dbb948bSDavid E. O'Brien 14417dbb948bSDavid E. O'Brien * Added CDF parsing 14427dbb948bSDavid E. O'Brien 14437dbb948bSDavid E. O'Brien2008-10-09 16:40 Christos Zoulas <christos@astron.com> 14447dbb948bSDavid E. O'Brien 14457dbb948bSDavid E. O'Brien * filesystem and msdos patches (Joerg Jenderek) 14467dbb948bSDavid E. O'Brien 14477dbb948bSDavid E. O'Brien2008-10-09 13:20 Christos Zoulas <christos@astron.com> 14487dbb948bSDavid E. O'Brien 14497dbb948bSDavid E. O'Brien * correct --exclude documentation issues: remove troff and fortran 14507dbb948bSDavid E. O'Brien and rename "token" to "tokens". (Randy McMurchy) 14517dbb948bSDavid E. O'Brien 14527dbb948bSDavid E. O'Brien2008-10-01 10:30 Christos Zoulas <christos@astron.com> 14537dbb948bSDavid E. O'Brien 14547dbb948bSDavid E. O'Brien * Read ~/.magic in addition to the default magic file not instead 14557dbb948bSDavid E. O'Brien of, as documented in the man page. 14567dbb948bSDavid E. O'Brien 14577dbb948bSDavid E. O'Brien2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 14587dbb948bSDavid E. O'Brien 14597dbb948bSDavid E. O'Brien * Comment out graphviz patterns, as they match too many files. 14607dbb948bSDavid E. O'Brien 146128a8b562SDavid E. O'Brien2008-08-30 12:54 Christos Zoulas <christos@astron.com> 146228a8b562SDavid E. O'Brien 146328a8b562SDavid E. O'Brien * Don't eat trailing \n in magic enties. 146428a8b562SDavid E. O'Brien 146528a8b562SDavid E. O'Brien * Cast defines to allow compilation using a c++ compiler. 146628a8b562SDavid E. O'Brien 14677dbb948bSDavid E. O'Brien2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 14687dbb948bSDavid E. O'Brien 14697dbb948bSDavid E. O'Brien * Add text/x-lua MIME type for Lua scripts. 14707dbb948bSDavid E. O'Brien 14717dbb948bSDavid E. O'Brien * Escape { in regex in graphviz patterns. 14727dbb948bSDavid E. O'Brien 147328a8b562SDavid E. O'Brien2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 147428a8b562SDavid E. O'Brien 147528a8b562SDavid E. O'Brien * Add MIME types for special files. 147628a8b562SDavid E. O'Brien 147728a8b562SDavid E. O'Brien * Use access to give more accurate information for files that 147828a8b562SDavid E. O'Brien can't be opened. 147928a8b562SDavid E. O'Brien 148028a8b562SDavid E. O'Brien * Add a TODO list. 148128a8b562SDavid E. O'Brien 148228a8b562SDavid E. O'Brien2008-07-02 11:15 Christos Zoulas <christos@astron.com> 148328a8b562SDavid E. O'Brien 148428a8b562SDavid E. O'Brien * add !:strength op to adjust magic strength (experimental) 148528a8b562SDavid E. O'Brien 148628a8b562SDavid E. O'Brien2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 148728a8b562SDavid E. O'Brien 148828a8b562SDavid E. O'Brien * Fix automake error in configure.ac. 148928a8b562SDavid E. O'Brien 149028a8b562SDavid E. O'Brien * Add MIME type for Psion Sketch files. 149128a8b562SDavid E. O'Brien 149228a8b562SDavid E. O'Brien2008-06-05 08:59 Christos Zoulas <christos@astron.com> 149328a8b562SDavid E. O'Brien 149428a8b562SDavid E. O'Brien * Don't print warnings about bad namesize in stripped 149528a8b562SDavid E. O'Brien binaries with PT_NOTE is still there, and the actual 149628a8b562SDavid E. O'Brien note is gone (Jakub Jelinek) 149728a8b562SDavid E. O'Brien 149828a8b562SDavid E. O'Brien2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 149928a8b562SDavid E. O'Brien 150028a8b562SDavid E. O'Brien * magic/Magdir/elf: 150128a8b562SDavid E. O'Brien Note invalid byte order for little-endian SPARC32PLUS. 150228a8b562SDavid E. O'Brien Add SPARC V9 vendor extensions and memory model. 150328a8b562SDavid E. O'Brien 150428a8b562SDavid E. O'Brien * src/elfclass.h: 150528a8b562SDavid E. O'Brien Pass target machine to doshn (for Solaris hardware capabilities). 150628a8b562SDavid E. O'Brien 150728a8b562SDavid E. O'Brien * src/readelf.c (doshn): 150828a8b562SDavid E. O'Brien Add support for Solaris hardware/software capabilities. 150928a8b562SDavid E. O'Brien 151028a8b562SDavid E. O'Brien * src/readelf.h: 151128a8b562SDavid E. O'Brien Ditto. 151228a8b562SDavid E. O'Brien 151328a8b562SDavid E. O'Brien * src/vasprintf.c (dispatch): 151428a8b562SDavid E. O'Brien Add support for ll modifier. 151528a8b562SDavid E. O'Brien 151628a8b562SDavid E. O'Brien2008-05-16 10:25 Christos Zoulas <christos@astron.com> 151728a8b562SDavid E. O'Brien 151828a8b562SDavid E. O'Brien * Fix compiler warnings. 151928a8b562SDavid E. O'Brien 152028a8b562SDavid E. O'Brien * remove stray printf, and fix a vprintf bug. (Martin Dorey) 152128a8b562SDavid E. O'Brien 152228a8b562SDavid E. O'Brien2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 152328a8b562SDavid E. O'Brien 152428a8b562SDavid E. O'Brien * src/Makefile.am: 152528a8b562SDavid E. O'Brien Ensure that getopt_long and [v]asprintf are included in libmagic, 152628a8b562SDavid E. O'Brien as needed. 152728a8b562SDavid E. O'Brien 152828a8b562SDavid E. O'Brien Remove unnecessary EXTRA_DIST. 152928a8b562SDavid E. O'Brien 153028a8b562SDavid E. O'Brien * src/Makefile.in: 153128a8b562SDavid E. O'Brien Rerun automake. 153228a8b562SDavid E. O'Brien 153328a8b562SDavid E. O'Brien * src/vasprintf.c (dispatch): 153428a8b562SDavid E. O'Brien Fix variable precision bug: be sure to step past '*'. 153528a8b562SDavid E. O'Brien 153628a8b562SDavid E. O'Brien * src/vasprintf.c (core): 153728a8b562SDavid E. O'Brien Remove unreachable code. 153828a8b562SDavid E. O'Brien 153928a8b562SDavid E. O'Brien * src/apprentice.c (set_test_type): 154028a8b562SDavid E. O'Brien Add cast to avoid compiler warning. 154128a8b562SDavid E. O'Brien 154228a8b562SDavid E. O'Brien2008-04-22 23:45 Christos Zoulas <christos@astron.com> 154328a8b562SDavid E. O'Brien 154428a8b562SDavid E. O'Brien * Add magic submission guidelines (Abel Cheung) 154528a8b562SDavid E. O'Brien 154628a8b562SDavid E. O'Brien * split msdos and windows magic (Abel Cheung) 154728a8b562SDavid E. O'Brien 154828a8b562SDavid E. O'Brien2008-04-04 11:00 Christos Zoulas <christos@astron.com> 154928a8b562SDavid E. O'Brien 155028a8b562SDavid E. O'Brien * >= <= is not supported, so fix the magic and warn about it. 155128a8b562SDavid E. O'Brien reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 155228a8b562SDavid E. O'Brien 155328a8b562SDavid E. O'Brien2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 155428a8b562SDavid E. O'Brien 155528a8b562SDavid E. O'Brien * src/readelf.c (donote): 155628a8b562SDavid E. O'Brien ELF core file command name/line bug fixes and enhancements: 155728a8b562SDavid E. O'Brien 155828a8b562SDavid E. O'Brien Try larger offsets first to avoid false matches 155928a8b562SDavid E. O'Brien from earlier data that happen to look like strings; 156028a8b562SDavid E. O'Brien this primarily affected SunOS 5.x 32-bit Intel core files. 156128a8b562SDavid E. O'Brien 156228a8b562SDavid E. O'Brien Add support for command line (instead of just short name) 156328a8b562SDavid E. O'Brien for SunOS 5.x. 156428a8b562SDavid E. O'Brien 156528a8b562SDavid E. O'Brien Add information about NT_PSINFO for SunOS 5.x. 156628a8b562SDavid E. O'Brien 156728a8b562SDavid E. O'Brien Only trim whitespace from end of command line. 156828a8b562SDavid E. O'Brien 156928a8b562SDavid E. O'Brien2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 157028a8b562SDavid E. O'Brien 157128a8b562SDavid E. O'Brien * Change strength of ! from MULT to 0, as it matches almost 157228a8b562SDavid E. O'Brien anything (Reuben Thomas) 157328a8b562SDavid E. O'Brien 157428a8b562SDavid E. O'Brien * Debian fixes (Reuben Thomas) 157528a8b562SDavid E. O'Brien 157628a8b562SDavid E. O'Brien2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 157728a8b562SDavid E. O'Brien 157828a8b562SDavid E. O'Brien * Clarify UTF-8 BOM message (Reuben Thomas) 157928a8b562SDavid E. O'Brien 158028a8b562SDavid E. O'Brien * Add HTML comment to token list in names.h 158128a8b562SDavid E. O'Brien 158228a8b562SDavid E. O'Brien2007-02-04 15:50 Christos Zoulas <christos@astron.com> 158328a8b562SDavid E. O'Brien 158428a8b562SDavid E. O'Brien * Debian fixes (Reuben Thomas) 158528a8b562SDavid E. O'Brien 158628a8b562SDavid E. O'Brien2007-02-04 11:31 Christos Zoulas <christos@astron.com> 158728a8b562SDavid E. O'Brien 158828a8b562SDavid E. O'Brien * !:mime annotations in magic files (Reuben Thomas) 158928a8b562SDavid E. O'Brien 159028a8b562SDavid E. O'Brien2007-01-29 15:35 Christos Zoulas <christos@astron.com> 159128a8b562SDavid E. O'Brien 159228a8b562SDavid E. O'Brien * zero out utime/utimes structs (Gavin Atkinson) 159328a8b562SDavid E. O'Brien 159428a8b562SDavid E. O'Brien2007-01-26 13:45 Christos Zoulas <christos@astron.com> 159528a8b562SDavid E. O'Brien 159628a8b562SDavid E. O'Brien * reduce writable data from Diego "Flameeyes" Petten 159728a8b562SDavid E. O'Brien 159828a8b562SDavid E. O'Brien2007-12-28 15:06 Christos Zoulas <christos@astron.com> 1599974b70c4SDavid E. O'Brien 1600974b70c4SDavid E. O'Brien * strtof detection 1601974b70c4SDavid E. O'Brien 1602974b70c4SDavid E. O'Brien * remove bogus regex magic that could cause a DoS 1603974b70c4SDavid E. O'Brien 1604974b70c4SDavid E. O'Brien * better mismatch version message 1605974b70c4SDavid E. O'Brien 160628a8b562SDavid E. O'Brien2007-12-27 11:35 Christos Zoulas <christos@astron.com> 1607974b70c4SDavid E. O'Brien 1608974b70c4SDavid E. O'Brien * bring back some fixes from OpenBSD 1609974b70c4SDavid E. O'Brien 1610974b70c4SDavid E. O'Brien * treat ELF dynamic objects as executables 1611974b70c4SDavid E. O'Brien 1612974b70c4SDavid E. O'Brien * fix gcc warnings 1613974b70c4SDavid E. O'Brien 161428a8b562SDavid E. O'Brien2007-12-01 19:55 Christos Zoulas <christos@astron.com> 1615974b70c4SDavid E. O'Brien 1616974b70c4SDavid E. O'Brien * make sure we have zlib.h and libz to compile the builtin 1617974b70c4SDavid E. O'Brien decompress code 1618974b70c4SDavid E. O'Brien 161928a8b562SDavid E. O'Brien2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1620974b70c4SDavid E. O'Brien 1621974b70c4SDavid E. O'Brien * float and double magic support (Behan Webster) 1622974b70c4SDavid E. O'Brien 162328a8b562SDavid E. O'Brien2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1624974b70c4SDavid E. O'Brien 1625974b70c4SDavid E. O'Brien * Convert fortran to a soft test (Reuben Thomas) 1626974b70c4SDavid E. O'Brien 162728a8b562SDavid E. O'Brien2007-10-23 5:25 Christos Zoulas <christos@astron.com> 1628974b70c4SDavid E. O'Brien 1629974b70c4SDavid E. O'Brien * Add --with-filename, and --no-filename (Reuben Thomas) 1630974b70c4SDavid E. O'Brien 163128a8b562SDavid E. O'Brien2007-10-23 3:59 Christos Zoulas <christos@astron.com> 1632974b70c4SDavid E. O'Brien 1633974b70c4SDavid E. O'Brien * Rest of the mime split (Reuben Thomas) 1634974b70c4SDavid E. O'Brien 1635974b70c4SDavid E. O'Brien * Make usage message generated from the flags so that 1636974b70c4SDavid E. O'Brien they stay consistent (Reuben Thomas) 1637974b70c4SDavid E. O'Brien 163828a8b562SDavid E. O'Brien2007-10-20 3:06 Christos Zoulas <christos@astron.com> 1639974b70c4SDavid E. O'Brien 1640974b70c4SDavid E. O'Brien * typo in comment, missing ifdef QUICK, remove unneeded code 1641974b70c4SDavid E. O'Brien (Charles Longeau) 1642974b70c4SDavid E. O'Brien 164328a8b562SDavid E. O'Brien2007-10-17 3:33 Christos Zoulas <christos@astron.com> 1644974b70c4SDavid E. O'Brien 1645974b70c4SDavid E. O'Brien * Fix problem printing -\012 in some entries 1646974b70c4SDavid E. O'Brien 1647974b70c4SDavid E. O'Brien * Separate magic type and encoding flags (Reuben Thomas) 1648974b70c4SDavid E. O'Brien 164928a8b562SDavid E. O'Brien2007-10-09 3:55 Christos Zoulas <christos@astron.com> 1650974b70c4SDavid E. O'Brien 1651974b70c4SDavid E. O'Brien * configure fix for int64 and strndup (Reuben Thomas) 1652974b70c4SDavid E. O'Brien 165328a8b562SDavid E. O'Brien2007-09-26 4:45 Christos Zoulas <christos@astron.com> 1654974b70c4SDavid E. O'Brien 1655974b70c4SDavid E. O'Brien * Add magic_descriptor() function. 1656974b70c4SDavid E. O'Brien 1657974b70c4SDavid E. O'Brien * Fix regression in elf reading code where the core name was 1658974b70c4SDavid E. O'Brien not being printed. 1659974b70c4SDavid E. O'Brien 1660974b70c4SDavid E. O'Brien * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 1661974b70c4SDavid E. O'Brien 166228a8b562SDavid E. O'Brien2007-08-19 6:30 Christos Zoulas <christos@astron.com> 1663974b70c4SDavid E. O'Brien 1664974b70c4SDavid E. O'Brien * Make mime format consistent so that it can 1665974b70c4SDavid E. O'Brien be easily parsed: 1666974b70c4SDavid E. O'Brien mimetype [charset=character-set] [encoding=encoding-mime-type] 1667974b70c4SDavid E. O'Brien 1668974b70c4SDavid E. O'Brien Remove spurious extra text from some MIME type printouts 1669974b70c4SDavid E. O'Brien (mostly in is_tar). 1670974b70c4SDavid E. O'Brien 1671974b70c4SDavid E. O'Brien Fix one case where -i produced nothing at all (for a 1-byte file, 1672974b70c4SDavid E. O'Brien which is now classed as application/octet-stream). 1673974b70c4SDavid E. O'Brien 1674974b70c4SDavid E. O'Brien Remove 7/8bit classifications, since they were arbitrary 1675974b70c4SDavid E. O'Brien and not based on the file data. 1676974b70c4SDavid E. O'Brien 1677974b70c4SDavid E. O'Brien This work was done by Reuben Thomas 1678974b70c4SDavid E. O'Brien 167928a8b562SDavid E. O'Brien2007-05-24 10:00 Christos Zoulas <christos@astron.com> 168017c6260fSDavid E. O'Brien 168117c6260fSDavid E. O'Brien * Fix another integer overflow (Colin Percival) 168217c6260fSDavid E. O'Brien 168328a8b562SDavid E. O'Brien2007-03-26 13:58 Christos Zoulas <christos@astron.com> 168417c6260fSDavid E. O'Brien 168517c6260fSDavid E. O'Brien * make sure that all of struct magic_set is initialized appropriately 168617c6260fSDavid E. O'Brien (Brett) 168717c6260fSDavid E. O'Brien 168828a8b562SDavid E. O'Brien2007-03-25 17:44 Christos Zoulas <christos@astron.com> 168917c6260fSDavid E. O'Brien 169017c6260fSDavid E. O'Brien * reset left bytes in the buffer (Dmitry V. Levin) 169117c6260fSDavid E. O'Brien 169217c6260fSDavid E. O'Brien * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 169317c6260fSDavid E. O'Brien (Peter Avalos) 169417c6260fSDavid E. O'Brien 169528a8b562SDavid E. O'Brien2007-03-15 10:51 Christos Zoulas <christos@astron.com> 169617c6260fSDavid E. O'Brien 169717c6260fSDavid E. O'Brien * fix fortran and nroff reversed tests (Dmitry V. Levin) 169817c6260fSDavid E. O'Brien 169917c6260fSDavid E. O'Brien * fix exclude option (Dmitry V. Levin) 170017c6260fSDavid E. O'Brien 170128a8b562SDavid E. O'Brien2007-02-08 17:30 Christos Zoulas <christos@astron.com> 170217c6260fSDavid E. O'Brien 170317c6260fSDavid E. O'Brien * fix integer underflow in file_printf which can lead to 170417c6260fSDavid E. O'Brien to exploitable heap overflow (Jean-Sebastien Guay-Lero) 170517c6260fSDavid E. O'Brien 170628a8b562SDavid E. O'Brien2007-02-05 11:35 Christos Zoulas <christos@astron.com> 170717c6260fSDavid E. O'Brien 170817c6260fSDavid E. O'Brien * make socket/pipe reading more robust 170917c6260fSDavid E. O'Brien 171028a8b562SDavid E. O'Brien2007-01-25 16:01 Christos Zoulas <christos@astron.com> 171117c6260fSDavid E. O'Brien 171217c6260fSDavid E. O'Brien * Centralize all the tests in file_buffer. 171317c6260fSDavid E. O'Brien 171417c6260fSDavid E. O'Brien * Add exclude flag. 171517c6260fSDavid E. O'Brien 171617c6260fSDavid E. O'Brien2007-01-18 05:29 Anon Ymous <do@not.spam.me> 171717c6260fSDavid E. O'Brien 171817c6260fSDavid E. O'Brien * Move the "type" detection code from parse() into its own table 171917c6260fSDavid E. O'Brien driven routine. This avoids maintaining multiple lists in 172017c6260fSDavid E. O'Brien file.h. 172117c6260fSDavid E. O'Brien 172217c6260fSDavid E. O'Brien * Add an optional conditional field (ust before the type field). 172317c6260fSDavid E. O'Brien This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 172417c6260fSDavid E. O'Brien likely to go away. 172517c6260fSDavid E. O'Brien 172617c6260fSDavid E. O'Brien2007-01-16 23:24 Anon Ymous <do@not.spam.me> 172717c6260fSDavid E. O'Brien 172817c6260fSDavid E. O'Brien * Fix an initialization bug in check_mem(). 172917c6260fSDavid E. O'Brien 173017c6260fSDavid E. O'Brien2007-01-16 14:58 Anon Ymous <do@not.spam.me> 173117c6260fSDavid E. O'Brien 173217c6260fSDavid E. O'Brien * Add a "default" type to print a message if nothing previously 173317c6260fSDavid E. O'Brien matched at that level or since the last default at that 173417c6260fSDavid E. O'Brien level. This is useful for setting up switch-like statements. 173517c6260fSDavid E. O'Brien It can also be used to do if/else constructions without a 173617c6260fSDavid E. O'Brien redundant second test. 173717c6260fSDavid E. O'Brien 173817c6260fSDavid E. O'Brien * Fix the "x" special case test so that one can test for that 173917c6260fSDavid E. O'Brien string with "=x". 174017c6260fSDavid E. O'Brien 174117c6260fSDavid E. O'Brien * Allow "search" to search the entire buffer if the "/N" 174217c6260fSDavid E. O'Brien search count is missing. 174317c6260fSDavid E. O'Brien 174417c6260fSDavid E. O'Brien * Make "regex" work! It now starts its search at the 174517c6260fSDavid E. O'Brien specified offset and takes an (optional) "/N" line count to 174617c6260fSDavid E. O'Brien specify the search range; otherwise it searches to the end 174717c6260fSDavid E. O'Brien of the file. The match is now grabbed correctly for format 174817c6260fSDavid E. O'Brien strings and the offset set to the end of the match. 174917c6260fSDavid E. O'Brien 175017c6260fSDavid E. O'Brien * Add a "/s" flag to "regex" and "search" to set the offset to 175117c6260fSDavid E. O'Brien the start of the match. By default the offset is set to the 175217c6260fSDavid E. O'Brien end of the match, as it is with other tests. This is mostly 175317c6260fSDavid E. O'Brien useful for "regex". 175417c6260fSDavid E. O'Brien 175517c6260fSDavid E. O'Brien * Make "search", "string" and "pstring" use the same 175617c6260fSDavid E. O'Brien file_strncmp() routine so that they support the same flags; 175717c6260fSDavid E. O'Brien "bestring16" and "lestring16" call the same routine, but 175817c6260fSDavid E. O'Brien with flags = 0. Also add a "/C" flag (in analogy to "/c") 175917c6260fSDavid E. O'Brien to ignore the case on uppercase (lowercase) characters in 176017c6260fSDavid E. O'Brien the test string. 176117c6260fSDavid E. O'Brien 176217c6260fSDavid E. O'Brien * Strict adherence to C style string escapes. A warnings are 176317c6260fSDavid E. O'Brien printed when compiling. Note: previously "\a" was 176417c6260fSDavid E. O'Brien incorrectly translated to 'a' instead of an <alert> (i.e., 176517c6260fSDavid E. O'Brien BELL, typically 0x07). 176617c6260fSDavid E. O'Brien 176717c6260fSDavid E. O'Brien * Make this compile with "-Wall -Wextra" and all the warning 176817c6260fSDavid E. O'Brien flags used with WARNS=4 in the NetBSD source. Also make it 176917c6260fSDavid E. O'Brien pass lint. 177017c6260fSDavid E. O'Brien 177117c6260fSDavid E. O'Brien * Many "cleanups" and hopefully not too many new bugs! 177217c6260fSDavid E. O'Brien 177317c6260fSDavid E. O'Brien2007-01-16 14:56 Anon Ymous <do@not.spam.me> 177417c6260fSDavid E. O'Brien 177517c6260fSDavid E. O'Brien * make several more files compile with gcc warnings 177617c6260fSDavid E. O'Brien on and also make them pass lint. 177717c6260fSDavid E. O'Brien 177817c6260fSDavid E. O'Brien2007-01-16 14:54 Anon Ymous <do@not.spam.me> 177917c6260fSDavid E. O'Brien 178017c6260fSDavid E. O'Brien * fix a puts()/putc() usage goof in file.c 178117c6260fSDavid E. O'Brien 178217c6260fSDavid E. O'Brien * make file.c compile with gcc warnings and pass lint 178317c6260fSDavid E. O'Brien 178428a8b562SDavid E. O'Brien2006-12-11 16:49 Christos Zoulas <christos@astron.com> 1785d1d50c78SDavid E. O'Brien 1786d1d50c78SDavid E. O'Brien * fix byteswapping issue 1787d1d50c78SDavid E. O'Brien 1788d1d50c78SDavid E. O'Brien * report the number of bytes we tried to 1789d1d50c78SDavid E. O'Brien allocate when allocation fails 1790d1d50c78SDavid E. O'Brien 1791d1d50c78SDavid E. O'Brien * add a few missed cases in the strength routine 1792d1d50c78SDavid E. O'Brien 179328a8b562SDavid E. O'Brien2006-12-08 16:32 Christos Zoulas <christos@astron.com> 1794d1d50c78SDavid E. O'Brien 1795d1d50c78SDavid E. O'Brien * store and print the line number of the magic 1796d1d50c78SDavid E. O'Brien entry for debugging. 1797d1d50c78SDavid E. O'Brien 1798d1d50c78SDavid E. O'Brien * if the magic entry did not print anything, 1799d1d50c78SDavid E. O'Brien don't treat it as a match 1800d1d50c78SDavid E. O'Brien 1801d1d50c78SDavid E. O'Brien * change the magic strength algorithm to take 1802d1d50c78SDavid E. O'Brien into account the relationship op. 1803d1d50c78SDavid E. O'Brien 1804d1d50c78SDavid E. O'Brien * fix a bug in search where we could accidentally 1805d1d50c78SDavid E. O'Brien return a match. 1806d1d50c78SDavid E. O'Brien 1807d1d50c78SDavid E. O'Brien * propagate the error return from match to 1808d1d50c78SDavid E. O'Brien file_softmagic. 1809d1d50c78SDavid E. O'Brien 181028a8b562SDavid E. O'Brien2006-11-25 13:35 Christos Zoulas <christos@astron.com> 1811d1d50c78SDavid E. O'Brien 1812d1d50c78SDavid E. O'Brien * Don't store the current offset in the magic 1813d1d50c78SDavid E. O'Brien struct, because it needs to be restored and 1814d1d50c78SDavid E. O'Brien it was not done properly all the time. Bug 1815d1d50c78SDavid E. O'Brien found by: Arkadiusz Miskiewicz 1816d1d50c78SDavid E. O'Brien 1817d1d50c78SDavid E. O'Brien * Fix problem in the '\0' separator; and don't 1818d1d50c78SDavid E. O'Brien print it as an additional separator; print 1819d1d50c78SDavid E. O'Brien it as the only separator. 1820d1d50c78SDavid E. O'Brien 182128a8b562SDavid E. O'Brien2006-11-17 10:51 Christos Zoulas <christos@astron.com> 1822d1d50c78SDavid E. O'Brien 1823d1d50c78SDavid E. O'Brien * Added a -0 option to print a '\0' separator 1824d1d50c78SDavid E. O'Brien Etienne Buira <etienne.buira@free.fr> 1825d1d50c78SDavid E. O'Brien 182628a8b562SDavid E. O'Brien2006-10-31 15:14 Christos Zoulas <christos@astron.com> 1827d1d50c78SDavid E. O'Brien 1828d1d50c78SDavid E. O'Brien * Check offset before copying (Mike Frysinger) 1829d1d50c78SDavid E. O'Brien 1830d1d50c78SDavid E. O'Brien * merge duplicated code 1831d1d50c78SDavid E. O'Brien 1832d1d50c78SDavid E. O'Brien * add quad date support 1833d1d50c78SDavid E. O'Brien 1834d1d50c78SDavid E. O'Brien * make sure that we nul terminate desc (Ryoji Kanai) 1835d1d50c78SDavid E. O'Brien 1836d1d50c78SDavid E. O'Brien * don't process elf notes multiple times 1837d1d50c78SDavid E. O'Brien 1838d1d50c78SDavid E. O'Brien * allow -z to report empty compressed files 1839d1d50c78SDavid E. O'Brien 1840d1d50c78SDavid E. O'Brien * use calloc to initialize the ascii buffers (Jos van den Oever) 1841d1d50c78SDavid E. O'Brien 184228a8b562SDavid E. O'Brien2006-06-08 11:11 Christos Zoulas <christos@astron.com> 1843d1d50c78SDavid E. O'Brien 1844d1d50c78SDavid E. O'Brien * QNX fixes (Mike Gorchak) 1845d1d50c78SDavid E. O'Brien 1846d1d50c78SDavid E. O'Brien * Add quad support. 1847d1d50c78SDavid E. O'Brien 1848d1d50c78SDavid E. O'Brien * FIFO checks (Dr. Werner Fink) 1849d1d50c78SDavid E. O'Brien 1850d1d50c78SDavid E. O'Brien * Linux ELF fixes (Dr. Werner Fink) 1851d1d50c78SDavid E. O'Brien 1852d1d50c78SDavid E. O'Brien * Magic format checks (Dr. Werner Fink) 1853d1d50c78SDavid E. O'Brien 1854898496eeSXin LI * Magic format function improvement (Karl Chen) 1855d1d50c78SDavid E. O'Brien 185628a8b562SDavid E. O'Brien2006-05-03 11:11 Christos Zoulas <christos@astron.com> 1857d1d50c78SDavid E. O'Brien 1858d1d50c78SDavid E. O'Brien * Pick up some elf changes and some constant fixes from SUSE 1859d1d50c78SDavid E. O'Brien 1860d1d50c78SDavid E. O'Brien * Identify gnu tar vs. posix tar 1861d1d50c78SDavid E. O'Brien 1862b6cee71dSXin LI * When keep going, don't print spurious newlines (Radek Vokal) 1863d1d50c78SDavid E. O'Brien 186428a8b562SDavid E. O'Brien2006-04-01 12:02 Christos Zoulas <christos@astron.com> 1865d1d50c78SDavid E. O'Brien 1866d1d50c78SDavid E. O'Brien * Use calloc instead of malloc (Mike Frysinger) 1867d1d50c78SDavid E. O'Brien 1868d1d50c78SDavid E. O'Brien * Fix configure script to detect wctypes.h (Mike Frysinger) 1869d1d50c78SDavid E. O'Brien 187028a8b562SDavid E. O'Brien2006-03-02 16:06 Christos Zoulas <christos@astron.com> 187188a5e5acSDavid E. O'Brien 187288a5e5acSDavid E. O'Brien * Print empty if the file is (Mike Frysinger) 187388a5e5acSDavid E. O'Brien 187488a5e5acSDavid E. O'Brien * Don't try to read past the end of the buffer (Mike Frysinger) 187588a5e5acSDavid E. O'Brien 187688a5e5acSDavid E. O'Brien * Sort magic entries by strength [experimental] 187788a5e5acSDavid E. O'Brien 187828a8b562SDavid E. O'Brien2005-11-29 13:26 Christos Zoulas <christos@astron.com> 187988a5e5acSDavid E. O'Brien 188088a5e5acSDavid E. O'Brien * Use iswprint() to convert the output string. 188188a5e5acSDavid E. O'Brien (Bastien Nocera) 188288a5e5acSDavid E. O'Brien 188328a8b562SDavid E. O'Brien2005-10-31 8:54 Christos Zoulas <christos@astron.com> 188488a5e5acSDavid E. O'Brien 188588a5e5acSDavid E. O'Brien * Fix regression where the core info was not completely processed 1886b6cee71dSXin LI (Radek Vokal) 188788a5e5acSDavid E. O'Brien 188828a8b562SDavid E. O'Brien2005-10-20 11:15 Christos Zoulas <christos@astron.com> 188988a5e5acSDavid E. O'Brien 189088a5e5acSDavid E. O'Brien * Middle Endian magic (Diomidis Spinellis) 189188a5e5acSDavid E. O'Brien 189228a8b562SDavid E. O'Brien2005-10-17 11:15 Christos Zoulas <christos@astron.com> 189388a5e5acSDavid E. O'Brien 189488a5e5acSDavid E. O'Brien * Open with O_BINARY for CYGWIN (Corinna Vinschen) 189588a5e5acSDavid E. O'Brien 189688a5e5acSDavid E. O'Brien * Don't close stdin (Arkadiusz Miskiewicz) 189788a5e5acSDavid E. O'Brien 189888a5e5acSDavid E. O'Brien * Look for note sections in non executables. 189988a5e5acSDavid E. O'Brien 190028a8b562SDavid E. O'Brien2005-09-20 13:33 Christos Zoulas <christos@astron.com> 190188a5e5acSDavid E. O'Brien 190288a5e5acSDavid E. O'Brien * Don't print SVR4 Style in core files multiple times 1903b6cee71dSXin LI (Radek Vokal) 190488a5e5acSDavid E. O'Brien 190528a8b562SDavid E. O'Brien2005-08-27 04:09 Christos Zoulas <christos@astron.com> 190688a5e5acSDavid E. O'Brien 190788a5e5acSDavid E. O'Brien * Cygwin changes Corinna Vinschen 190888a5e5acSDavid E. O'Brien 190928a8b562SDavid E. O'Brien2005-08-18 09:53 Christos Zoulas <christos@astron.com> 191088a5e5acSDavid E. O'Brien 191188a5e5acSDavid E. O'Brien * Remove erroreous mention of /etc/magic in the file man page 191288a5e5acSDavid E. O'Brien This is gentoo bug 101639. (Mike Frysinger) 191388a5e5acSDavid E. O'Brien 191488a5e5acSDavid E. O'Brien * Cross-compile support and detection (Mike Frysinger) 191588a5e5acSDavid E. O'Brien 191628a8b562SDavid E. O'Brien2005-08-12 10:17 Christos Zoulas <christos@astron.com> 191788a5e5acSDavid E. O'Brien 191888a5e5acSDavid E. O'Brien * Add -h flag and dereference symlinks if POSIXLY_CORRECT 191988a5e5acSDavid E. O'Brien is set. 192088a5e5acSDavid E. O'Brien 192128a8b562SDavid E. O'Brien2005-07-29 13:57 Christos Zoulas <christos@astron.com> 192288a5e5acSDavid E. O'Brien 192388a5e5acSDavid E. O'Brien * Avoid search and regex buffer overflows (Kelledin) 192488a5e5acSDavid E. O'Brien 192528a8b562SDavid E. O'Brien2005-07-12 11:48 Christos Zoulas <christos@astron.com> 192688a5e5acSDavid E. O'Brien 192788a5e5acSDavid E. O'Brien * Provide stub implementations for {v,}nsprintf() for older 192888a5e5acSDavid E. O'Brien OS's that don't have them. 192988a5e5acSDavid E. O'Brien * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 193088a5e5acSDavid E. O'Brien to AC_TYPE_MBSTATE_T. 193188a5e5acSDavid E. O'Brien 193228a8b562SDavid E. O'Brien2005-06-25 11:48 Christos Zoulas <christos@astron.com> 193388a5e5acSDavid E. O'Brien 193488a5e5acSDavid E. O'Brien * Dynamically allocate the string buffers and make the 193588a5e5acSDavid E. O'Brien default read size 256K. 193688a5e5acSDavid E. O'Brien 193788a5e5acSDavid E. O'Brien2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 193888a5e5acSDavid E. O'Brien 193988a5e5acSDavid E. O'Brien * Dragonfly ELF note support 194088a5e5acSDavid E. O'Brien 194188a5e5acSDavid E. O'Brien2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 194288a5e5acSDavid E. O'Brien 194388a5e5acSDavid E. O'Brien * Avoid NULL pointer dereference in time conversion. 194488a5e5acSDavid E. O'Brien 194588a5e5acSDavid E. O'Brien2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 194688a5e5acSDavid E. O'Brien 194788a5e5acSDavid E. O'Brien * Add indirect magic offset support, and search mode. 194888a5e5acSDavid E. O'Brien 194988a5e5acSDavid E. O'Brien2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 195088a5e5acSDavid E. O'Brien 195188a5e5acSDavid E. O'Brien * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 195288a5e5acSDavid E. O'Brien If a CRLF text file happens to have CR at offset HOWMANY - 1 195388a5e5acSDavid E. O'Brien (currently 0xffff), it should not be counted as CR line 195488a5e5acSDavid E. O'Brien terminator. 195588a5e5acSDavid E. O'Brien If a line has length exactly MAXLINELEN, it should not yet be 195688a5e5acSDavid E. O'Brien treated as a ``very long line'', as MAXLINELEN is ``longest sane 195788a5e5acSDavid E. O'Brien line length''. 195888a5e5acSDavid E. O'Brien With CRLF, the line length was not computed correctly, and even 195988a5e5acSDavid E. O'Brien lines of length MAXLINELEN - 1 were treated as ``very long''. 196088a5e5acSDavid E. O'Brien 196128a8b562SDavid E. O'Brien2004-12-07 14:15 Christos Zoulas <christos@astron.com> 196288a5e5acSDavid E. O'Brien 196388a5e5acSDavid E. O'Brien * bzip2 needs a lot of input buffer space on some files 196488a5e5acSDavid E. O'Brien before it can begin uncompressing. This makes file -z 196588a5e5acSDavid E. O'Brien fail on some bz2 files. Fix it by giving it a copy of 196688a5e5acSDavid E. O'Brien the file descriptor to read as much as it wants if we 196728a8b562SDavid E. O'Brien have access to it. <christos@astron.com> 196888a5e5acSDavid E. O'Brien 196928a8b562SDavid E. O'Brien2004-11-24 12:39 Christos Zoulas <christos@astron.com> 1970a2e8fb4cSDavid E. O'Brien 1971a2e8fb4cSDavid E. O'Brien * Stack smash fix, and ELF more conservative reading. 1972a2e8fb4cSDavid E. O'Brien Jakub Bogusz <qboosh@pld-linux.org> 1973a2e8fb4cSDavid E. O'Brien 197428a8b562SDavid E. O'Brien2004-11-20 18:50 Christos Zoulas <christos@astron.com> 1975a2e8fb4cSDavid E. O'Brien 1976a2e8fb4cSDavid E. O'Brien * New FreeBSD version parsing code: 1977a2e8fb4cSDavid E. O'Brien Jon Noack <noackjr@alumni.rice.edu> 1978a2e8fb4cSDavid E. O'Brien 197928a8b562SDavid E. O'Brien * Hackish support for ucs16 strings <christos@astron.com> 1980a2e8fb4cSDavid E. O'Brien 198128a8b562SDavid E. O'Brien2004-11-13 03:07 Christos Zoulas <christos@astron.com> 1982a2e8fb4cSDavid E. O'Brien 1983a2e8fb4cSDavid E. O'Brien * print the file name and line number in syntax errors. 1984a2e8fb4cSDavid E. O'Brien 198528a8b562SDavid E. O'Brien2004 10-12 10:50 Christos Zoulas <christos@astron.com> 1986a2e8fb4cSDavid E. O'Brien 1987a2e8fb4cSDavid E. O'Brien * Fix stack overwriting on 0 length strings: Tim Waugh 1988a2e8fb4cSDavid E. O'Brien <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 1989a2e8fb4cSDavid E. O'Brien 199028a8b562SDavid E. O'Brien2004-09-27 11:30 Christos Zoulas <christos@astron.com> 1991a2e8fb4cSDavid E. O'Brien 1992a2e8fb4cSDavid E. O'Brien * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 1993a2e8fb4cSDavid E. O'Brien 1994a2e8fb4cSDavid E. O'Brien * Fix small memory leaks; caught by: Tamas Sarlos 1995a2e8fb4cSDavid E. O'Brien <stamas@csillag.ilab.sztaki.hu> 1996ea8dc7e0SDavid E. O'Brien 199728a8b562SDavid E. O'Brien2004-07-24 16:33 Christos Zoulas <christos@astron.com> 1998ea8dc7e0SDavid E. O'Brien 1999ea8dc7e0SDavid E. O'Brien * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 2000ea8dc7e0SDavid E. O'Brien 2001ea8dc7e0SDavid E. O'Brien * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 2002ea8dc7e0SDavid E. O'Brien 2003ea8dc7e0SDavid E. O'Brien * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 2004ea8dc7e0SDavid E. O'Brien 2005ea8dc7e0SDavid E. O'Brien * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 2006ea8dc7e0SDavid E. O'Brien 200728a8b562SDavid E. O'Brien2004-04-12 10:55 Christos Zoulas <christos@astron.com> 2008ea8dc7e0SDavid E. O'Brien 2009ea8dc7e0SDavid E. O'Brien * make sure that magic formats match magic types during compilation 2010ea8dc7e0SDavid E. O'Brien 2011ea8dc7e0SDavid E. O'Brien * fix broken sgi magic file 2012ea8dc7e0SDavid E. O'Brien 201328a8b562SDavid E. O'Brien2004-04-06 20:36 Christos Zoulas <christos@astron.com> 2014ea8dc7e0SDavid E. O'Brien 2015ea8dc7e0SDavid E. O'Brien * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 2016ea8dc7e0SDavid E. O'Brien 2017ea8dc7e0SDavid E. O'Brien * magic fixes 2018ea8dc7e0SDavid E. O'Brien 201928a8b562SDavid E. O'Brien2004-03-22 15:25 Christos Zoulas <christos@astron.com> 2020ea8dc7e0SDavid E. O'Brien 2021ea8dc7e0SDavid E. O'Brien * Lots of mime fixes 2022ea8dc7e0SDavid E. O'Brien (Joerg Ostertag) <ostertag@rechengilde.de> 2023ea8dc7e0SDavid E. O'Brien 2024ea8dc7e0SDavid E. O'Brien * FreeBSD ELF version handling 2025ea8dc7e0SDavid E. O'Brien (Edwin Groothuis) <edwin@mavetju.org> 2026ea8dc7e0SDavid E. O'Brien 2027ea8dc7e0SDavid E. O'Brien * correct cleanup in all cases; don't just close the file. 202828a8b562SDavid E. O'Brien (Christos Zoulas) <christos@astron.com> 2029ea8dc7e0SDavid E. O'Brien 2030ea8dc7e0SDavid E. O'Brien * add gettext message catalogue support 2031ea8dc7e0SDavid E. O'Brien (Michael Piefel) <piefel@debian.org> 2032ea8dc7e0SDavid E. O'Brien 2033ea8dc7e0SDavid E. O'Brien * better printout for unreadable files 2034ea8dc7e0SDavid E. O'Brien (Michael Piefel) <piefel@debian.org> 2035ea8dc7e0SDavid E. O'Brien 2036ea8dc7e0SDavid E. O'Brien * compensate for missing MAXPATHLEN 2037ea8dc7e0SDavid E. O'Brien (Michael Piefel) <piefel@debian.org> 2038ea8dc7e0SDavid E. O'Brien 2039ea8dc7e0SDavid E. O'Brien * add wide character string length computation 2040ea8dc7e0SDavid E. O'Brien (Michael Piefel) <piefel@debian.org> 2041ea8dc7e0SDavid E. O'Brien 2042ea8dc7e0SDavid E. O'Brien * Avoid infinite loops caused by bad elf alignments 2043ea8dc7e0SDavid E. O'Brien or name and description note sizes. Reported by 2044ea8dc7e0SDavid E. O'Brien (Mikael Magnusson) <mmikael@comhem.se> 2045ea8dc7e0SDavid E. O'Brien 204628a8b562SDavid E. O'Brien2004-03-09 13:55 Christos Zoulas <christos@astron.com> 2047ea8dc7e0SDavid E. O'Brien 2048ea8dc7e0SDavid E. O'Brien * Fix possible memory leak on error and add missing regfree 2049ea8dc7e0SDavid E. O'Brien (Dmitry V. Levin) <ldv@altlinux.org> 2050ea8dc7e0SDavid E. O'Brien 205128a8b562SDavid E. O'Brien2003-12-23 12:12 Christos Zoulas <christos@astron.com> 2052ea8dc7e0SDavid E. O'Brien 2053ea8dc7e0SDavid E. O'Brien * fix -k flag (Maciej W. Rozycki) 2054ea8dc7e0SDavid E. O'Brien 205528a8b562SDavid E. O'Brien2003-11-18 14:10 Christos Zoulas <christos@astron.com> 2056ea8dc7e0SDavid E. O'Brien 2057ea8dc7e0SDavid E. O'Brien * Try to give us much info as possible on corrupt elf files. 2058ea8dc7e0SDavid E. O'Brien (Willy Tarreau) <willy@w.ods.org> 2059ea8dc7e0SDavid E. O'Brien * Updated python bindings (Brett Funderburg) 2060ea8dc7e0SDavid E. O'Brien <brettf@deepfile.com> 2061ea8dc7e0SDavid E. O'Brien 206228a8b562SDavid E. O'Brien2003-11-11 15:03 Christos Zoulas <christos@astron.com> 2063ea8dc7e0SDavid E. O'Brien 2064ea8dc7e0SDavid E. O'Brien * Include file.h first, because it includes config.h 2065ea8dc7e0SDavid E. O'Brien breaks largefile test macros otherwise. 2066ea8dc7e0SDavid E. O'Brien (Paul Eggert <eggert@CS.UCLA.EDU> via 2067ea8dc7e0SDavid E. O'Brien Lars Hecking <lhecking@nmrc.ie>) 2068ea8dc7e0SDavid E. O'Brien 206928a8b562SDavid E. O'Brien2003-10-14 21:39 Christos Zoulas <christos@astron.com> 2070ea8dc7e0SDavid E. O'Brien 2071ea8dc7e0SDavid E. O'Brien * Python bindings (Brett Funderburg) <brettf@deepfile.com> 2072ea8dc7e0SDavid E. O'Brien * Don't lookup past the end of the buffer 2073ea8dc7e0SDavid E. O'Brien (Chad Hanson) <chanson@tcs-sec.com> 2074ea8dc7e0SDavid E. O'Brien * Add MAGIC_ERROR and api on magic_errno() 2075ea8dc7e0SDavid E. O'Brien 207628a8b562SDavid E. O'Brien2003-10-08 12:40 Christos Zoulas <christos@astron.com> 2077ea8dc7e0SDavid E. O'Brien 2078ea8dc7e0SDavid E. O'Brien * handle error conditions from compile as fatal 2079ea8dc7e0SDavid E. O'Brien (Antti Kantee) <pooka@netbsd.org> 2080ea8dc7e0SDavid E. O'Brien * handle magic filename parsing sanely 2081ea8dc7e0SDavid E. O'Brien * more magic fixes. 2082ea8dc7e0SDavid E. O'Brien * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 2083ea8dc7e0SDavid E. O'Brien * describe magic file handling 2084ea8dc7e0SDavid E. O'Brien (Bryan Henderson) <bryanh@giraffe-data.com> 2085ea8dc7e0SDavid E. O'Brien 208628a8b562SDavid E. O'Brien2003-09-12 15:09 Christos Zoulas <christos@astron.com> 2087ea8dc7e0SDavid E. O'Brien 2088ea8dc7e0SDavid E. O'Brien * update magic files. 2089ea8dc7e0SDavid E. O'Brien * remove largefile support from file.h; it breaks things on most OS's 2090ea8dc7e0SDavid E. O'Brien 209128a8b562SDavid E. O'Brien2003-08-10 10:25 Christos Zoulas <christos@astron.com> 2092ea8dc7e0SDavid E. O'Brien 2093ea8dc7e0SDavid E. O'Brien * fix unmapping'ing of mmaped files. 2094ea8dc7e0SDavid E. O'Brien 209528a8b562SDavid E. O'Brien2003-07-10 12:03 Christos Zoulas <christos@astron.com> 2096ea8dc7e0SDavid E. O'Brien 2097ea8dc7e0SDavid E. O'Brien * don't exit with -1 on error; always exit 1 (Marty Leisner) 2098ea8dc7e0SDavid E. O'Brien * restore utimes code. 2099ea8dc7e0SDavid E. O'Brien 210028a8b562SDavid E. O'Brien2003-06-10 17:03 Christos Zoulas <christos@astron.com> 2101ea8dc7e0SDavid E. O'Brien 2102ea8dc7e0SDavid E. O'Brien * make sure we don't access uninitialized memory. 2103ea8dc7e0SDavid E. O'Brien * pass lint 2104ea8dc7e0SDavid E. O'Brien * #ifdef __cplusplus in magic.h 2105ea8dc7e0SDavid E. O'Brien 210628a8b562SDavid E. O'Brien2003-05-25 19:23 Christos Zoulas <christos@astron.com> 2107ea8dc7e0SDavid E. O'Brien 2108ea8dc7e0SDavid E. O'Brien * rename cvs magic file to revision to deal with 2109ea8dc7e0SDavid E. O'Brien case insensitive filesystems. 2110ea8dc7e0SDavid E. O'Brien 211128a8b562SDavid E. O'Brien2003-05-23 17:03 Christos Zoulas <christos@astron.com> 2112ea8dc7e0SDavid E. O'Brien 2113ea8dc7e0SDavid E. O'Brien * documentation fixes from Michael Piefel <piefel@debian.org> 2114ea8dc7e0SDavid E. O'Brien * magic fixes (various) 2115ea8dc7e0SDavid E. O'Brien * revert basename magic in .mgc name determination 2116ea8dc7e0SDavid E. O'Brien * buffer protection in uncompress, 2117ea8dc7e0SDavid E. O'Brien signness issues, 2118ea8dc7e0SDavid E. O'Brien close files 2119ea8dc7e0SDavid E. O'Brien Maciej W. Rozycki <macro@ds2.pg.gda.pl 2120ea8dc7e0SDavid E. O'Brien 212128a8b562SDavid E. O'Brien2003-04-21 20:12 Christos Zoulas <christos@astron.com> 2122ea8dc7e0SDavid E. O'Brien 2123ea8dc7e0SDavid E. O'Brien * fix zsh magic 2124ea8dc7e0SDavid E. O'Brien 212528a8b562SDavid E. O'Brien2003-04-04 16:59 Christos Zoulas <christos@astron.com> 2126ea8dc7e0SDavid E. O'Brien 2127ea8dc7e0SDavid E. O'Brien * fix operand sort order in string. 2128ea8dc7e0SDavid E. O'Brien 212928a8b562SDavid E. O'Brien2003-04-02 17:30 Christos Zoulas <christos@astron.com> 2130ea8dc7e0SDavid E. O'Brien 2131ea8dc7e0SDavid E. O'Brien * cleanup namespace in magic.h 2132ea8dc7e0SDavid E. O'Brien 213328a8b562SDavid E. O'Brien2003-04-02 13:50 Christos Zoulas <christos@astron.com> 2134ea8dc7e0SDavid E. O'Brien 2135ea8dc7e0SDavid E. O'Brien * Magic additions (Alex Ott) 2136ea8dc7e0SDavid E. O'Brien * Fix bug that broke VPATH compilation (Peter Breitenlohner) 2137ea8dc7e0SDavid E. O'Brien 213828a8b562SDavid E. O'Brien2003-03-28 16:03 Christos Zoulas <christos@astron.com> 2139ea8dc7e0SDavid E. O'Brien 2140ea8dc7e0SDavid E. O'Brien * remove packed attribute from magic struct. 2141ea8dc7e0SDavid E. O'Brien * make the magic struct properly aligned. 2142ea8dc7e0SDavid E. O'Brien * bump version number of compiled files to 2. 2143ea8dc7e0SDavid E. O'Brien 214428a8b562SDavid E. O'Brien2003-03-27 13:10 Christos Zoulas <christos@astron.com> 2145ea8dc7e0SDavid E. O'Brien 2146ea8dc7e0SDavid E. O'Brien * separate tar detection and run it before softmagic. 2147ea8dc7e0SDavid E. O'Brien * fix reversed symlink test. 2148ea8dc7e0SDavid E. O'Brien * fix version printing. 2149ea8dc7e0SDavid E. O'Brien * make separator a string instead of a char. 2150ea8dc7e0SDavid E. O'Brien * update manual page and sort options. 2151ea8dc7e0SDavid E. O'Brien 215228a8b562SDavid E. O'Brien2003-03-26 11:00 Christos Zoulas <christos@astron.com> 2153ea8dc7e0SDavid E. O'Brien 2154ea8dc7e0SDavid E. O'Brien * Pass lint 2155ea8dc7e0SDavid E. O'Brien * make NULL in magic_file mean stdin 2156ea8dc7e0SDavid E. O'Brien * Fix "-" argument to file to pass NULL to magic_file 2157ea8dc7e0SDavid E. O'Brien * avoid pointer casts by using memcpy 2158ea8dc7e0SDavid E. O'Brien * rename magic_buf -> magic_buffer 2159ea8dc7e0SDavid E. O'Brien * keep only the first error 2160ea8dc7e0SDavid E. O'Brien * manual page: new sentence, new line 2161ea8dc7e0SDavid E. O'Brien * fix typo in api function (magic_buf -> magic_buffer) 2162