1*3b9cdfa3SAntonio Huete Jimenez2022-09-13 14:55 Christos Zoulas <christos@zoulas.com> 2*3b9cdfa3SAntonio Huete Jimenez 3*3b9cdfa3SAntonio Huete Jimenez * release 5.43 4*3b9cdfa3SAntonio Huete Jimenez 5*3b9cdfa3SAntonio Huete Jimenez2022-09-10 9:17 Christos Zoulas <christos@zoulas.com> 6*3b9cdfa3SAntonio Huete Jimenez 7*3b9cdfa3SAntonio Huete Jimenez * Add octal indirect magic (Michal Gorny) 8*3b9cdfa3SAntonio Huete Jimenez 9*3b9cdfa3SAntonio Huete Jimenez2022-08-17 11:43 Christos Zoulas <christos@zoulas.com> 10*3b9cdfa3SAntonio Huete Jimenez 11*3b9cdfa3SAntonio Huete Jimenez * PR/374: avoid infinite loop in non-wide code (piru) 12*3b9cdfa3SAntonio Huete Jimenez * PR/373: Obey MAGIC_CONTINUE with multiple magic files (vismarli) 13*3b9cdfa3SAntonio Huete Jimenez 14*3b9cdfa3SAntonio Huete Jimenez2022-07-26 11:10 Christos Zoulas <christos@zoulas.com> 15*3b9cdfa3SAntonio Huete Jimenez 16*3b9cdfa3SAntonio Huete Jimenez * Fix bug with large flist (Florian Weimer) 17*3b9cdfa3SAntonio Huete Jimenez 18*3b9cdfa3SAntonio Huete Jimenez2022-07-07 13:21 Christos Zoulas <christos@zoulas.com> 19*3b9cdfa3SAntonio Huete Jimenez 20*3b9cdfa3SAntonio Huete Jimenez * PR/364: Detect non-nul-terminated core filenames from QEMU 21*3b9cdfa3SAntonio Huete Jimenez (mam-ableton) 22*3b9cdfa3SAntonio Huete Jimenez 23*3b9cdfa3SAntonio Huete Jimenez2022-07-04 15:45 Christos Zoulas <christos@zoulas.com> 24*3b9cdfa3SAntonio Huete Jimenez 25*3b9cdfa3SAntonio Huete Jimenez * PR/359: Add support for http://ndjson.org/ (darose) 26*3b9cdfa3SAntonio Huete Jimenez * PR/362: Fix wide printing (ro-ee) 27*3b9cdfa3SAntonio Huete Jimenez * PR/358: Fix width for -f - (jpalus) 28*3b9cdfa3SAntonio Huete Jimenez * PR/356: Fix JSON constant parsing (davewhite) 29*3b9cdfa3SAntonio Huete Jimenez 30*3b9cdfa3SAntonio Huete Jimenez2022-06-10 9:40 Christos Zoulas <christos@zoulas.com> 31*3b9cdfa3SAntonio Huete Jimenez 32*3b9cdfa3SAntonio Huete Jimenez * release 5.42 33*3b9cdfa3SAntonio Huete Jimenez 34*3b9cdfa3SAntonio Huete Jimenez2022-05-31 14:50 Christos Zoulas <christos@zoulas.com> 35*3b9cdfa3SAntonio Huete Jimenez 36*3b9cdfa3SAntonio Huete Jimenez * PR/348: add missing cases to prevent file from aborting on 37*3b9cdfa3SAntonio Huete Jimenez random magic files. 38*3b9cdfa3SAntonio Huete Jimenez 39*3b9cdfa3SAntonio Huete Jimenez2022-05-27 21:05 Christos Zoulas <christos@zoulas.com> 40*3b9cdfa3SAntonio Huete Jimenez 41*3b9cdfa3SAntonio Huete Jimenez * PR/351: octalify filenames when not raw before printing. 42*3b9cdfa3SAntonio Huete Jimenez 43*3b9cdfa3SAntonio Huete Jimenez2022-04-18 17:51 Christos Zoulas <christos@zoulas.com> 44*3b9cdfa3SAntonio Huete Jimenez 45*3b9cdfa3SAntonio Huete Jimenez * fix regex cacheing bug (Dirk Mueller) 46*3b9cdfa3SAntonio Huete Jimenez * merge file_regcomp and file_regerror() to simplify the code 47*3b9cdfa3SAntonio Huete Jimenez and reduce memory requirements for storing regexes (Dirk Mueller) 48*3b9cdfa3SAntonio Huete Jimenez 49*3b9cdfa3SAntonio Huete Jimenez2022-03-19 12:56 Christos Zoulas <christos@zoulas.com> 50*3b9cdfa3SAntonio Huete Jimenez 51*3b9cdfa3SAntonio Huete Jimenez * cache regex (Dirk Mueller) 52*3b9cdfa3SAntonio Huete Jimenez * detect filesystem full by flushing output (Dirk Mueller) 53*3b9cdfa3SAntonio Huete Jimenez 54*3b9cdfa3SAntonio Huete Jimenez2021-11-19 12:36 Christos Zoulas <christos@zoulas.com> 55*3b9cdfa3SAntonio Huete Jimenez 56*3b9cdfa3SAntonio Huete Jimenez * implement running decompressor programs using 57*3b9cdfa3SAntonio Huete Jimenez posix_spawnp(2) instead of vfork(2) 58*3b9cdfa3SAntonio Huete Jimenez 59*3b9cdfa3SAntonio Huete Jimenez2021-10-24 11:51 Christos Zoulas <christos@zoulas.com> 60*3b9cdfa3SAntonio Huete Jimenez 61*3b9cdfa3SAntonio Huete Jimenez * Add support for msdos dates and times 62*3b9cdfa3SAntonio Huete Jimenez 63*3b9cdfa3SAntonio Huete Jimenez2021-10-20 9:55 Christos Zoulas <christos@zoulas.com> 64*3b9cdfa3SAntonio Huete Jimenez 65*3b9cdfa3SAntonio Huete Jimenez * use the system byte swapping functions if available (Werner Fink) 66*3b9cdfa3SAntonio Huete Jimenez 67614728caSSascha Wildner2021-10-18 11:57 Christos Zoulas <christos@zoulas.com> 68614728caSSascha Wildner 69614728caSSascha Wildner * release 5.41 70614728caSSascha Wildner 71614728caSSascha Wildner2021-09-23 03:51 Christos Zoulas <christos@zoulas.com> 72614728caSSascha Wildner 73614728caSSascha Wildner * Avinash Sonawane: Fix tzname detection 74614728caSSascha Wildner 75614728caSSascha Wildner2021-09-03 09:17 Christos Zoulas <christos@zoulas.com> 76614728caSSascha Wildner 77614728caSSascha Wildner * Fix relationship tests with "search" magic, don't short circuit 78614728caSSascha Wildner logic 79614728caSSascha Wildner 80614728caSSascha Wildner2021-07-13 01:06 Christos Zoulas <christos@zoulas.com> 81614728caSSascha Wildner 82614728caSSascha Wildner * Fix memory leak in compile mode 83614728caSSascha Wildner 84614728caSSascha Wildner2021-07-01 03:51 Christos Zoulas <christos@zoulas.com> 85614728caSSascha Wildner 86614728caSSascha Wildner * PR/272: kiefermat: Only set returnval = 1 when we printed something 87614728caSSascha Wildner (in all cases print or !print). This simplifies the logic and fixes 88614728caSSascha Wildner the issue in the PR with -k and --mime-type there was no continuation 89614728caSSascha Wildner printed before the default case. 90614728caSSascha Wildner 91614728caSSascha Wildner2021-06-30 13:07 Christos Zoulas <christos@zoulas.com> 92614728caSSascha Wildner 93614728caSSascha Wildner * PR/270: Don't translate unprintable characters in %s magic formats 94614728caSSascha Wildner when -r 95614728caSSascha Wildner * PR/269: Avoid undefined behavior with clang (adding offset to NULL) 96614728caSSascha Wildner 97614728caSSascha Wildner2021-05-09 18:38 Christos Zoulas <christos@zoulas.com> 98614728caSSascha Wildner 99614728caSSascha Wildner * Add a new flag (f) that requires that the match is a full word, 100614728caSSascha Wildner not a partial word match. 101614728caSSascha Wildner * Add varint types (unused) 102614728caSSascha Wildner 103614728caSSascha Wildner2021-04-19 17:17 Christos Zoulas <christos@zoulas.com> 104614728caSSascha Wildner 105614728caSSascha Wildner * PR/256: mutableVoid: If the file is less than 3 bytes, use the file 106614728caSSascha Wildner length to determine type 107614728caSSascha Wildner * PR/259: aleksandr.v.novichkov: mime printing through indirect magic 108614728caSSascha Wildner is not taken into account, use match directly so that it does. 109614728caSSascha Wildner 110614728caSSascha Wildner2021-04-04 17:02 Christos Zoulas <christos@zoulas.com> 111614728caSSascha Wildner 112614728caSSascha Wildner * count the total bytes found not the total byte positions 113614728caSSascha Wildner in order to determine encoding (Anatol Belski) 114614728caSSascha Wildner 115970935fdSSascha Wildner2021-03-30 20:21 Christos Zoulas <christos@zoulas.com> 116970935fdSSascha Wildner 117970935fdSSascha Wildner * release 5.40 118970935fdSSascha Wildner 119970935fdSSascha Wildner2021-02-05 16:31 Christos Zoulas <christos@zoulas.com> 120970935fdSSascha Wildner 121970935fdSSascha Wildner * PR/234: Add limit to the number of bytes to scan for encoding 122970935fdSSascha Wildner * PR/230: Fix /T (trim flag) for regex 123970935fdSSascha Wildner 124970935fdSSascha Wildner2021-02-01 12:31 Christos Zoulas <christos@zoulas.com> 125970935fdSSascha Wildner * PR/77: Trim trailing separator. 126970935fdSSascha Wildner 127970935fdSSascha Wildner2020-12-17 15:44 Christos Zoulas <christos@zoulas.com> 128970935fdSSascha Wildner 129970935fdSSascha Wildner * PR/211: Convert system read errors from corrupt ELF 130970935fdSSascha Wildner files into human readable error messages 131970935fdSSascha Wildner 132970935fdSSascha Wildner2020-12-08 16:24 Christos Zoulas <christos@zoulas.com> 133970935fdSSascha Wildner 134970935fdSSascha Wildner * fix multithreaded decompression file descriptor issue 135970935fdSSascha Wildner by using close-on-exec (Denys Vlasenko) 136970935fdSSascha Wildner 137970935fdSSascha Wildner2020-06-27 11:58 Christos Zoulas <christos@zoulas.com> 138970935fdSSascha Wildner 139970935fdSSascha Wildner * Exclude surrogate pairs from utf-8 detection (Michael Liu) 140970935fdSSascha Wildner 141970935fdSSascha Wildner2020-06-25 12:53 Christos Zoulas <christos@zoulas.com> 142970935fdSSascha Wildner 143970935fdSSascha Wildner * Include # to the list of ignored format chars (Werner Fink) 144970935fdSSascha Wildner 145c990e5baSDaniel Fojt2020-06-14 20:02 Christos Zoulas <christos@zoulas.com> 146c990e5baSDaniel Fojt 147c990e5baSDaniel Fojt * release 5.39 148c990e5baSDaniel Fojt 149c990e5baSDaniel Fojt2020-06-07 20:00 Christos Zoulas <christos@zoulas.com> 150c990e5baSDaniel Fojt 151c990e5baSDaniel Fojt * Remove unused subtype_mime (Steve Grubb) 152c990e5baSDaniel Fojt * Remove unused check in okstat (Steve Grubb) 153c990e5baSDaniel Fojt * Fix mime-type in elf binaries by making sure $x is set 154c990e5baSDaniel Fojt * Fix indirect negative offsets broken by OFFNEGATIVE 155c990e5baSDaniel Fojt * Fix GUID equality check 156c990e5baSDaniel Fojt * PR/165: Handle empty array and strings in JSON 157c990e5baSDaniel Fojt * PR/162: Add --exclude-quiet 158c990e5baSDaniel Fojt 159c990e5baSDaniel Fojt2020-06-06 15:33 Christos Zoulas <christos@zoulas.com> 160c990e5baSDaniel Fojt 161c990e5baSDaniel Fojt * Fix memory leak in ascmagic (Steve Grubb) 162c990e5baSDaniel Fojt 163c990e5baSDaniel Fojt2020-06-04 00:21 Christos Zoulas <christos@zoulas.com> 164c990e5baSDaniel Fojt 165c990e5baSDaniel Fojt * Fix string comparison length with ignore whitespace 166c990e5baSDaniel Fojt 167c990e5baSDaniel Fojt2020-05-31 00:11 Christos Zoulas <christos@zoulas.com> 168c990e5baSDaniel Fojt 169c990e5baSDaniel Fojt * Fix mingwin 64 compilation 170c990e5baSDaniel Fojt 171c990e5baSDaniel Fojt2020-05-30 23:56 Christos Zoulas <christos@zoulas.com> 172c990e5baSDaniel Fojt 173c990e5baSDaniel Fojt * PR/159: whitelist getpid needed for file_pipe2file() 174c990e5baSDaniel Fojt 175c990e5baSDaniel Fojt2020-05-09 18:57 Christos Zoulas <christos@zoulas.com> 176c990e5baSDaniel Fojt 177c990e5baSDaniel Fojt * Indicate negative offsets with a flag OFFNEGATIVE 178c990e5baSDaniel Fojt so that -0 works. 179c990e5baSDaniel Fojt * Introduce "offset" magic type that can be used to 180c990e5baSDaniel Fojt detect the file size, and bail on short files. 181c990e5baSDaniel Fojt * document DER better in the magic man page. 182c990e5baSDaniel Fojt 183c990e5baSDaniel Fojt2020-03-11 21:53 Christos Zoulas <christos@zoulas.com> 184c990e5baSDaniel Fojt 185c990e5baSDaniel Fojt * fix memory leaks (SonarQube) 186c990e5baSDaniel Fojt 187c990e5baSDaniel Fojt2020-03-08 21:33 Christos Zoulas <christos@zoulas.com> 188c990e5baSDaniel Fojt 189c990e5baSDaniel Fojt * fix memory leaks (SonarQube) 190c990e5baSDaniel Fojt * rewrite confusing loops (SonarQube) 191c990e5baSDaniel Fojt * fix bogus test (SonarQube) 192c990e5baSDaniel Fojt * pass a sized buffer to file_fmttime() (SonarQube) 193c990e5baSDaniel Fojt 194c990e5baSDaniel Fojt * fix memory leaks (SonarQube) 195c990e5baSDaniel Fojt 196c990e5baSDaniel Fojt2020-02-20 15:50 Christos Zoulas <christos@zoulas.com> 197c990e5baSDaniel Fojt 198c990e5baSDaniel Fojt * Don't allow * in printf formats, or the code itself (Christoph Biedl) 199c990e5baSDaniel Fojt * Introduce a printf output size checker to avoid DoS attacks 200c990e5baSDaniel Fojt 201c990e5baSDaniel Fojt2020-02-17 17:22 Christos Zoulas <christos@zoulas.com> 202c990e5baSDaniel Fojt 203c990e5baSDaniel Fojt * Avoid memory leak on error (oss-fuzz) 204c990e5baSDaniel Fojt * Check length of string on DER before derefercing and add new types 205c990e5baSDaniel Fojt * Add missing DER string (oss-fuzz) 206c990e5baSDaniel Fojt 207c990e5baSDaniel Fojt2020-02-16 20:45 Christos Zoulas <christos@zoulas.com> 208c990e5baSDaniel Fojt 209c990e5baSDaniel Fojt * Add missing DER types, and debugging 210c990e5baSDaniel Fojt 211c990e5baSDaniel Fojt2020-02-13 13:10 Christos Zoulas <christos@zoulas.com> 212c990e5baSDaniel Fojt 213c990e5baSDaniel Fojt * PR/140: Avoid abort with hand-crafted magic file (gockelhahn) 214c990e5baSDaniel Fojt * PR/139 Avoid DoS in printf with hand-crafted magic file (gockelhahn) 215c990e5baSDaniel Fojt * PR/138: Avoid crash with hand-crafted magic file (gockelhahn) 216c990e5baSDaniel Fojt 217c990e5baSDaniel Fojt2020-02-12 17:30 Christos Zoulas <christos@zoulas.com> 218c990e5baSDaniel Fojt 219c990e5baSDaniel Fojt * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine) 220c990e5baSDaniel Fojt 221c990e5baSDaniel Fojt2019-12-24 14:16 Christos Zoulas <christos@zoulas.com> 222c990e5baSDaniel Fojt 223c990e5baSDaniel Fojt * add guid support 224c990e5baSDaniel Fojt 2256fca56fbSSascha Wildner2019-12-16 21:11 Christos Zoulas <christos@zoulas.com> 2266fca56fbSSascha Wildner 2276fca56fbSSascha Wildner * release 5.38 2286fca56fbSSascha Wildner 2296fca56fbSSascha Wildner2019-12-15 22:13 Christos Zoulas <christos@zoulas.com> 2306fca56fbSSascha Wildner Document changes since the previous release: 2316fca56fbSSascha Wildner - Always accept -S (no sandbox) even if we don't support sandboxing 2326fca56fbSSascha Wildner - More syscalls elided for sandboxiing 2336fca56fbSSascha Wildner - For ELF dynamic means having an interpreter not just PT_DYNAMIC 2346fca56fbSSascha Wildner - Check for large ELF session header offset 2356fca56fbSSascha Wildner - When saving and restoring a locale, keep the locale name in our 2366fca56fbSSascha Wildner own storage. 2376fca56fbSSascha Wildner - Add a flag to disable CSV file detection. 2386fca56fbSSascha Wildner - Don't pass NULL/0 to memset to appease sanitizers. 2396fca56fbSSascha Wildner - Avoid spurious prints when looks for extensions or apple strings 2406fca56fbSSascha Wildner in fsmagic. 2416fca56fbSSascha Wildner - Add builtin decompressors for xz and and bzip. 2426fca56fbSSascha Wildner - Add a limit for the number of CDF elements. 2436fca56fbSSascha Wildner - More checks for overflow in CDF. 2446fca56fbSSascha Wildner 2456fca56fbSSascha Wildner2019-05-14 22:26 Christos Zoulas <christos@zoulas.com> 2466fca56fbSSascha Wildner 2476fca56fbSSascha Wildner * release 5.37 2486fca56fbSSascha Wildner 2496fca56fbSSascha Wildner2019-05-09 22:27 Christos Zoulas <christos@zoulas.com> 2506fca56fbSSascha Wildner 2516fca56fbSSascha Wildner * Make sure that continuation separators are printed 2526fca56fbSSascha Wildner with -k within softmagic 2536fca56fbSSascha Wildner 2546fca56fbSSascha Wildner2019-05-06 22:27 Christos Zoulas <christos@zoulas.com> 2556fca56fbSSascha Wildner 2566fca56fbSSascha Wildner * Change SIGPIPE saving and restoring during compression to use 2576fca56fbSSascha Wildner sigaction(2) instead of signal(3) and cache it. (Denys Vlasenko) 2586fca56fbSSascha Wildner * Cache stat(2) calls more to reduce number of calls (Denys Vlasenko) 2596fca56fbSSascha Wildner 2606fca56fbSSascha Wildner2019-05-06 17:25 Christos Zoulas <christos@zoulas.com> 2616fca56fbSSascha Wildner 2626fca56fbSSascha Wildner * PR/77: Handle --mime-type and -k correctly. 2636fca56fbSSascha Wildner 2646fca56fbSSascha Wildner2019-05-03 15:26 Christos Zoulas <christos@zoulas.com> 2656fca56fbSSascha Wildner 2666fca56fbSSascha Wildner * Switch decompression code to use vfork() because 2676fca56fbSSascha Wildner tools like rpmdiff and rpmbuild call libmagic 2686fca56fbSSascha Wildner with large process footprints (Denys Vlasenko) 2696fca56fbSSascha Wildner 2706fca56fbSSascha Wildner2019-04-07 14:05 Christos Zoulas <christos@zoulas.com> 2716fca56fbSSascha Wildner 2726fca56fbSSascha Wildner * PR/75: --enable-zlib, did not work. 2736fca56fbSSascha Wildner 2746fca56fbSSascha Wildner2019-02-27 11:54 Christos Zoulas <christos@zoulas.com> 2756fca56fbSSascha Wildner 2766fca56fbSSascha Wildner * Improve regex efficiency (Michael Schroeder) by: 2776fca56fbSSascha Wildner 1. Prefixing regex searches with regular search 2786fca56fbSSascha Wildner for keywords where possible 2796fca56fbSSascha Wildner 2. Using memmem(3) where available 2806fca56fbSSascha Wildner 2816fca56fbSSascha Wildner2019-02-20 10:16 Christos Zoulas <christos@zoulas.com> 2826fca56fbSSascha Wildner 2836fca56fbSSascha Wildner * release 5.36 2846fca56fbSSascha Wildner 2856fca56fbSSascha Wildner2019-02-19 15:30 Christos Zoulas <christos@zoulas.com> 2866fca56fbSSascha Wildner 2876fca56fbSSascha Wildner * Fix cast to use cast macros 2886fca56fbSSascha Wildner * Add UCS-32 builtin detection (PR/61) reported by tmc 2896fca56fbSSascha Wildner 2906fca56fbSSascha Wildner2019-02-18 18:24 Christos Zoulas <christos@zoulas.com> 2916fca56fbSSascha Wildner 2926fca56fbSSascha Wildner * Fix stack read (PR/62) and write (PR/64) stack overflows 2936fca56fbSSascha Wildner reported by spinpx 2946fca56fbSSascha Wildner 2956fca56fbSSascha Wildner2018-10-18 19:32 Christos Zoulas <christos@zoulas.com> 2966fca56fbSSascha Wildner 2976fca56fbSSascha Wildner * release 5.35 2986fca56fbSSascha Wildner 2996fca56fbSSascha Wildner2018-09-10 20:38 Christos Zoulas <christos@zoulas.com> 3006fca56fbSSascha Wildner 3016fca56fbSSascha Wildner * Add FreeBSD ELF core file support (John Baldwin) 3026fca56fbSSascha Wildner 3036fca56fbSSascha Wildner2018-08-20 18:40 Christos Zoulas <christos@zoulas.com> 3046fca56fbSSascha Wildner 3056fca56fbSSascha Wildner * PR/30: Allow all parameter values to be set (don't treat 0 specially) 3066fca56fbSSascha Wildner * handle default annotations on the softmagic match instead at the 3076fca56fbSSascha Wildner end. 3086fca56fbSSascha Wildner 3096fca56fbSSascha Wildner2018-07-25 10:17 Christos Zoulas <christos@zoulas.com> 3106fca56fbSSascha Wildner 3116fca56fbSSascha Wildner * PR/23: Recognize JSON files 3126fca56fbSSascha Wildner 3136fca56fbSSascha Wildner2018-07-25 10:17 Christos Zoulas <christos@zoulas.com> 3146fca56fbSSascha Wildner 3156fca56fbSSascha Wildner * PR/18: file --mime-encoding should not print mime-type 3166fca56fbSSascha Wildner 3176fca56fbSSascha Wildner2018-07-25 8:50 Christos Zoulas <christos@zoulas.com> 3186fca56fbSSascha Wildner 3196fca56fbSSascha Wildner * release 5.34 3206fca56fbSSascha Wildner 3216fca56fbSSascha Wildner2018-06-22 16:38 Christos Zoulas <christos@zoulas.com> 3226fca56fbSSascha Wildner 3236fca56fbSSascha Wildner * Add Quad indirect offsets 3246fca56fbSSascha Wildner 3256fca56fbSSascha Wildner2018-05-24 14:10 Christos Zoulas <christos@zoulas.com> 3266fca56fbSSascha Wildner 3276fca56fbSSascha Wildner * Enable parsing of ELF dynamic sections to handle PIE better 3286fca56fbSSascha Wildner 3296fca56fbSSascha Wildner2018-04-15 14:52 Christos Zoulas <christos@zoulas.com> 3306fca56fbSSascha Wildner 3316fca56fbSSascha Wildner * release 5.33 3326fca56fbSSascha Wildner 3336fca56fbSSascha Wildner2018-02-24 14:50 Christos Zoulas <christos@zoulas.com> 3346fca56fbSSascha Wildner 3356fca56fbSSascha Wildner * extend the support for ${x?:} expansions for magic descriptions 3366fca56fbSSascha Wildner 3376fca56fbSSascha Wildner2018-02-21 16:25 Christos Zoulas <christos@zoulas.com> 3386fca56fbSSascha Wildner 3396fca56fbSSascha Wildner * add support for ${x?:} in mime types to handle 3406fca56fbSSascha Wildner pie binaries. 3416fca56fbSSascha Wildner 3426fca56fbSSascha Wildner2017-11-03 9:23 Christos Zoulas <christos@zoulas.com> 3436fca56fbSSascha Wildner 3446fca56fbSSascha Wildner * add support for negative offsets (offsets from the end of file) 3456fca56fbSSascha Wildner 3466fca56fbSSascha Wildner2017-09-26 8:22 Christos Zoulas <christos@zoulas.com> 3476fca56fbSSascha Wildner 3486fca56fbSSascha Wildner * close the file on error when writing magic (Steve Grubb) 3496fca56fbSSascha Wildner 3506fca56fbSSascha Wildner2017-09-24 12:02 Christos Zoulas <christos@zoulas.com> 3516fca56fbSSascha Wildner 3526fca56fbSSascha Wildner * seccomp support (Paul Moore) 3536fca56fbSSascha Wildner 354c30bd091SSascha Wildner2017-09-02 11:53 Christos Zoulas <christos@zoulas.com> 355c30bd091SSascha Wildner 356c30bd091SSascha Wildner * release 5.32 357c30bd091SSascha Wildner 358c30bd091SSascha Wildner2017-08-28 16:37 Christos Zoulas <christos@zoulas.com> 359c30bd091SSascha Wildner 360c30bd091SSascha Wildner * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski) 361c30bd091SSascha Wildner 362c30bd091SSascha Wildner2017-08-27 03:55 Christos Zoulas <christos@zoulas.com> 363c30bd091SSascha Wildner 364c30bd091SSascha Wildner * Fix always true condition (Thomas Jarosch) 365c30bd091SSascha Wildner 366c30bd091SSascha Wildner2017-05-24 17:30 Christos Zoulas <christos@zoulas.com> 367c30bd091SSascha Wildner 368c30bd091SSascha Wildner * pickier parsing of numeric values in magic files. 369c30bd091SSascha Wildner 370c30bd091SSascha Wildner2017-05-23 17:55 Christos Zoulas <christos@zoulas.com> 371c30bd091SSascha Wildner 372c30bd091SSascha Wildner * PR/615 add magic_getflags() 373c30bd091SSascha Wildner 374c30bd091SSascha Wildner2017-05-23 13:55 Christos Zoulas <christos@zoulas.com> 375c30bd091SSascha Wildner 376c30bd091SSascha Wildner * release 5.31 377c30bd091SSascha Wildner 378c30bd091SSascha Wildner2017-03-17 20:32 Christos Zoulas <christos@zoulas.com> 379c30bd091SSascha Wildner 380c30bd091SSascha Wildner * remove trailing spaces from magic files 381c30bd091SSascha Wildner * refactor is_tar 382c30bd091SSascha Wildner * better bounds checks for cdf 383c30bd091SSascha Wildner 384c30bd091SSascha Wildner2017-02-10 12:24 Christos Zoulas <christos@zoulas.com> 385c30bd091SSascha Wildner 386c30bd091SSascha Wildner * release 5.30 387c30bd091SSascha Wildner 388c30bd091SSascha Wildner2017-02-07 23:27 Christos Zoulas <christos@zoulas.com> 389c30bd091SSascha Wildner 390c30bd091SSascha Wildner * If we exceeded the offset in a search return no match 391c30bd091SSascha Wildner (Christoph Biedl) 392c30bd091SSascha Wildner * Be more lenient on corrupt CDF files (Christoph Biedl) 393c30bd091SSascha Wildner 394c30bd091SSascha Wildner2017-02-04 16:46 Christos Zoulas <christos@zoulas.com> 395c30bd091SSascha Wildner 396c30bd091SSascha Wildner * pacify ubsan sign extension (oss-fuzz/524) 397c30bd091SSascha Wildner 398c30bd091SSascha Wildner2017-02-01 12:42 Christos Zoulas <christos@zoulas.com> 399c30bd091SSascha Wildner 400c30bd091SSascha Wildner * off by one in cdf parsing (PR/593) 401c30bd091SSascha Wildner * report debugging sections in elf (PR/591) 402c30bd091SSascha Wildner 403c30bd091SSascha Wildner2016-11-06 10:52 Christos Zoulas <christos@zoulas.com> 404c30bd091SSascha Wildner 405c30bd091SSascha Wildner * Allow @@@ in extensions 406c30bd091SSascha Wildner * Add missing overflow check in der magic (Jonas Wagner) 407c30bd091SSascha Wildner 408c30bd091SSascha Wildner2016-10-25 10:40 Christos Zoulas <christos@zoulas.com> 409c30bd091SSascha Wildner 410c30bd091SSascha Wildner * release 5.29 411c30bd091SSascha Wildner 412c30bd091SSascha Wildner2016-10-24 11:20 Christos Zoulas <christos@zoulas.com> 413c30bd091SSascha Wildner 414c30bd091SSascha Wildner * der getlength overflow (Jonas Wagner) 415c30bd091SSascha Wildner * multiple magic file load failure (Christoph Biedl) 416c30bd091SSascha Wildner 417c30bd091SSascha Wildner2016-10-17 11:26 Christos Zoulas <christos@zoulas.com> 418c30bd091SSascha Wildner 419c30bd091SSascha Wildner * CDF parsing improvements (Guy Helmer) 420c30bd091SSascha Wildner 421c30bd091SSascha Wildner2016-07-20 7:26 Christos Zoulas <christos@zoulas.com> 422c30bd091SSascha Wildner 423c30bd091SSascha Wildner * Add support for signed indirect offsets 424c30bd091SSascha Wildner 425c30bd091SSascha Wildner2016-07-18 7:41 Christos Zoulas <christos@zoulas.com> 426c30bd091SSascha Wildner 427c30bd091SSascha Wildner * cat /dev/null | file - should print empty (Christoph Biedl) 428c30bd091SSascha Wildner 429c30bd091SSascha Wildner2016-07-05 15:20 Christos Zoulas <christos@zoulas.com> 430c30bd091SSascha Wildner 431c30bd091SSascha Wildner * Bump string size from 64 to 96. 432c30bd091SSascha Wildner 433c30bd091SSascha Wildner2016-06-13 20:20 Christos Zoulas <christos@zoulas.com> 434c30bd091SSascha Wildner 435c30bd091SSascha Wildner * PR/556: Fix separators on annotations. 436c30bd091SSascha Wildner 437c30bd091SSascha Wildner2016-06-13 19:40 Christos Zoulas <christos@zoulas.com> 438c30bd091SSascha Wildner 439c30bd091SSascha Wildner * release 5.28 440c30bd091SSascha Wildner * fix leak on allocation failure 441c30bd091SSascha Wildner 442c30bd091SSascha Wildner2016-06-01 1:20 Christos Zoulas <christos@zoulas.com> 443c30bd091SSascha Wildner 444c30bd091SSascha Wildner * PR/555: Avoid overflow for offset > nbytes 445c30bd091SSascha Wildner * PR/550: Segv on DER parsing: 446c30bd091SSascha Wildner - use the correct variable for length 447c30bd091SSascha Wildner - set offset to 0 on failure. 448c30bd091SSascha Wildner 449c30bd091SSascha Wildner2016-05-13 12:00 Christos Zoulas <christos@zoulas.com> 450c30bd091SSascha Wildner 451c30bd091SSascha Wildner * release 5.27 452c30bd091SSascha Wildner 453c30bd091SSascha Wildner2016-04-18 9:35 Christos Zoulas <christos@zoulas.com> 454c30bd091SSascha Wildner 455c30bd091SSascha Wildner * Errors comparing DER entries or computing offsets 456c30bd091SSascha Wildner are just indications of malformed non-DER files. 457c30bd091SSascha Wildner Don't print them. 458c30bd091SSascha Wildner * Offset comparison was off-by-one. 459c30bd091SSascha Wildner * Fix compression code (Werner Fink) 460c30bd091SSascha Wildner * Put new bytes constant in the right file (not the generated one) 461c30bd091SSascha Wildner 462c30bd091SSascha Wildner2016-04-16 18:34 Christos Zoulas <christos@zoulas.com> 463c30bd091SSascha Wildner 464c30bd091SSascha Wildner * release 5.26 465c30bd091SSascha Wildner 466c30bd091SSascha Wildner2016-03-31 13:50 Christos Zoulas <christos@zoulas.com> 467c30bd091SSascha Wildner 468c30bd091SSascha Wildner * make the number of bytes read from files configurable. 469c30bd091SSascha Wildner 470c30bd091SSascha Wildner2016-03-21 13:40 Christos Zoulas <christos@zoulas.com> 471c30bd091SSascha Wildner 472c30bd091SSascha Wildner * Add bounds checks for DER code (discovered by Thomas Jarosch) 473c30bd091SSascha Wildner * Change indirect recursion limit to indirect use count and 474c30bd091SSascha Wildner bump from 15 to 50 to prevent abuse. 475c30bd091SSascha Wildner 476c30bd091SSascha Wildner2016-03-13 20:39 Christos Zoulas <christos@zoulas.com> 477c30bd091SSascha Wildner 478c30bd091SSascha Wildner * Add -00 which prints filename\0description\0 479c30bd091SSascha Wildner 480c30bd091SSascha Wildner2016-03-01 13:28 Christos Zoulas <christos@zoulas.com> 481c30bd091SSascha Wildner 482c30bd091SSascha Wildner * Fix ID3 indirect parsing 483c30bd091SSascha Wildner 484c30bd091SSascha Wildner2016-01-19 10:18 Christos Zoulas <christos@zoulas.com> 485c30bd091SSascha Wildner 486c30bd091SSascha Wildner * add DER parsing capability 487c30bd091SSascha Wildner 488c30bd091SSascha Wildner2015-11-13 10:35 Christos Zoulas <christos@zoulas.com> 489c30bd091SSascha Wildner 490c30bd091SSascha Wildner * provide dprintf(3) for the OS's that don't have it. 491c30bd091SSascha Wildner 492c30bd091SSascha Wildner2015-11-11 16:25 Christos Zoulas <christos@zoulas.com> 493c30bd091SSascha Wildner 494c30bd091SSascha Wildner * redo the compression code report decompression errors 495c30bd091SSascha Wildner 496c30bd091SSascha Wildner2015-11-10 23:25 Christos Zoulas <christos@zoulas.com> 497c30bd091SSascha Wildner 498c30bd091SSascha Wildner * REG_STARTEND code is not working as expected, delete it. 499c30bd091SSascha Wildner 500c30bd091SSascha Wildner2015-11-09 16:05 Christos Zoulas <christos@zoulas.com> 501c30bd091SSascha Wildner 502c30bd091SSascha Wildner * Add zlib support if we have it. 503c30bd091SSascha Wildner 504c30bd091SSascha Wildner2015-11-05 11:22 Christos Zoulas <christos@zoulas.com> 505c30bd091SSascha Wildner 506c30bd091SSascha Wildner * PR/492: compression forking was broken with magic_buffer. 507c30bd091SSascha Wildner 508c30bd091SSascha Wildner2015-09-16 9:50 Christos Zoulas <christos@zoulas.com> 509c30bd091SSascha Wildner 510c30bd091SSascha Wildner * release 5.25 511c30bd091SSascha Wildner 512c30bd091SSascha Wildner2015-09-11 13:25 Christos Zoulas <christos@zoulas.com> 513c30bd091SSascha Wildner 514c30bd091SSascha Wildner * add a limit to the length of regex searches 515c30bd091SSascha Wildner 516c30bd091SSascha Wildner2015-09-08 9:50 Christos Zoulas <christos@zoulas.com> 517c30bd091SSascha Wildner 518c30bd091SSascha Wildner * fix problems with --parameter (Christoph Biedl) 519c30bd091SSascha Wildner 520c30bd091SSascha Wildner2015-07-11 10:35 Christos Zoulas <christos@zoulas.com> 521c30bd091SSascha Wildner 522c30bd091SSascha Wildner * Windows fixes PR/466 (Jason Hood) 523c30bd091SSascha Wildner 524c30bd091SSascha Wildner2015-07-09 10:35 Christos Zoulas <christos@zoulas.com> 525c30bd091SSascha Wildner 526c30bd091SSascha Wildner * release 5.24 527c30bd091SSascha Wildner 528c30bd091SSascha Wildner2015-06-11 8:52 Christos Zoulas <christos@zoulas.com> 529c30bd091SSascha Wildner 530c30bd091SSascha Wildner * redo long option encoding to fix off-by-one in 5.23 531c30bd091SSascha Wildner 532c30bd091SSascha Wildner2015-06-10 13:50 Christos Zoulas <christos@zoulas.com> 533c30bd091SSascha Wildner 534c30bd091SSascha Wildner * release 5.23 535c30bd091SSascha Wildner 536c30bd091SSascha Wildner2015-06-09 16:10 Christos Zoulas <christos@zoulas.com> 537c30bd091SSascha Wildner 538c30bd091SSascha Wildner * Fix issue with regex range for magic with offset 539c30bd091SSascha Wildner * Always return true from mget with USE (success to mget not match 540c30bd091SSascha Wildner indication). Fixes mime evaluation after USE magic 541c30bd091SSascha Wildner * PR/459: Don't insert magic entries to the list if there are parsing 542c30bd091SSascha Wildner errors for them. 543c30bd091SSascha Wildner 544c30bd091SSascha Wildner2015-06-03 16:00 Christos Zoulas <christos@zoulas.com> 545c30bd091SSascha Wildner 546c30bd091SSascha Wildner * PR/455: Add utf-7 encoding 547c30bd091SSascha Wildner 548c30bd091SSascha Wildner2015-06-03 14:30 Christos Zoulas <christos@zoulas.com> 549c30bd091SSascha Wildner 550c30bd091SSascha Wildner * PR/455: Implement -Z, look inside, but don't report on compression 551c30bd091SSascha Wildner * PR/454: Fix allocation error on bad magic. 552c30bd091SSascha Wildner 553c30bd091SSascha Wildner2015-05-29 10:30 Christos Zoulas <christos@zoulas.com> 554c30bd091SSascha Wildner 555c30bd091SSascha Wildner * handle MAGIC_CONTINUE everywhere, not just in softmagic 556c30bd091SSascha Wildner 557c30bd091SSascha Wildner2015-05-21 14:30 Christos Zoulas <christos@zoulas.com> 558c30bd091SSascha Wildner 559c30bd091SSascha Wildner * don't print descriptions for NAME types when mime. 560c30bd091SSascha Wildner 561c30bd091SSascha Wildner2015-04-09 15:59 Christos Zoulas <christos@zoulas.com> 562c30bd091SSascha Wildner 563c30bd091SSascha Wildner * Add --extension to list the known extensions for this file type 564c30bd091SSascha Wildner Idea by Andrew J Roazen 565c30bd091SSascha Wildner 566c30bd091SSascha Wildner2015-02-14 12:23 Christos Zoulas <christos@zoulas.com> 567c30bd091SSascha Wildner 568c30bd091SSascha Wildner * Bump file search buffer size to 1M. 569c30bd091SSascha Wildner 570c30bd091SSascha Wildner2015-01-09 14:35 Christos Zoulas <christos@zoulas.com> 571c30bd091SSascha Wildner 572c30bd091SSascha Wildner * Fix multiple issues with date formats reported by Christoph Biedl: 573c30bd091SSascha Wildner - T_LOCAL meaning was reversed 574c30bd091SSascha Wildner - Arithmetic did not work 575c30bd091SSascha Wildner Also stop adjusting daylight savings for gmt printing. 576c30bd091SSascha Wildner 577c30bd091SSascha Wildner2015-01-05 13:00 Christos Zoulas <christos@zoulas.com> 578c30bd091SSascha Wildner 579c30bd091SSascha Wildner * PR/411: Fix memory corruption from corrupt cdf file. 580c30bd091SSascha Wildner 58182c5fa3eSPeter Avalos2015-01-02 15:15 Christos Zoulas <christos@zoulas.com> 58282c5fa3eSPeter Avalos 58382c5fa3eSPeter Avalos * release 5.22 58482c5fa3eSPeter Avalos 58582c5fa3eSPeter Avalos2015-01-01 12:01 Christos Zoulas <christos@zoulas.com> 58682c5fa3eSPeter Avalos 58782c5fa3eSPeter Avalos * add indirect relative for TIFF/Exif 58882c5fa3eSPeter Avalos 58982c5fa3eSPeter Avalos2014-12-16 18:10 Christos Zoulas <christos@zoulas.com> 59082c5fa3eSPeter Avalos 59182c5fa3eSPeter Avalos * restructure elf note printing to avoid repeated messages 59282c5fa3eSPeter Avalos * add note limit, suggested by Alexander Cherepanov 59382c5fa3eSPeter Avalos 59482c5fa3eSPeter Avalos2014-12-16 16:53 Christos Zoulas <christos@zoulas.com> 59582c5fa3eSPeter Avalos 59682c5fa3eSPeter Avalos * Bail out on partial pread()'s (Alexander Cherepanov) 59782c5fa3eSPeter Avalos * Fix incorrect bounds check in file_printable (Alexander Cherepanov) 59882c5fa3eSPeter Avalos 59982c5fa3eSPeter Avalos2014-12-11 20:01 Christos Zoulas <christos@zoulas.com> 60082c5fa3eSPeter Avalos 60182c5fa3eSPeter Avalos * PR/405: ignore SIGPIPE from uncompress programs 60282c5fa3eSPeter Avalos * change printable -> file_printable and use it in 60382c5fa3eSPeter Avalos more places for safety 60482c5fa3eSPeter Avalos * in ELF, instead of "(uses dynamic libraries)" when PT_INTERP 60582c5fa3eSPeter Avalos is present print the interpreter name. 60682c5fa3eSPeter Avalos 60782c5fa3eSPeter Avalos2014-12-10 20:01 Christos Zoulas <christos@zoulas.com> 60882c5fa3eSPeter Avalos 60982c5fa3eSPeter Avalos * release 5.21 61082c5fa3eSPeter Avalos 61182c5fa3eSPeter Avalos2014-11-27 18:40 Christos Zoulas <christos@zoulas.com> 61282c5fa3eSPeter Avalos 61382c5fa3eSPeter Avalos * Allow setting more parameters from the command line. 61482c5fa3eSPeter Avalos * Split name/use and indirect magic recursion limits. 61582c5fa3eSPeter Avalos 61682c5fa3eSPeter Avalos2014-11-27 11:12 Christos Zoulas <christos@zoulas.com> 61782c5fa3eSPeter Avalos 61882c5fa3eSPeter Avalos * Adjust ELF parameters and the default recursion 61982c5fa3eSPeter Avalos level. 62082c5fa3eSPeter Avalos * Allow setting the recursion level dynamically. 62182c5fa3eSPeter Avalos 62282c5fa3eSPeter Avalos2014-11-24 8:55 Christos Zoulas <christos@zoulas.com> 62382c5fa3eSPeter Avalos 62482c5fa3eSPeter Avalos * The following fixes resulted from Thomas Jarosch's fuzzing 62582c5fa3eSPeter Avalos tests that revealed severe performance issues on pathological 62682c5fa3eSPeter Avalos input: 62782c5fa3eSPeter Avalos - limit number of elf program and sections processing 62882c5fa3eSPeter Avalos - abort elf note processing quickly 62982c5fa3eSPeter Avalos - reduce the number of recursion levels from 20 to 10 63082c5fa3eSPeter Avalos - preserve error messages in indirect magic handling 63182c5fa3eSPeter Avalos 63282c5fa3eSPeter Avalos This is tracked as CVE-2014-8116 and CVE-2014-8117 63382c5fa3eSPeter Avalos 63482c5fa3eSPeter Avalos2014-11-12 10:30 Christos Zoulas <christos@zoulas.com> 63582c5fa3eSPeter Avalos 63682c5fa3eSPeter Avalos * fix bogus free in the user buffer case. 63782c5fa3eSPeter Avalos 63882c5fa3eSPeter Avalos2014-11-11 12:35 Christos Zoulas <christos@zoulas.com> 63982c5fa3eSPeter Avalos 64082c5fa3eSPeter Avalos * fix out of bounds read for pascal strings 64182c5fa3eSPeter Avalos * fix memory leak (not freeing the head of each mlist) 64282c5fa3eSPeter Avalos 64382c5fa3eSPeter Avalos2014-11-07 10:25 Christos Zoulas <christos@zoulas.com> 64482c5fa3eSPeter Avalos 64582c5fa3eSPeter Avalos * When printing strings from a file, convert them to printable 64682c5fa3eSPeter Avalos on a byte by byte basis, so that we don't get issues with 64782c5fa3eSPeter Avalos locale's trying to interpret random byte streams as UTF-8 and 64882c5fa3eSPeter Avalos having printf error out with EILSEQ. 64982c5fa3eSPeter Avalos 65082c5fa3eSPeter Avalos2014-10-17 11:48 Christos Zoulas <christos@zoulas.com> 65182c5fa3eSPeter Avalos 65282c5fa3eSPeter Avalos * fix bounds in note reading (Francisco Alonso / Red Hat) 65382c5fa3eSPeter Avalos 65482c5fa3eSPeter Avalos2014-10-11 15:02 Christos Zoulas <christos@zoulas.com> 65582c5fa3eSPeter Avalos 65682c5fa3eSPeter Avalos * fix autoconf glue for setlocale and locale_t; some OS's 65782c5fa3eSPeter Avalos have locale_t in xlocale.h 65882c5fa3eSPeter Avalos 65982c5fa3eSPeter Avalos2014-10-10 15:01 Christos Zoulas <christos@zoulas.com> 66082c5fa3eSPeter Avalos 66182c5fa3eSPeter Avalos * release 5.20 66282c5fa3eSPeter Avalos 66382c5fa3eSPeter Avalos2014-08-17 10:01 Christos Zoulas <christos@zoulas.com> 66482c5fa3eSPeter Avalos 66582c5fa3eSPeter Avalos * recognize encrypted CDF documents 66682c5fa3eSPeter Avalos 66782c5fa3eSPeter Avalos2014-08-04 9:18 Christos Zoulas <christos@zoulas.com> 66882c5fa3eSPeter Avalos 66982c5fa3eSPeter Avalos * add magic_load_buffers from Brooks Davis 67082c5fa3eSPeter Avalos 67182c5fa3eSPeter Avalos2014-07-24 16:40 Christos Zoulas <christos@zoulas.com> 67282c5fa3eSPeter Avalos 67382c5fa3eSPeter Avalos * add thumbs.db support 67482c5fa3eSPeter Avalos 67582c5fa3eSPeter Avalos2014-06-12 12:28 Christos Zoulas <christos@zoulas.com> 67682c5fa3eSPeter Avalos 67782c5fa3eSPeter Avalos * release 5.19 67882c5fa3eSPeter Avalos 67982c5fa3eSPeter Avalos2014-06-09 9:04 Christos Zoulas <christos@zoulas.com> 68082c5fa3eSPeter Avalos 68182c5fa3eSPeter Avalos * Misc buffer overruns and missing buffer size tests in cdf parsing 68282c5fa3eSPeter Avalos (Francisco Alonso, Jan Kaluza) 68382c5fa3eSPeter Avalos 68482c5fa3eSPeter Avalos2014-06-02 14:50 Christos Zoulas <christos@zoulas.com> 68582c5fa3eSPeter Avalos 68682c5fa3eSPeter Avalos * Enforce limit of 8K on regex searches that have no limits 68782c5fa3eSPeter Avalos * Allow the l modifier for regex to mean line count. Default 68882c5fa3eSPeter Avalos to byte count. If line count is specified, assume a max 68982c5fa3eSPeter Avalos of 80 characters per line to limit the byte count. 69082c5fa3eSPeter Avalos * Don't allow conversions to be used for dates, allowing 69182c5fa3eSPeter Avalos the mask field to be used as an offset. 69282c5fa3eSPeter Avalos 69382c5fa3eSPeter Avalos2014-05-30 12:51 Christos Zoulas <christos@zoulas.com> 69482c5fa3eSPeter Avalos 69582c5fa3eSPeter Avalos * Make the range operator limit the length of the 69682c5fa3eSPeter Avalos regex search. 69782c5fa3eSPeter Avalos 69882c5fa3eSPeter Avalos2014-05-14 19:23 Christos Zoulas <christos@zoulas.com> 69982c5fa3eSPeter Avalos 70082c5fa3eSPeter Avalos * PR/347: Windows fixes 70182c5fa3eSPeter Avalos * PR/352: Hangul word processor recognition 70282c5fa3eSPeter Avalos * PR/354: Encoding irregularities in text files 70382c5fa3eSPeter Avalos 70482c5fa3eSPeter Avalos2014-05-06 6:12 Christos Zoulas <christos@zoulas.com> 70582c5fa3eSPeter Avalos 70682c5fa3eSPeter Avalos * Fix uninitialized title in CDF files (Jan Kaluza) 70782c5fa3eSPeter Avalos 70882c5fa3eSPeter Avalos2014-05-04 14:55 Christos Zoulas <christos@zoulas.com> 70982c5fa3eSPeter Avalos 71082c5fa3eSPeter Avalos * PR/351: Fix compilation of empty files 71182c5fa3eSPeter Avalos 71282c5fa3eSPeter Avalos2014-04-30 17:39 Christos Zoulas <christos@zoulas.com> 71382c5fa3eSPeter Avalos 71482c5fa3eSPeter Avalos * Fix integer formats: We don't specify 'l' or 71582c5fa3eSPeter Avalos 'h' and 'hh' specifiers anymore, only 'll' for 71682c5fa3eSPeter Avalos quads and nothing for the rest. This is so that 71782c5fa3eSPeter Avalos magic writing is simpler. 71882c5fa3eSPeter Avalos 71982c5fa3eSPeter Avalos2014-04-01 15:25 Christos Zoulas <christos@zoulas.com> 72082c5fa3eSPeter Avalos 72182c5fa3eSPeter Avalos * PR/341: Jan Kaluza, fix memory leak 72282c5fa3eSPeter Avalos * PR/342: Jan Kaluza, fix out of bounds read 72382c5fa3eSPeter Avalos 72482c5fa3eSPeter Avalos2014-03-28 15:25 Christos Zoulas <christos@zoulas.com> 72582c5fa3eSPeter Avalos 72682c5fa3eSPeter Avalos * Fix issue with long formats not matching fmtcheck 72782c5fa3eSPeter Avalos 728e8af9738SPeter Avalos2014-03-26 11:25 Christos Zoulas <christos@zoulas.com> 729e8af9738SPeter Avalos 730e8af9738SPeter Avalos * release 5.18 731e8af9738SPeter Avalos 732e8af9738SPeter Avalos2014-03-15 17:45 Christos Zoulas <christos@zoulas.com> 733e8af9738SPeter Avalos 734e8af9738SPeter Avalos * add fmtcheck(3) for those who don't have it 735e8af9738SPeter Avalos 736e8af9738SPeter Avalos2014-03-14 15:12 Christos Zoulas <christos@zoulas.com> 737e8af9738SPeter Avalos 738e8af9738SPeter Avalos * prevent mime entries from being attached to magic 739e8af9738SPeter Avalos entries with no descriptions 740e8af9738SPeter Avalos 741e8af9738SPeter Avalos * adjust magic strength for regex type 742e8af9738SPeter Avalos 743e8af9738SPeter Avalos * remove superfluous ascmagic with encoding test 744e8af9738SPeter Avalos 745e8af9738SPeter Avalos2014-03-06 12:01 Christos Zoulas <christos@zoulas.com> 746e8af9738SPeter Avalos 747e8af9738SPeter Avalos * fix regression fix echo -ne "\012\013\014" | file -i - 748e8af9738SPeter Avalos which printed "binary" instead of "application/octet-stream" 749e8af9738SPeter Avalos 750e8af9738SPeter Avalos * add size_t overflow check for magic file size 751e8af9738SPeter Avalos 752e8af9738SPeter Avalos2014-02-27 16:01 Christos Zoulas <christos@zoulas.com> 753e8af9738SPeter Avalos 754e8af9738SPeter Avalos * experimental support for matching with CFD CLSID 755e8af9738SPeter Avalos 756e8af9738SPeter Avalos2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) 757e8af9738SPeter Avalos 758e8af9738SPeter Avalos * Cache old LC_CTYPE locale before setting it to "C", so 759e8af9738SPeter Avalos we can use it to restore LC_CTYPE instead of asking 760e8af9738SPeter Avalos setlocale() to scan the environment variables. 761e8af9738SPeter Avalos 762e8af9738SPeter Avalos2014-02-12 18:21 Christos Zoulas <christos@zoulas.com> 763e8af9738SPeter Avalos 764e8af9738SPeter Avalos * Count recursion levels through indirect magic 765e8af9738SPeter Avalos 766e8af9738SPeter Avalos2014-02-11 10:40 Christos Zoulas <christos@zoulas.com> 767e8af9738SPeter Avalos 768e8af9738SPeter Avalos * Prevent infinite recursion on files with indirect offsets of 0 769e8af9738SPeter Avalos 770e8af9738SPeter Avalos2014-01-30 21:00 Christos Zoulas <christos@zoulas.com> 771e8af9738SPeter Avalos 772e8af9738SPeter Avalos * Add -E flag that makes file print filesystem errors to stderr 773e8af9738SPeter Avalos and exit. 774e8af9738SPeter Avalos 775e8af9738SPeter Avalos2014-01-08 17:20 Christos Zoulas <christos@zoulas.com> 776e8af9738SPeter Avalos 777e8af9738SPeter Avalos * mime printing could print results from multiple magic entries 778e8af9738SPeter Avalos if there were multiple matches. 779e8af9738SPeter Avalos * in some cases overflow was not detected when computing offsets 780e8af9738SPeter Avalos in softmagic. 781e8af9738SPeter Avalos 782e8af9738SPeter Avalos2013-12-05 12:00 Christos Zoulas <christos@zoulas.com> 783e8af9738SPeter Avalos 784e8af9738SPeter Avalos * use strcasestr() to for cdf strings 785e8af9738SPeter Avalos * reset to the "C" locale while doing regex operations, or case 786e8af9738SPeter Avalos insensitive comparisons; this is provisional 787e8af9738SPeter Avalos 788e8af9738SPeter Avalos2013-11-19 20:10 Christos Zoulas <christos@zoulas.com> 789e8af9738SPeter Avalos 790e8af9738SPeter Avalos * always leave magic file loaded, don't unload for magic_check, etc. 791e8af9738SPeter Avalos * fix default encoding to binary instead of unknown which broke recently 792e8af9738SPeter Avalos * handle empty and one byte files, less specially so that 793e8af9738SPeter Avalos --mime-encoding does not break completely. 794e8af9738SPeter Avalos ` 795e8af9738SPeter Avalos2013-11-06 14:40 Christos Zoulas <christos@zoulas.com> 796e8af9738SPeter Avalos 797c30bd091SSascha Wildner * fix erroneous non-zero exit code from non-existent file and message 798e8af9738SPeter Avalos 799e8af9738SPeter Avalos2013-10-29 14:25 Christos Zoulas <christos@zoulas.com> 800e8af9738SPeter Avalos 801e8af9738SPeter Avalos * add CDF MSI file detection (Guy Helmer) 802e8af9738SPeter Avalos 803e8af9738SPeter Avalos2013-09-03 11:56 Christos Zoulas <christos@zoulas.com> 804e8af9738SPeter Avalos 805e8af9738SPeter Avalos * Don't mix errors and regular output if there was an error 806e8af9738SPeter Avalos * in magic_descriptor() don't close the file and try to restore 807e8af9738SPeter Avalos its position 808e8af9738SPeter Avalos 809e8af9738SPeter Avalos2013-05-30 17:25 Christos Zoulas <christos@zoulas.com> 810e8af9738SPeter Avalos 811e8af9738SPeter Avalos * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 812e8af9738SPeter Avalos 813e8af9738SPeter Avalos2013-05-28 17:25 Christos Zoulas <christos@zoulas.com> 814e8af9738SPeter Avalos 815e8af9738SPeter Avalos * Fix spacing issues in softmagic and elf (Jan Kaluza) 816e8af9738SPeter Avalos 817e8af9738SPeter Avalos2013-05-02 18:00 Christos Zoulas <christos@zoulas.com> 818e8af9738SPeter Avalos 819e8af9738SPeter Avalos * Fix segmentation fault with multiple magic_load commands. 820e8af9738SPeter Avalos 821e8af9738SPeter Avalos2013-04-22 11:20 Christos Zoulas <christos@zoulas.com> 822e8af9738SPeter Avalos 823e8af9738SPeter Avalos * The way "default" was implemented was not very useful 824e8af9738SPeter Avalos because the "if something was printed at that level" 825e8af9738SPeter Avalos was not easily controlled by the user, and the format 826e8af9738SPeter Avalos was bound to a string which is too restrictive. Add 827e8af9738SPeter Avalos a "clear" for that level keyword and make "default" 828e8af9738SPeter Avalos void. This way one can do: 829e8af9738SPeter Avalos 830e8af9738SPeter Avalos >>13 clear x 831e8af9738SPeter Avalos >>13 lelong 1 foo 832e8af9738SPeter Avalos >>13 lelong 2 bar 833e8af9738SPeter Avalos >>13 default x 834e8af9738SPeter Avalos >>>13 lelong x unknown %x 835e8af9738SPeter Avalos 836e8af9738SPeter Avalos2013-03-25 13:20 Christos Zoulas <christos@zoulas.com> 837e8af9738SPeter Avalos 838e8af9738SPeter Avalos * disallow strength setting in "name" entries 839e8af9738SPeter Avalos 840e8af9738SPeter Avalos2013-03-06 21:24 Christos Zoulas <christos@zoulas.com> 841e8af9738SPeter Avalos 842e8af9738SPeter Avalos * fix recursive magic separator printing 843e8af9738SPeter Avalos 844e8af9738SPeter Avalos2013-02-26 19:28 Christos Zoulas <christos@zoulas.com> 845e8af9738SPeter Avalos 846e8af9738SPeter Avalos * limit recursion level for mget 847e8af9738SPeter Avalos * fix pread() related breakage in cdf 848e8af9738SPeter Avalos * handle offsets properly in recursive "use" 849e8af9738SPeter Avalos 850e8af9738SPeter Avalos2013-02-18 10:39 Christos Zoulas <christos@zoulas.com> 851e8af9738SPeter Avalos 852e8af9738SPeter Avalos * add elf reading of debug info to determine if file is stripped 853e8af9738SPeter Avalos (Jan Kaluza) 854e8af9738SPeter Avalos * use pread() 855e8af9738SPeter Avalos 856e8af9738SPeter Avalos2013-01-25 18:05 Christos Zoulas <christos@zoulas.com> 857e8af9738SPeter Avalos 858e8af9738SPeter Avalos * change mime description size from 64 to 80 to accommodate OOXML. 859e8af9738SPeter Avalos 860e8af9738SPeter Avalos2013-01-11 14:50 Christos Zoulas <christos@zoulas.com> 861e8af9738SPeter Avalos 862e8af9738SPeter Avalos * Warn about inconsistent continuation levels. 863e8af9738SPeter Avalos * Change fsmagic to add a space after it prints. 864e8af9738SPeter Avalos 865e8af9738SPeter Avalos2013-01-10 21:00 Christos Zoulas <christos@zoulas.com> 866e8af9738SPeter Avalos 867e8af9738SPeter Avalos * Make getline public so that file can link against it. 868e8af9738SPeter Avalos Perhaps it is better to rename it, or hide it differently. 869e8af9738SPeter Avalos Fixes builds on platforms that do not provide it. 870e8af9738SPeter Avalos 871e8af9738SPeter Avalos2013-01-07 16:30 Christos Zoulas <christos@zoulas.com> 872e8af9738SPeter Avalos 873e8af9738SPeter Avalos * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document 874e8af9738SPeter Avalos what long, int, short, etc is (Guy Harris) 875e8af9738SPeter Avalos 876e8af9738SPeter Avalos2013-01-06 11:20 Christos Zoulas <christos@zoulas.com> 877e8af9738SPeter Avalos 878e8af9738SPeter Avalos * add magic_version function and constant 879e8af9738SPeter Avalos * Redo memory allocation and de-allocation. 880e8af9738SPeter Avalos (prevents double frees on non mmap platforms) 881e8af9738SPeter Avalos * Fix bug with name/use having to do with passing 882e8af9738SPeter Avalos found state from the parent to the child and back. 883e8af9738SPeter Avalos 884e8af9738SPeter Avalos2012-12-19 8:47 Christos Zoulas <christos@zoulas.com> 885e8af9738SPeter Avalos 886e8af9738SPeter Avalos * Only print elf capabilities for archs we know (Jan Kaluza) 887e8af9738SPeter Avalos 888e8af9738SPeter Avalos2012-10-30 19:14 Christos Zoulas <christos@zoulas.com> 889e8af9738SPeter Avalos 890e8af9738SPeter Avalos * Add "name" and "use" file types in order to look 891e8af9738SPeter Avalos inside mach-o files. 892e8af9738SPeter Avalos 893e8af9738SPeter Avalos2012-09-06 10:40 Christos Zoulas <christos@zoulas.com> 894e8af9738SPeter Avalos 895e8af9738SPeter Avalos * make --version exit 0 (Matthew Schultz) 896e8af9738SPeter Avalos * add string/T (Jan Kaluza) 897e8af9738SPeter Avalos 898e8af9738SPeter Avalos2012-08-09 2:15 Christos Zoulas <christos@zoulas.com> 899e8af9738SPeter Avalos 900e8af9738SPeter Avalos * add z and t modifiers for our own vasprintf 901e8af9738SPeter Avalos * search for $HOME/.magic.mgc if it is there first 902e8af9738SPeter Avalos * fix reads from a pipe, and preserve errno 903e8af9738SPeter Avalos 904e8af9738SPeter Avalos2012-05-15 13:12 Christos Zoulas <christos@zoulas.com> 905e8af9738SPeter Avalos 906e8af9738SPeter Avalos * use ctime_r, asctime_r 907e8af9738SPeter Avalos 908e8af9738SPeter Avalos2012-04-06 17:18 Christos Zoulas <christos@zoulas.com> 909e8af9738SPeter Avalos 910e8af9738SPeter Avalos * Fixes for indirect offsets to handle apple disk formats 911e8af9738SPeter Avalos 912e8af9738SPeter Avalos2012-04-03 18:26 Christos Zoulas <christos@zoulas.com> 913e8af9738SPeter Avalos 914e8af9738SPeter Avalos * Add windows date field types 915e8af9738SPeter Avalos * More info for windows shortcuts (incomplete) 916e8af9738SPeter Avalos 91717b11469SPeter Avalos2012-02-20 17:33 Christos Zoulas <christos@zoulas.com> 91817b11469SPeter Avalos 91917b11469SPeter Avalos * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann) 92017b11469SPeter Avalos 9219f86ab30SPeter Avalos2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com> 9229f86ab30SPeter Avalos 9239f86ab30SPeter Avalos * Support Tilera architectures (tile64, tilepro, tilegx). 9249f86ab30SPeter Avalos 9259f86ab30SPeter Avalos2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org> 9269f86ab30SPeter Avalos 9279f86ab30SPeter Avalos * Add magic for /usr/bin/env Perl scripts 9289f86ab30SPeter Avalos * Weaken generic script magic to avoid clashing with 9299f86ab30SPeter Avalos language-specific magic. 9309f86ab30SPeter Avalos 9319f86ab30SPeter Avalos2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org> 9329f86ab30SPeter Avalos 9339f86ab30SPeter Avalos * Simplify if (p) free(p) to free(p). 9349f86ab30SPeter Avalos 9359f86ab30SPeter Avalos2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org> 9369f86ab30SPeter Avalos 9379f86ab30SPeter Avalos * Remove hardwired token finding (names.h), turning it into soft 9389f86ab30SPeter Avalos magic. Patterns are either anchored regexs or search/8192. English 9399f86ab30SPeter Avalos language detection and PL/1 detection have been removed as they 9409f86ab30SPeter Avalos were too fragile. -e tokens is still accepted for backwards 9419f86ab30SPeter Avalos compatibility. 9429f86ab30SPeter Avalos * Move 3ds patterns (which are commented out anyway) into autodesk 9439f86ab30SPeter Avalos (they were, oddly, in c-lang). 9449f86ab30SPeter Avalos 9459f86ab30SPeter Avalos2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org> 9469f86ab30SPeter Avalos 9479f86ab30SPeter Avalos * Tweak strength of generic hash-bang detectors to be less than 9489f86ab30SPeter Avalos specific ones. 9499f86ab30SPeter Avalos * Make an inconsistent description of Python scripts consistent. 9509f86ab30SPeter Avalos 9519f86ab30SPeter Avalos2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org> 9529f86ab30SPeter Avalos 9539f86ab30SPeter Avalos * Fix minor error in file(1). 9549f86ab30SPeter Avalos 9559f86ab30SPeter Avalos2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org> 9569f86ab30SPeter Avalos 9579f86ab30SPeter Avalos * Fix issue #150 (I hope). 9589f86ab30SPeter Avalos 9599f86ab30SPeter Avalos2011-09-22 12:57 Christos Zoulas <christos@zoulas.com> 9609f86ab30SPeter Avalos 9619f86ab30SPeter Avalos * Python3 binding fixes from Kelly Anderson 9629f86ab30SPeter Avalos 9639f86ab30SPeter Avalos2011-09-20 11:32 Christos Zoulas <christos@zoulas.com> 9649f86ab30SPeter Avalos 9659f86ab30SPeter Avalos * If a string type magic entry is marked as text or binary 9669f86ab30SPeter Avalos only match text files against text entries and binary 9679f86ab30SPeter Avalos files against binary entries. 9689f86ab30SPeter Avalos 969a96e001bSPeter Avalos2011-09-01 12:12 Christos Zoulas <christos@zoulas.com> 970a96e001bSPeter Avalos 971a96e001bSPeter Avalos * Don't wait for any subprocess, just the one we forked. 972a96e001bSPeter Avalos 973a96e001bSPeter Avalos2011-08-26 16:40 Christos Zoulas <christos@zoulas.com> 974a96e001bSPeter Avalos 975a96e001bSPeter Avalos * If the application name is not set in a cdf file, try to see 976a96e001bSPeter Avalos if it has a directory with the application name on it. 977a96e001bSPeter Avalos 978a96e001bSPeter Avalos2011-08-17 14:32 Christos Zoulas <christos@zoulas.com> 979a96e001bSPeter Avalos 980a96e001bSPeter Avalos * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza 981a96e001bSPeter Avalos 982a96e001bSPeter Avalos2011-08-14 09:03 Christos Zoulas <christos@zoulas.com> 983a96e001bSPeter Avalos 984a96e001bSPeter Avalos * Don't use variable string formats. 985a96e001bSPeter Avalos 986a96e001bSPeter Avalos2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org> 987a96e001bSPeter Avalos 988a96e001bSPeter Avalos * Fix detection of Zip files (Mantis #128). 989a96e001bSPeter Avalos * Make some minor improvements to file(1). 990a96e001bSPeter Avalos * Rename MIME types for filesystem objects for consistency with 991a96e001bSPeter Avalos xdg-utils. Typically this means that application/x-foo becomes 992a96e001bSPeter Avalos inode/foo, but some names also change slightly, e.g. 993a96e001bSPeter Avalos application/x-character-device becomes inode/chardevice. 994a96e001bSPeter Avalos 995a96e001bSPeter Avalos2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 996a96e001bSPeter Avalos 997a96e001bSPeter Avalos * fix mingw compilation (Abradoks) 998a96e001bSPeter Avalos 999884044a5SPeter Avalos2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 1000884044a5SPeter Avalos 1001884044a5SPeter Avalos * remove patchlevel.h 1002884044a5SPeter Avalos * Fix read past allocated memory caused by double-incrementing 1003884044a5SPeter Avalos a pointer in a loop (reported by Roberto Maar) 1004884044a5SPeter Avalos 1005ff91a668SPeter Avalos2011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 1006ff91a668SPeter Avalos 1007ff91a668SPeter Avalos * Fix cdf string buffer setting (Sven Anders) 1008ff91a668SPeter Avalos 1009ff91a668SPeter Avalos2011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 1010ff91a668SPeter Avalos 1011ff91a668SPeter Avalos * Eliminate MAXPATHLEN and use dynamic allocation for 1012ff91a668SPeter Avalos path and file buffers. 1013ff91a668SPeter Avalos 1014ff91a668SPeter Avalos2011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 1015ff91a668SPeter Avalos 1016ff91a668SPeter Avalos * binary tests on magic entries with masks could spuriously 1017ff91a668SPeter Avalos get converted to ascii. 1018ff91a668SPeter Avalos 1019ff91a668SPeter Avalos2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 1020ff91a668SPeter Avalos 1021ff91a668SPeter Avalos * Improve file.man (remove BUGS, present email addresses consistently). 1022ff91a668SPeter Avalos 1023ff91a668SPeter Avalos2011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 1024ff91a668SPeter Avalos 1025ff91a668SPeter Avalos * add lrzip support (from Ville Skytta) 1026ff91a668SPeter Avalos 1027ff91a668SPeter Avalos2011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 1028ff91a668SPeter Avalos 1029ff91a668SPeter Avalos * fix CDF bounds checking (Guy Helmer) 1030ff91a668SPeter Avalos 1031ff91a668SPeter Avalos2011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 1032ff91a668SPeter Avalos 1033ff91a668SPeter Avalos * add cdf_ctime() that prints a meaningful error when time cannot 1034ff91a668SPeter Avalos be converted. 1035ff91a668SPeter Avalos 1036ff91a668SPeter Avalos2011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 1037ff91a668SPeter Avalos 1038ff91a668SPeter Avalos * help and version output to stdout. 1039ff91a668SPeter Avalos 1040ff91a668SPeter Avalos * When matching softmagic for ascii files, don't just print 1041ff91a668SPeter Avalos the softmagic classification, keep going and print the 1042ff91a668SPeter Avalos text classification too. This fixes broken troff files when 1043ff91a668SPeter Avalos we moved them from keyword recognition to softmagic 1044ff91a668SPeter Avalos (they stopped printing "with CRLF" etc.) 1045ff91a668SPeter Avalos Reported by Doug McIlroy. 1046ff91a668SPeter Avalos 1047e4d4ce0cSPeter Avalos2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 1048e4d4ce0cSPeter Avalos 1049e4d4ce0cSPeter Avalos * Fix two potential buffer overruns in apprentice_list. 1050e4d4ce0cSPeter Avalos 1051e4d4ce0cSPeter Avalos2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 1052e4d4ce0cSPeter Avalos 1053e4d4ce0cSPeter Avalos * New Python binding in pure Python. 1054e4d4ce0cSPeter Avalos * Update libmagic(3). 1055e4d4ce0cSPeter Avalos 1056e4d4ce0cSPeter Avalos2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 1057e4d4ce0cSPeter Avalos 1058e4d4ce0cSPeter Avalos * Fix Python bindings (including recent Python 3 compatibility 1059e4d4ce0cSPeter Avalos update). 1060e4d4ce0cSPeter Avalos 1061e4d4ce0cSPeter Avalos2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 1062e4d4ce0cSPeter Avalos 1063e4d4ce0cSPeter Avalos * magic/Makefile.am: make it easier to recover from magic build failures. 1064e4d4ce0cSPeter Avalos * Fix pstring length specifier parsing to avoid generating invalid 1065e4d4ce0cSPeter Avalos magic files. 1066e4d4ce0cSPeter Avalos * Add pstring length "J" (for "JPEG") to specify that the length 1067e4d4ce0cSPeter Avalos include itself. 1068e4d4ce0cSPeter Avalos * Fix JPEG comment parsing at last using pstring/HJ! 1069e4d4ce0cSPeter Avalos * Ignore section 5 man pages in doc/.cvsignore. 1070e4d4ce0cSPeter Avalos 1071e4d4ce0cSPeter Avalos2010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 1072e4d4ce0cSPeter Avalos 1073e4d4ce0cSPeter Avalos * Add pstring/BHhLl to specify the type of the length of pascal 1074e4d4ce0cSPeter Avalos strings. 1075e4d4ce0cSPeter Avalos 1076e4d4ce0cSPeter Avalos2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 1077e4d4ce0cSPeter Avalos 1078e4d4ce0cSPeter Avalos * Fix "-e soft": it was ignored when softmagic was called 1079e4d4ce0cSPeter Avalos during asciimagic. 1080e4d4ce0cSPeter Avalos * Improve comments and use "unsigned char" in tar.h/is_tar.c. 1081e4d4ce0cSPeter Avalos 1082e4d4ce0cSPeter Avalos2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 1083e4d4ce0cSPeter Avalos 1084e4d4ce0cSPeter Avalos * Make bug reporting addresses more visible. 1085e4d4ce0cSPeter Avalos 1086e4d4ce0cSPeter Avalos2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 1087e4d4ce0cSPeter Avalos 1088e4d4ce0cSPeter Avalos * Add tcl magic from Gustaf Neumann 1089e4d4ce0cSPeter Avalos 1090e4d4ce0cSPeter Avalos2010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 1091e4d4ce0cSPeter Avalos 1092e4d4ce0cSPeter Avalos * Fix the whitespace comparing code (Christopher Chittleborough) 1093e4d4ce0cSPeter Avalos 1094e4d4ce0cSPeter Avalos2010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 1095e4d4ce0cSPeter Avalos 1096e4d4ce0cSPeter Avalos * allow string/t to work (Jan Kaluza) 1097e4d4ce0cSPeter Avalos 1098e4d4ce0cSPeter Avalos2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 1099e4d4ce0cSPeter Avalos 1100e4d4ce0cSPeter Avalos * Apply some patches from Ubuntu and Fedora. 1101e4d4ce0cSPeter Avalos 1102e4d4ce0cSPeter Avalos2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 1103e4d4ce0cSPeter Avalos 1104e4d4ce0cSPeter Avalos * Apply all patches from Debian package 5.04-6 which have not 1105e4d4ce0cSPeter Avalos already been applied and are not Debian-specific. 1106e4d4ce0cSPeter Avalos 1107e4d4ce0cSPeter Avalos2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 1108e4d4ce0cSPeter Avalos 1109e4d4ce0cSPeter Avalos * Minor security fix to softmagic.c (don't use untrusted 1110e4d4ce0cSPeter Avalos string as printf format). 1111e4d4ce0cSPeter Avalos 1112e4d4ce0cSPeter Avalos2010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 1113e4d4ce0cSPeter Avalos 1114e4d4ce0cSPeter Avalos * MINGW32 portability from LRN 1115e4d4ce0cSPeter Avalos 1116e4d4ce0cSPeter Avalos * Don't warn about escaping magic regex chars when we are in a regex. 1117e4d4ce0cSPeter Avalos 1118e4d4ce0cSPeter Avalos2010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 1119e4d4ce0cSPeter Avalos 1120e4d4ce0cSPeter Avalos * Only try to print prpsinfo for core files. (Jan Kaluza) 1121e4d4ce0cSPeter Avalos 1122e4d4ce0cSPeter Avalos2010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 1123e4d4ce0cSPeter Avalos 1124e4d4ce0cSPeter Avalos * Try more elf offsets for Debian core files. (Arnaud Giersch) 1125e4d4ce0cSPeter Avalos 1126e4d4ce0cSPeter Avalos2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 1127e4d4ce0cSPeter Avalos 1128e4d4ce0cSPeter Avalos * Clarify which sort of CDF we mean. 1129e4d4ce0cSPeter Avalos 1130e4d4ce0cSPeter Avalos2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 1131e4d4ce0cSPeter Avalos 1132e4d4ce0cSPeter Avalos * Re-jig Zip file type magic so that unsupported special 1133e4d4ce0cSPeter Avalos Zip types (those with "mimetype" at offset 30) can be 1134e4d4ce0cSPeter Avalos recognized. 1135e4d4ce0cSPeter Avalos 1136e4d4ce0cSPeter Avalos2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 1137e4d4ce0cSPeter Avalos 1138e4d4ce0cSPeter Avalos * Add support for OCF (EPUB) files (application/epub+zip) 1139e4d4ce0cSPeter Avalos 1140e4d4ce0cSPeter Avalos2010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 1141e4d4ce0cSPeter Avalos 1142e4d4ce0cSPeter Avalos * Fix core-dump from unbound loop: 1143e4d4ce0cSPeter Avalos https://bugzilla.redhat.com/show_bug.cgi?id=533245 1144e4d4ce0cSPeter Avalos 1145f72f8299SJan Lentfer2010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 1146f72f8299SJan Lentfer 1147f72f8299SJan Lentfer * print proper mime for crystal reports file 1148f72f8299SJan Lentfer 1149f72f8299SJan Lentfer * print the last summary information of a cdf document, not the 1150f72f8299SJan Lentfer first so that nested documents print the right info 1151f72f8299SJan Lentfer 1152f72f8299SJan Lentfer2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 1153f72f8299SJan Lentfer 1154f72f8299SJan Lentfer * bring back some fixes from OpenBSD: 1155f72f8299SJan Lentfer - make gcc2 builds file 1156f72f8299SJan Lentfer - fix typos in a magic file comment 1157f72f8299SJan Lentfer 1158f72f8299SJan Lentfer2009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 1159f72f8299SJan Lentfer 1160f72f8299SJan Lentfer * ctime/asctime can return NULL on some OS's although 1161f72f8299SJan Lentfer they should not (Toshit Antani) 1162f72f8299SJan Lentfer 1163f72f8299SJan Lentfer2009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 1164f72f8299SJan Lentfer 1165f72f8299SJan Lentfer * Centralize magic path handling routines and remove the 1166f72f8299SJan Lentfer special-casing from file.c so that the python module for 1167f72f8299SJan Lentfer example comes up with the same magic path (Fixes ~/.magic 1168f72f8299SJan Lentfer handling) (from Gab) 1169f72f8299SJan Lentfer 1170f72f8299SJan Lentfer2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 1171f72f8299SJan Lentfer 1172f72f8299SJan Lentfer * When magic argument is a directory, read the files in 1173f72f8299SJan Lentfer strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 1174f72f8299SJan Lentfer 1175f72f8299SJan Lentfer2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 1176f72f8299SJan Lentfer 1177f72f8299SJan Lentfer * Combine overlapping epoc and psion magic files into one (epoc). 1178f72f8299SJan Lentfer 1179f72f8299SJan Lentfer * Add some more EPOC MIME types. 1180f72f8299SJan Lentfer 1181f72f8299SJan Lentfer2009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 1182f72f8299SJan Lentfer 1183f72f8299SJan Lentfer * Fix 3 bugs (From Ian Darwin): 1184f72f8299SJan Lentfer - file_showstr could move one past the end of the array 1185f72f8299SJan Lentfer - parse_apple did not nul terminate the string in the overflow case 1186f72f8299SJan Lentfer - parse_mime truncated the wrong string in the overflow case 1187f72f8299SJan Lentfer 1188f72f8299SJan Lentfer2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 1189f72f8299SJan Lentfer 1190f72f8299SJan Lentfer * Include Localstuff when compiling magic. 1191f72f8299SJan Lentfer 1192f72f8299SJan Lentfer2009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 1193f72f8299SJan Lentfer 1194f72f8299SJan Lentfer * Fix logic for including mygetopts.h 1195f72f8299SJan Lentfer 1196f72f8299SJan Lentfer * Make cdf.c compile again with debugging 1197f72f8299SJan Lentfer 1198f72f8299SJan Lentfer * Add the necessary field handling for crystal reports files to work 1199f72f8299SJan Lentfer 1200f72f8299SJan Lentfer2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 1201f72f8299SJan Lentfer 1202f72f8299SJan Lentfer * Stop "(if" identifying Lisp files, that's plain dumb! 1203f72f8299SJan Lentfer 1204f72f8299SJan Lentfer2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 1205f72f8299SJan Lentfer 1206f72f8299SJan Lentfer * Add a couple of missing MP3 MIME types. 1207f72f8299SJan Lentfer 1208f72f8299SJan Lentfer2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 1209f72f8299SJan Lentfer 1210f72f8299SJan Lentfer * Add full range of hash-bang tests for Python and Ruby. 1211f72f8299SJan Lentfer 1212f72f8299SJan Lentfer * Add MIME types for Python and Ruby scripts. 1213f72f8299SJan Lentfer 1214f72f8299SJan Lentfer2009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 1215f72f8299SJan Lentfer 1216f72f8299SJan Lentfer * off by one in parsing hw capabilities in elf 1217f72f8299SJan Lentfer (Cheng Renquan) 1218f72f8299SJan Lentfer 1219f72f8299SJan Lentfer2009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 1220f72f8299SJan Lentfer 1221f72f8299SJan Lentfer * lint fixes and more from NetBSD 1222f72f8299SJan Lentfer 122379343712SPeter Avalos2009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 122479343712SPeter Avalos 122579343712SPeter Avalos * Avoid null dereference in cdf code (Drew Yao) 122679343712SPeter Avalos 122779343712SPeter Avalos * More cdf bounds checks and overflow checks 122879343712SPeter Avalos 122979343712SPeter Avalos2009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 123079343712SPeter Avalos 123179343712SPeter Avalos * Buffer overflow fixes from Drew Yao 123279343712SPeter Avalos 123379343712SPeter Avalos2009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 123479343712SPeter Avalos 123579343712SPeter Avalos * Fix more cdf lossage. All the documents I have 123679343712SPeter Avalos right now print the correct information. 123779343712SPeter Avalos 123879343712SPeter Avalos2009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 123979343712SPeter Avalos 124079343712SPeter Avalos * don't print \012- separators in the same magic entry 124179343712SPeter Avalos if it consists of multiple magic printing lines. 124279343712SPeter Avalos 124379343712SPeter Avalos2009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 124479343712SPeter Avalos 124579343712SPeter Avalos * Avoid file descriptor leak in compress code from 124679343712SPeter Avalos (Daniel Novotny) 124779343712SPeter Avalos 124879343712SPeter Avalos2009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 124979343712SPeter Avalos 125079343712SPeter Avalos * Allow escaping of relation characters, so that we can say \^[A-Z] 125179343712SPeter Avalos and the ^ is not eaten as a relation char. 125279343712SPeter Avalos 125379343712SPeter Avalos * Fix troff and fortran to their previous glory using 125479343712SPeter Avalos regex. This was broken since their removel from ascmagic. 125579343712SPeter Avalos 125679343712SPeter Avalos2009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 125779343712SPeter Avalos 125879343712SPeter Avalos * don't use strlen in strndup() (Toby Peterson) 125979343712SPeter Avalos 126079343712SPeter Avalos2009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 126179343712SPeter Avalos 126279343712SPeter Avalos * avoid c99 syntax. 126379343712SPeter Avalos 126479343712SPeter Avalos2009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 126579343712SPeter Avalos 126679343712SPeter Avalos * make the cdf code use the buffer first if available, 126779343712SPeter Avalos and then the fd code. 126879343712SPeter Avalos 126979343712SPeter Avalos2009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 127079343712SPeter Avalos 127179343712SPeter Avalos * look for struct option to determine if getopt.h is usable for IRIX. 127279343712SPeter Avalos 127379343712SPeter Avalos * sanitize cdf document strings 127479343712SPeter Avalos 127579343712SPeter Avalos2009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 127679343712SPeter Avalos 127779343712SPeter Avalos * fix OS/2 warnings. 127879343712SPeter Avalos 127979343712SPeter Avalos2008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 128079343712SPeter Avalos 128179343712SPeter Avalos * fix initial offset calculation for non 4K sector files 128279343712SPeter Avalos 128379343712SPeter Avalos * add loop limits to avoid DoS attacks by constructing 128479343712SPeter Avalos looping sector references. 128579343712SPeter Avalos 128679343712SPeter Avalos2008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 128779343712SPeter Avalos 128879343712SPeter Avalos * fix memory botches on cdf file parsing. 128979343712SPeter Avalos 129079343712SPeter Avalos * exit with non-zero value for any error, not just for the last 129179343712SPeter Avalos file processed. 129279343712SPeter Avalos 129379343712SPeter Avalos2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 129479343712SPeter Avalos 129579343712SPeter Avalos * Replace all str{cpy,cat} functions with strl{cpy,cat} 129679343712SPeter Avalos * Ensure that strl{cpy,cat} are included in libmagic, 129779343712SPeter Avalos as needed. 129879343712SPeter Avalos 129979343712SPeter Avalos2008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 130079343712SPeter Avalos 130179343712SPeter Avalos * Handle ID3 format files. 130279343712SPeter Avalos 130379343712SPeter Avalos2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 130479343712SPeter Avalos 130579343712SPeter Avalos * Fix --mime, --mime-type and --mime-encoding under new scheme. 130679343712SPeter Avalos 130779343712SPeter Avalos * Rename "ascii" to "text" and add "encoding" test. 130879343712SPeter Avalos 130979343712SPeter Avalos * Return a precise ("utf-16le" or "utf-16be") MIME charset for 131079343712SPeter Avalos UTF-16. 131179343712SPeter Avalos 131279343712SPeter Avalos * Fix error in comment caused by automatic indentation adding 131379343712SPeter Avalos words! 131479343712SPeter Avalos 131579343712SPeter Avalos2008-11-06 10:35 Christos Zoulas <christos@astron.com> 131679343712SPeter Avalos 131779343712SPeter Avalos * use memchr instead of strchr because the string 131879343712SPeter Avalos might not be NUL terminated (Scott MacVicar) 131979343712SPeter Avalos 132079343712SPeter Avalos2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 132179343712SPeter Avalos 132279343712SPeter Avalos * Fix a printf with a non-literal format string. 132379343712SPeter Avalos 132479343712SPeter Avalos * Fix formatting and punctuation of help for "--apple". 132579343712SPeter Avalos 132679343712SPeter Avalos2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 132779343712SPeter Avalos 132879343712SPeter Avalos * Correct words counts in comments of struct magic. 132979343712SPeter Avalos 133079343712SPeter Avalos * Fix handle_annotation to allow both Apple and MIME types to be 133179343712SPeter Avalos printed, and to return correct code if MIME type is 133279343712SPeter Avalos printed (1, not 0) or if there's an error (-1 not 1). 133379343712SPeter Avalos 133479343712SPeter Avalos * Fix output of charset for MIME type (precede with semi-colon; 133579343712SPeter Avalos fixes Debian bug #501460). 133679343712SPeter Avalos 133779343712SPeter Avalos * Fix potential attacks via conversion specifications in magic 133879343712SPeter Avalos strings. 133979343712SPeter Avalos 134079343712SPeter Avalos * Add a FIXME for Debian bug #488562 (magic files should be 134179343712SPeter Avalos read in a defined order, by sorting the names). 134279343712SPeter Avalos 134379343712SPeter Avalos2008-10-18 16:45 Christos Zoulas <christos@astron.com> 134479343712SPeter Avalos 134579343712SPeter Avalos * Added APPLE file creator/type 134679343712SPeter Avalos 134779343712SPeter Avalos2008-10-12 10:20 Christos Zoulas <christos@astron.com> 134879343712SPeter Avalos 134979343712SPeter Avalos * Added CDF parsing 135079343712SPeter Avalos 135179343712SPeter Avalos2008-10-09 16:40 Christos Zoulas <christos@astron.com> 135279343712SPeter Avalos 135379343712SPeter Avalos * filesystem and msdos patches (Joerg Jenderek) 135479343712SPeter Avalos 135579343712SPeter Avalos2008-10-09 13:20 Christos Zoulas <christos@astron.com> 135679343712SPeter Avalos 135779343712SPeter Avalos * correct --exclude documentation issues: remove troff and fortran 135879343712SPeter Avalos and rename "token" to "tokens". (Randy McMurchy) 135979343712SPeter Avalos 136079343712SPeter Avalos2008-10-01 10:30 Christos Zoulas <christos@astron.com> 136179343712SPeter Avalos 136279343712SPeter Avalos * Read ~/.magic in addition to the default magic file not instead 136379343712SPeter Avalos of, as documented in the man page. 136479343712SPeter Avalos 136579343712SPeter Avalos2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 136679343712SPeter Avalos 136779343712SPeter Avalos * Comment out graphviz patterns, as they match too many files. 136879343712SPeter Avalos 136979343712SPeter Avalos2008-08-30 12:54 Christos Zoulas <christos@astron.com> 137079343712SPeter Avalos 137179343712SPeter Avalos * Don't eat trailing \n in magic enties. 137279343712SPeter Avalos 137379343712SPeter Avalos * Cast defines to allow compilation using a c++ compiler. 137479343712SPeter Avalos 137579343712SPeter Avalos2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 137679343712SPeter Avalos 137779343712SPeter Avalos * Add text/x-lua MIME type for Lua scripts. 137879343712SPeter Avalos 137979343712SPeter Avalos * Escape { in regex in graphviz patterns. 138079343712SPeter Avalos 138179343712SPeter Avalos2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 138279343712SPeter Avalos 138379343712SPeter Avalos * Add MIME types for special files. 138479343712SPeter Avalos 138579343712SPeter Avalos * Use access to give more accurate information for files that 138679343712SPeter Avalos can't be opened. 138779343712SPeter Avalos 138879343712SPeter Avalos * Add a TODO list. 138979343712SPeter Avalos 139079343712SPeter Avalos2008-07-02 11:15 Christos Zoulas <christos@astron.com> 139179343712SPeter Avalos 139279343712SPeter Avalos * add !:strength op to adjust magic strength (experimental) 139379343712SPeter Avalos 139479343712SPeter Avalos2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 139579343712SPeter Avalos 139679343712SPeter Avalos * Fix automake error in configure.ac. 139779343712SPeter Avalos 139879343712SPeter Avalos * Add MIME type for Psion Sketch files. 139979343712SPeter Avalos 140079343712SPeter Avalos2008-06-05 08:59 Christos Zoulas <christos@astron.com> 140179343712SPeter Avalos 140279343712SPeter Avalos * Don't print warnings about bad namesize in stripped 140379343712SPeter Avalos binaries with PT_NOTE is still there, and the actual 140479343712SPeter Avalos note is gone (Jakub Jelinek) 140579343712SPeter Avalos 140679343712SPeter Avalos2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 140779343712SPeter Avalos 140879343712SPeter Avalos * magic/Magdir/elf: 140979343712SPeter Avalos Note invalid byte order for little-endian SPARC32PLUS. 141079343712SPeter Avalos Add SPARC V9 vendor extensions and memory model. 141179343712SPeter Avalos 141279343712SPeter Avalos * src/elfclass.h: 141379343712SPeter Avalos Pass target machine to doshn (for Solaris hardware capabilities). 141479343712SPeter Avalos 141579343712SPeter Avalos * src/readelf.c (doshn): 141679343712SPeter Avalos Add support for Solaris hardware/software capabilities. 141779343712SPeter Avalos 141879343712SPeter Avalos * src/readelf.h: 141979343712SPeter Avalos Ditto. 142079343712SPeter Avalos 142179343712SPeter Avalos * src/vasprintf.c (dispatch): 142279343712SPeter Avalos Add support for ll modifier. 142379343712SPeter Avalos 142479343712SPeter Avalos2008-05-16 10:25 Christos Zoulas <christos@astron.com> 142579343712SPeter Avalos 142679343712SPeter Avalos * Fix compiler warnings. 142779343712SPeter Avalos 142879343712SPeter Avalos * remove stray printf, and fix a vprintf bug. (Martin Dorey) 142979343712SPeter Avalos 143079343712SPeter Avalos2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 143179343712SPeter Avalos 143279343712SPeter Avalos * src/Makefile.am: 143379343712SPeter Avalos Ensure that getopt_long and [v]asprintf are included in libmagic, 143479343712SPeter Avalos as needed. 143579343712SPeter Avalos 143679343712SPeter Avalos Remove unnecessary EXTRA_DIST. 143779343712SPeter Avalos 143879343712SPeter Avalos * src/Makefile.in: 143979343712SPeter Avalos Rerun automake. 144079343712SPeter Avalos 144179343712SPeter Avalos * src/vasprintf.c (dispatch): 144279343712SPeter Avalos Fix variable precision bug: be sure to step past '*'. 144379343712SPeter Avalos 144479343712SPeter Avalos * src/vasprintf.c (core): 144579343712SPeter Avalos Remove unreachable code. 144679343712SPeter Avalos 144779343712SPeter Avalos * src/apprentice.c (set_test_type): 144879343712SPeter Avalos Add cast to avoid compiler warning. 144979343712SPeter Avalos 145079343712SPeter Avalos2008-04-22 23:45 Christos Zoulas <christos@astron.com> 145179343712SPeter Avalos 145279343712SPeter Avalos * Add magic submission guidelines (Abel Cheung) 145379343712SPeter Avalos 145479343712SPeter Avalos * split msdos and windows magic (Abel Cheung) 145579343712SPeter Avalos 145679343712SPeter Avalos2008-04-04 11:00 Christos Zoulas <christos@astron.com> 145779343712SPeter Avalos 145879343712SPeter Avalos * >= <= is not supported, so fix the magic and warn about it. 145979343712SPeter Avalos reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 146079343712SPeter Avalos 146179343712SPeter Avalos2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 146279343712SPeter Avalos 146379343712SPeter Avalos * src/readelf.c (donote): 146479343712SPeter Avalos ELF core file command name/line bug fixes and enhancements: 146579343712SPeter Avalos 146679343712SPeter Avalos Try larger offsets first to avoid false matches 146779343712SPeter Avalos from earlier data that happen to look like strings; 146879343712SPeter Avalos this primarily affected SunOS 5.x 32-bit Intel core files. 146979343712SPeter Avalos 147079343712SPeter Avalos Add support for command line (instead of just short name) 147179343712SPeter Avalos for SunOS 5.x. 147279343712SPeter Avalos 147379343712SPeter Avalos Add information about NT_PSINFO for SunOS 5.x. 147479343712SPeter Avalos 147579343712SPeter Avalos Only trim whitespace from end of command line. 147679343712SPeter Avalos 147779343712SPeter Avalos2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 147879343712SPeter Avalos 147979343712SPeter Avalos * Change strength of ! from MULT to 0, as it matches almost 148079343712SPeter Avalos anything (Reuben Thomas) 148179343712SPeter Avalos 148279343712SPeter Avalos * Debian fixes (Reuben Thomas) 148379343712SPeter Avalos 148479343712SPeter Avalos2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 148579343712SPeter Avalos 148679343712SPeter Avalos * Clarify UTF-8 BOM message (Reuben Thomas) 148779343712SPeter Avalos 148879343712SPeter Avalos * Add HTML comment to token list in names.h 148979343712SPeter Avalos 149079343712SPeter Avalos2007-02-04 15:50 Christos Zoulas <christos@astron.com> 149179343712SPeter Avalos 149279343712SPeter Avalos * Debian fixes (Reuben Thomas) 149379343712SPeter Avalos 149479343712SPeter Avalos2007-02-04 11:31 Christos Zoulas <christos@astron.com> 149579343712SPeter Avalos 149679343712SPeter Avalos * !:mime annotations in magic files (Reuben Thomas) 149779343712SPeter Avalos 149879343712SPeter Avalos2007-01-29 15:35 Christos Zoulas <christos@astron.com> 149979343712SPeter Avalos 150079343712SPeter Avalos * zero out utime/utimes structs (Gavin Atkinson) 150179343712SPeter Avalos 150279343712SPeter Avalos2007-01-26 13:45 Christos Zoulas <christos@astron.com> 150379343712SPeter Avalos 150479343712SPeter Avalos * reduce writable data from Diego "Flameeyes" Petten 150579343712SPeter Avalos 150679343712SPeter Avalos2007-12-28 15:06 Christos Zoulas <christos@astron.com> 1507327e51cbSPeter Avalos 1508327e51cbSPeter Avalos * strtof detection 1509327e51cbSPeter Avalos 1510327e51cbSPeter Avalos * remove bogus regex magic that could cause a DoS 1511327e51cbSPeter Avalos 1512327e51cbSPeter Avalos * better mismatch version message 1513327e51cbSPeter Avalos 151479343712SPeter Avalos2007-12-27 11:35 Christos Zoulas <christos@astron.com> 1515327e51cbSPeter Avalos 1516327e51cbSPeter Avalos * bring back some fixes from OpenBSD 1517327e51cbSPeter Avalos 1518327e51cbSPeter Avalos * treat ELF dynamic objects as executables 1519327e51cbSPeter Avalos 1520327e51cbSPeter Avalos * fix gcc warnings 1521327e51cbSPeter Avalos 152279343712SPeter Avalos2007-12-01 19:55 Christos Zoulas <christos@astron.com> 1523327e51cbSPeter Avalos 1524327e51cbSPeter Avalos * make sure we have zlib.h and libz to compile the builtin 1525327e51cbSPeter Avalos decompress code 1526327e51cbSPeter Avalos 152779343712SPeter Avalos2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1528327e51cbSPeter Avalos 1529327e51cbSPeter Avalos * float and double magic support (Behan Webster) 1530327e51cbSPeter Avalos 153179343712SPeter Avalos2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1532327e51cbSPeter Avalos 1533327e51cbSPeter Avalos * Convert fortran to a soft test (Reuben Thomas) 1534327e51cbSPeter Avalos 153579343712SPeter Avalos2007-10-23 5:25 Christos Zoulas <christos@astron.com> 1536327e51cbSPeter Avalos 1537327e51cbSPeter Avalos * Add --with-filename, and --no-filename (Reuben Thomas) 1538327e51cbSPeter Avalos 153979343712SPeter Avalos2007-10-23 3:59 Christos Zoulas <christos@astron.com> 1540327e51cbSPeter Avalos 1541327e51cbSPeter Avalos * Rest of the mime split (Reuben Thomas) 1542327e51cbSPeter Avalos 1543327e51cbSPeter Avalos * Make usage message generated from the flags so that 1544327e51cbSPeter Avalos they stay consistent (Reuben Thomas) 1545327e51cbSPeter Avalos 154679343712SPeter Avalos2007-10-20 3:06 Christos Zoulas <christos@astron.com> 1547327e51cbSPeter Avalos 1548327e51cbSPeter Avalos * typo in comment, missing ifdef QUICK, remove unneeded code 1549327e51cbSPeter Avalos (Charles Longeau) 1550327e51cbSPeter Avalos 155179343712SPeter Avalos2007-10-17 3:33 Christos Zoulas <christos@astron.com> 1552327e51cbSPeter Avalos 1553327e51cbSPeter Avalos * Fix problem printing -\012 in some entries 1554327e51cbSPeter Avalos 1555327e51cbSPeter Avalos * Separate magic type and encoding flags (Reuben Thomas) 1556327e51cbSPeter Avalos 155779343712SPeter Avalos2007-10-09 3:55 Christos Zoulas <christos@astron.com> 1558327e51cbSPeter Avalos 1559327e51cbSPeter Avalos * configure fix for int64 and strndup (Reuben Thomas) 1560327e51cbSPeter Avalos 156179343712SPeter Avalos2007-09-26 4:45 Christos Zoulas <christos@astron.com> 1562327e51cbSPeter Avalos 1563327e51cbSPeter Avalos * Add magic_descriptor() function. 1564327e51cbSPeter Avalos 1565327e51cbSPeter Avalos * Fix regression in elf reading code where the core name was 1566327e51cbSPeter Avalos not being printed. 1567327e51cbSPeter Avalos 1568327e51cbSPeter Avalos * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 1569327e51cbSPeter Avalos 157079343712SPeter Avalos2007-08-19 6:30 Christos Zoulas <christos@astron.com> 1571327e51cbSPeter Avalos 1572327e51cbSPeter Avalos * Make mime format consistent so that it can 1573327e51cbSPeter Avalos be easily parsed: 1574327e51cbSPeter Avalos mimetype [charset=character-set] [encoding=encoding-mime-type] 1575327e51cbSPeter Avalos 1576327e51cbSPeter Avalos Remove spurious extra text from some MIME type printouts 1577327e51cbSPeter Avalos (mostly in is_tar). 1578327e51cbSPeter Avalos 1579327e51cbSPeter Avalos Fix one case where -i produced nothing at all (for a 1-byte file, 1580327e51cbSPeter Avalos which is now classed as application/octet-stream). 1581327e51cbSPeter Avalos 1582327e51cbSPeter Avalos Remove 7/8bit classifications, since they were arbitrary 1583327e51cbSPeter Avalos and not based on the file data. 1584327e51cbSPeter Avalos 1585327e51cbSPeter Avalos This work was done by Reuben Thomas 1586327e51cbSPeter Avalos 158779343712SPeter Avalos2007-05-24 10:00 Christos Zoulas <christos@astron.com> 1588327e51cbSPeter Avalos 1589327e51cbSPeter Avalos * Fix another integer overflow (Colin Percival) 1590327e51cbSPeter Avalos 159179343712SPeter Avalos2007-03-26 13:58 Christos Zoulas <christos@astron.com> 1592327e51cbSPeter Avalos 1593327e51cbSPeter Avalos * make sure that all of struct magic_set is initialized appropriately 1594327e51cbSPeter Avalos (Brett) 1595327e51cbSPeter Avalos 159679343712SPeter Avalos2007-03-25 17:44 Christos Zoulas <christos@astron.com> 1597327e51cbSPeter Avalos 1598327e51cbSPeter Avalos * reset left bytes in the buffer (Dmitry V. Levin) 1599327e51cbSPeter Avalos 1600327e51cbSPeter Avalos * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 1601327e51cbSPeter Avalos (Peter Avalos) 1602327e51cbSPeter Avalos 160379343712SPeter Avalos2007-03-15 10:51 Christos Zoulas <christos@astron.com> 1604327e51cbSPeter Avalos 1605327e51cbSPeter Avalos * fix fortran and nroff reversed tests (Dmitry V. Levin) 1606327e51cbSPeter Avalos 1607327e51cbSPeter Avalos * fix exclude option (Dmitry V. Levin) 1608327e51cbSPeter Avalos 160979343712SPeter Avalos2007-02-08 17:30 Christos Zoulas <christos@astron.com> 1610327e51cbSPeter Avalos 1611327e51cbSPeter Avalos * fix integer underflow in file_printf which can lead to 1612327e51cbSPeter Avalos to exploitable heap overflow (Jean-Sebastien Guay-Lero) 1613327e51cbSPeter Avalos 161479343712SPeter Avalos2007-02-05 11:35 Christos Zoulas <christos@astron.com> 1615327e51cbSPeter Avalos 1616327e51cbSPeter Avalos * make socket/pipe reading more robust 1617327e51cbSPeter Avalos 161879343712SPeter Avalos2007-01-25 16:01 Christos Zoulas <christos@astron.com> 1619327e51cbSPeter Avalos 1620327e51cbSPeter Avalos * Centralize all the tests in file_buffer. 1621327e51cbSPeter Avalos 1622327e51cbSPeter Avalos * Add exclude flag. 1623327e51cbSPeter Avalos 1624327e51cbSPeter Avalos2007-01-18 05:29 Anon Ymous <do@not.spam.me> 1625327e51cbSPeter Avalos 1626327e51cbSPeter Avalos * Move the "type" detection code from parse() into its own table 1627327e51cbSPeter Avalos driven routine. This avoids maintaining multiple lists in 1628327e51cbSPeter Avalos file.h. 1629327e51cbSPeter Avalos 1630327e51cbSPeter Avalos * Add an optional conditional field (ust before the type field). 1631327e51cbSPeter Avalos This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 1632327e51cbSPeter Avalos likely to go away. 1633327e51cbSPeter Avalos 1634327e51cbSPeter Avalos2007-01-16 23:24 Anon Ymous <do@not.spam.me> 1635327e51cbSPeter Avalos 1636327e51cbSPeter Avalos * Fix an initialization bug in check_mem(). 1637327e51cbSPeter Avalos 1638327e51cbSPeter Avalos2007-01-16 14:58 Anon Ymous <do@not.spam.me> 1639327e51cbSPeter Avalos 1640327e51cbSPeter Avalos * Add a "default" type to print a message if nothing previously 1641327e51cbSPeter Avalos matched at that level or since the last default at that 1642327e51cbSPeter Avalos level. This is useful for setting up switch-like statements. 1643327e51cbSPeter Avalos It can also be used to do if/else constructions without a 1644327e51cbSPeter Avalos redundant second test. 1645327e51cbSPeter Avalos 1646327e51cbSPeter Avalos * Fix the "x" special case test so that one can test for that 1647327e51cbSPeter Avalos string with "=x". 1648327e51cbSPeter Avalos 1649327e51cbSPeter Avalos * Allow "search" to search the entire buffer if the "/N" 1650327e51cbSPeter Avalos search count is missing. 1651327e51cbSPeter Avalos 1652327e51cbSPeter Avalos * Make "regex" work! It now starts its search at the 1653327e51cbSPeter Avalos specified offset and takes an (optional) "/N" line count to 1654327e51cbSPeter Avalos specify the search range; otherwise it searches to the end 1655327e51cbSPeter Avalos of the file. The match is now grabbed correctly for format 1656327e51cbSPeter Avalos strings and the offset set to the end of the match. 1657327e51cbSPeter Avalos 1658327e51cbSPeter Avalos * Add a "/s" flag to "regex" and "search" to set the offset to 1659327e51cbSPeter Avalos the start of the match. By default the offset is set to the 1660327e51cbSPeter Avalos end of the match, as it is with other tests. This is mostly 1661327e51cbSPeter Avalos useful for "regex". 1662327e51cbSPeter Avalos 1663327e51cbSPeter Avalos * Make "search", "string" and "pstring" use the same 1664327e51cbSPeter Avalos file_strncmp() routine so that they support the same flags; 1665327e51cbSPeter Avalos "bestring16" and "lestring16" call the same routine, but 1666327e51cbSPeter Avalos with flags = 0. Also add a "/C" flag (in analogy to "/c") 1667327e51cbSPeter Avalos to ignore the case on uppercase (lowercase) characters in 1668327e51cbSPeter Avalos the test string. 1669327e51cbSPeter Avalos 1670327e51cbSPeter Avalos * Strict adherence to C style string escapes. A warnings are 1671327e51cbSPeter Avalos printed when compiling. Note: previously "\a" was 1672327e51cbSPeter Avalos incorrectly translated to 'a' instead of an <alert> (i.e., 1673327e51cbSPeter Avalos BELL, typically 0x07). 1674327e51cbSPeter Avalos 1675327e51cbSPeter Avalos * Make this compile with "-Wall -Wextra" and all the warning 1676327e51cbSPeter Avalos flags used with WARNS=4 in the NetBSD source. Also make it 1677327e51cbSPeter Avalos pass lint. 1678327e51cbSPeter Avalos 1679327e51cbSPeter Avalos * Many "cleanups" and hopefully not too many new bugs! 1680327e51cbSPeter Avalos 1681327e51cbSPeter Avalos2007-01-16 14:56 Anon Ymous <do@not.spam.me> 1682327e51cbSPeter Avalos 1683327e51cbSPeter Avalos * make several more files compile with gcc warnings 1684327e51cbSPeter Avalos on and also make them pass lint. 1685327e51cbSPeter Avalos 1686327e51cbSPeter Avalos2007-01-16 14:54 Anon Ymous <do@not.spam.me> 1687327e51cbSPeter Avalos 1688327e51cbSPeter Avalos * fix a puts()/putc() usage goof in file.c 1689327e51cbSPeter Avalos 1690327e51cbSPeter Avalos * make file.c compile with gcc warnings and pass lint 1691327e51cbSPeter Avalos 169279343712SPeter Avalos2006-12-11 16:49 Christos Zoulas <christos@astron.com> 1693327e51cbSPeter Avalos 1694327e51cbSPeter Avalos * fix byteswapping issue 1695327e51cbSPeter Avalos 1696327e51cbSPeter Avalos * report the number of bytes we tried to 1697327e51cbSPeter Avalos allocate when allocation fails 1698327e51cbSPeter Avalos 1699327e51cbSPeter Avalos * add a few missed cases in the strength routine 1700327e51cbSPeter Avalos 170179343712SPeter Avalos2006-12-08 16:32 Christos Zoulas <christos@astron.com> 1702327e51cbSPeter Avalos 1703327e51cbSPeter Avalos * store and print the line number of the magic 1704327e51cbSPeter Avalos entry for debugging. 1705327e51cbSPeter Avalos 1706327e51cbSPeter Avalos * if the magic entry did not print anything, 1707327e51cbSPeter Avalos don't treat it as a match 1708327e51cbSPeter Avalos 1709327e51cbSPeter Avalos * change the magic strength algorithm to take 1710327e51cbSPeter Avalos into account the relationship op. 1711327e51cbSPeter Avalos 1712327e51cbSPeter Avalos * fix a bug in search where we could accidentally 1713327e51cbSPeter Avalos return a match. 1714327e51cbSPeter Avalos 1715327e51cbSPeter Avalos * propagate the error return from match to 1716327e51cbSPeter Avalos file_softmagic. 1717327e51cbSPeter Avalos 171879343712SPeter Avalos2006-11-25 13:35 Christos Zoulas <christos@astron.com> 1719327e51cbSPeter Avalos 1720327e51cbSPeter Avalos * Don't store the current offset in the magic 1721327e51cbSPeter Avalos struct, because it needs to be restored and 1722327e51cbSPeter Avalos it was not done properly all the time. Bug 1723327e51cbSPeter Avalos found by: Arkadiusz Miskiewicz 1724327e51cbSPeter Avalos 1725327e51cbSPeter Avalos * Fix problem in the '\0' separator; and don't 1726327e51cbSPeter Avalos print it as an additional separator; print 1727327e51cbSPeter Avalos it as the only separator. 1728327e51cbSPeter Avalos 172979343712SPeter Avalos2006-11-17 10:51 Christos Zoulas <christos@astron.com> 1730327e51cbSPeter Avalos 1731327e51cbSPeter Avalos * Added a -0 option to print a '\0' separator 1732327e51cbSPeter Avalos Etienne Buira <etienne.buira@free.fr> 1733327e51cbSPeter Avalos 173479343712SPeter Avalos2006-10-31 15:14 Christos Zoulas <christos@astron.com> 1735327e51cbSPeter Avalos 1736327e51cbSPeter Avalos * Check offset before copying (Mike Frysinger) 1737327e51cbSPeter Avalos 1738327e51cbSPeter Avalos * merge duplicated code 1739327e51cbSPeter Avalos 1740327e51cbSPeter Avalos * add quad date support 1741327e51cbSPeter Avalos 1742327e51cbSPeter Avalos * make sure that we nul terminate desc (Ryoji Kanai) 1743327e51cbSPeter Avalos 1744327e51cbSPeter Avalos * don't process elf notes multiple times 1745327e51cbSPeter Avalos 1746327e51cbSPeter Avalos * allow -z to report empty compressed files 1747327e51cbSPeter Avalos 1748327e51cbSPeter Avalos * use calloc to initialize the ascii buffers (Jos van den Oever) 1749327e51cbSPeter Avalos 175079343712SPeter Avalos2006-06-08 11:11 Christos Zoulas <christos@astron.com> 1751327e51cbSPeter Avalos 1752327e51cbSPeter Avalos * QNX fixes (Mike Gorchak) 1753327e51cbSPeter Avalos 1754327e51cbSPeter Avalos * Add quad support. 1755327e51cbSPeter Avalos 1756327e51cbSPeter Avalos * FIFO checks (Dr. Werner Fink) 1757327e51cbSPeter Avalos 1758327e51cbSPeter Avalos * Linux ELF fixes (Dr. Werner Fink) 1759327e51cbSPeter Avalos 1760327e51cbSPeter Avalos * Magic format checks (Dr. Werner Fink) 1761327e51cbSPeter Avalos 1762327e51cbSPeter Avalos * Magic format function improvent (Karl Chen) 1763327e51cbSPeter Avalos 176479343712SPeter Avalos2006-05-03 11:11 Christos Zoulas <christos@astron.com> 1765327e51cbSPeter Avalos 1766327e51cbSPeter Avalos * Pick up some elf changes and some constant fixes from SUSE 1767327e51cbSPeter Avalos 1768327e51cbSPeter Avalos * Identify gnu tar vs. posix tar 1769327e51cbSPeter Avalos 177082c5fa3eSPeter Avalos * When keep going, don't print spurious newlines (Radek Vokal) 1771327e51cbSPeter Avalos 177279343712SPeter Avalos2006-04-01 12:02 Christos Zoulas <christos@astron.com> 1773327e51cbSPeter Avalos 1774327e51cbSPeter Avalos * Use calloc instead of malloc (Mike Frysinger) 1775327e51cbSPeter Avalos 1776327e51cbSPeter Avalos * Fix configure script to detect wctypes.h (Mike Frysinger) 1777327e51cbSPeter Avalos 177879343712SPeter Avalos2006-03-02 16:06 Christos Zoulas <christos@astron.com> 1779327e51cbSPeter Avalos 1780327e51cbSPeter Avalos * Print empty if the file is (Mike Frysinger) 1781327e51cbSPeter Avalos 1782327e51cbSPeter Avalos * Don't try to read past the end of the buffer (Mike Frysinger) 1783327e51cbSPeter Avalos 1784327e51cbSPeter Avalos * Sort magic entries by strength [experimental] 1785327e51cbSPeter Avalos 178679343712SPeter Avalos2005-11-29 13:26 Christos Zoulas <christos@astron.com> 1787327e51cbSPeter Avalos 1788327e51cbSPeter Avalos * Use iswprint() to convert the output string. 1789327e51cbSPeter Avalos (Bastien Nocera) 1790327e51cbSPeter Avalos 179179343712SPeter Avalos2005-10-31 8:54 Christos Zoulas <christos@astron.com> 1792327e51cbSPeter Avalos 1793327e51cbSPeter Avalos * Fix regression where the core info was not completely processed 179482c5fa3eSPeter Avalos (Radek Vokal) 1795327e51cbSPeter Avalos 179679343712SPeter Avalos2005-10-20 11:15 Christos Zoulas <christos@astron.com> 1797327e51cbSPeter Avalos 1798327e51cbSPeter Avalos * Middle Endian magic (Diomidis Spinellis) 1799327e51cbSPeter Avalos 180079343712SPeter Avalos2005-10-17 11:15 Christos Zoulas <christos@astron.com> 1801327e51cbSPeter Avalos 1802327e51cbSPeter Avalos * Open with O_BINARY for CYGWIN (Corinna Vinschen) 1803327e51cbSPeter Avalos 1804327e51cbSPeter Avalos * Don't close stdin (Arkadiusz Miskiewicz) 1805327e51cbSPeter Avalos 1806327e51cbSPeter Avalos * Look for note sections in non executables. 1807327e51cbSPeter Avalos 180879343712SPeter Avalos2005-09-20 13:33 Christos Zoulas <christos@astron.com> 1809327e51cbSPeter Avalos 1810327e51cbSPeter Avalos * Don't print SVR4 Style in core files multiple times 181182c5fa3eSPeter Avalos (Radek Vokal) 1812327e51cbSPeter Avalos 181379343712SPeter Avalos2005-08-27 04:09 Christos Zoulas <christos@astron.com> 1814327e51cbSPeter Avalos 1815327e51cbSPeter Avalos * Cygwin changes Corinna Vinschen 1816327e51cbSPeter Avalos 181779343712SPeter Avalos2005-08-18 09:53 Christos Zoulas <christos@astron.com> 1818327e51cbSPeter Avalos 1819327e51cbSPeter Avalos * Remove erroreous mention of /etc/magic in the file man page 1820327e51cbSPeter Avalos This is gentoo bug 101639. (Mike Frysinger) 1821327e51cbSPeter Avalos 1822327e51cbSPeter Avalos * Cross-compile support and detection (Mike Frysinger) 1823327e51cbSPeter Avalos 182479343712SPeter Avalos2005-08-12 10:17 Christos Zoulas <christos@astron.com> 1825327e51cbSPeter Avalos 1826327e51cbSPeter Avalos * Add -h flag and dereference symlinks if POSIXLY_CORRECT 1827327e51cbSPeter Avalos is set. 1828327e51cbSPeter Avalos 182979343712SPeter Avalos2005-07-29 13:57 Christos Zoulas <christos@astron.com> 1830327e51cbSPeter Avalos 1831327e51cbSPeter Avalos * Avoid search and regex buffer overflows (Kelledin) 1832327e51cbSPeter Avalos 183379343712SPeter Avalos2005-07-12 11:48 Christos Zoulas <christos@astron.com> 1834327e51cbSPeter Avalos 1835327e51cbSPeter Avalos * Provide stub implementations for {v,}nsprintf() for older 1836327e51cbSPeter Avalos OS's that don't have them. 1837327e51cbSPeter Avalos * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 1838327e51cbSPeter Avalos to AC_TYPE_MBSTATE_T. 1839327e51cbSPeter Avalos 184079343712SPeter Avalos2005-06-25 11:48 Christos Zoulas <christos@astron.com> 1841327e51cbSPeter Avalos 1842327e51cbSPeter Avalos * Dynamically allocate the string buffers and make the 1843327e51cbSPeter Avalos default read size 256K. 1844327e51cbSPeter Avalos 1845327e51cbSPeter Avalos2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 1846327e51cbSPeter Avalos 1847327e51cbSPeter Avalos * Dragonfly ELF note support 1848327e51cbSPeter Avalos 1849327e51cbSPeter Avalos2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 1850327e51cbSPeter Avalos 1851327e51cbSPeter Avalos * Avoid NULL pointer dereference in time conversion. 1852327e51cbSPeter Avalos 1853327e51cbSPeter Avalos2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 1854327e51cbSPeter Avalos 1855327e51cbSPeter Avalos * Add indirect magic offset support, and search mode. 1856327e51cbSPeter Avalos 1857327e51cbSPeter Avalos2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 1858327e51cbSPeter Avalos 1859327e51cbSPeter Avalos * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 1860327e51cbSPeter Avalos If a CRLF text file happens to have CR at offset HOWMANY - 1 1861327e51cbSPeter Avalos (currently 0xffff), it should not be counted as CR line 1862327e51cbSPeter Avalos terminator. 1863327e51cbSPeter Avalos If a line has length exactly MAXLINELEN, it should not yet be 1864327e51cbSPeter Avalos treated as a ``very long line'', as MAXLINELEN is ``longest sane 1865327e51cbSPeter Avalos line length''. 1866327e51cbSPeter Avalos With CRLF, the line length was not computed correctly, and even 1867327e51cbSPeter Avalos lines of length MAXLINELEN - 1 were treated as ``very long''. 1868327e51cbSPeter Avalos 186979343712SPeter Avalos2004-12-07 14:15 Christos Zoulas <christos@astron.com> 1870327e51cbSPeter Avalos 1871327e51cbSPeter Avalos * bzip2 needs a lot of input buffer space on some files 1872327e51cbSPeter Avalos before it can begin uncompressing. This makes file -z 1873327e51cbSPeter Avalos fail on some bz2 files. Fix it by giving it a copy of 1874327e51cbSPeter Avalos the file descriptor to read as much as it wants if we 187579343712SPeter Avalos have access to it. <christos@astron.com> 1876327e51cbSPeter Avalos 187779343712SPeter Avalos2004-11-24 12:39 Christos Zoulas <christos@astron.com> 1878327e51cbSPeter Avalos 1879327e51cbSPeter Avalos * Stack smash fix, and ELF more conservative reading. 1880327e51cbSPeter Avalos Jakub Bogusz <qboosh@pld-linux.org> 1881327e51cbSPeter Avalos 188279343712SPeter Avalos2004-11-20 18:50 Christos Zoulas <christos@astron.com> 1883327e51cbSPeter Avalos 1884327e51cbSPeter Avalos * New FreeBSD version parsing code: 1885327e51cbSPeter Avalos Jon Noack <noackjr@alumni.rice.edu> 1886327e51cbSPeter Avalos 188779343712SPeter Avalos * Hackish support for ucs16 strings <christos@astron.com> 1888327e51cbSPeter Avalos 188979343712SPeter Avalos2004-11-13 03:07 Christos Zoulas <christos@astron.com> 1890327e51cbSPeter Avalos 1891327e51cbSPeter Avalos * print the file name and line number in syntax errors. 1892327e51cbSPeter Avalos 189379343712SPeter Avalos2004 10-12 10:50 Christos Zoulas <christos@astron.com> 1894327e51cbSPeter Avalos 1895327e51cbSPeter Avalos * Fix stack overwriting on 0 length strings: Tim Waugh 1896327e51cbSPeter Avalos <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 1897327e51cbSPeter Avalos 189879343712SPeter Avalos2004-09-27 11:30 Christos Zoulas <christos@astron.com> 1899327e51cbSPeter Avalos 1900327e51cbSPeter Avalos * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 1901327e51cbSPeter Avalos 1902327e51cbSPeter Avalos * Fix small memory leaks; caught by: Tamas Sarlos 1903327e51cbSPeter Avalos <stamas@csillag.ilab.sztaki.hu> 1904327e51cbSPeter Avalos 190579343712SPeter Avalos2004-07-24 16:33 Christos Zoulas <christos@astron.com> 1906327e51cbSPeter Avalos 1907327e51cbSPeter Avalos * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 1908327e51cbSPeter Avalos 1909327e51cbSPeter Avalos * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 1910327e51cbSPeter Avalos 1911327e51cbSPeter Avalos * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 1912327e51cbSPeter Avalos 1913327e51cbSPeter Avalos * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 1914327e51cbSPeter Avalos 191579343712SPeter Avalos2004-04-12 10:55 Christos Zoulas <christos@astron.com> 1916327e51cbSPeter Avalos 1917327e51cbSPeter Avalos * make sure that magic formats match magic types during compilation 1918327e51cbSPeter Avalos 1919327e51cbSPeter Avalos * fix broken sgi magic file 1920327e51cbSPeter Avalos 192179343712SPeter Avalos2004-04-06 20:36 Christos Zoulas <christos@astron.com> 1922327e51cbSPeter Avalos 1923327e51cbSPeter Avalos * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 1924327e51cbSPeter Avalos 1925327e51cbSPeter Avalos * magic fixes 1926327e51cbSPeter Avalos 192779343712SPeter Avalos2004-03-22 15:25 Christos Zoulas <christos@astron.com> 1928327e51cbSPeter Avalos 1929327e51cbSPeter Avalos * Lots of mime fixes 1930327e51cbSPeter Avalos (Joerg Ostertag) <ostertag@rechengilde.de> 1931327e51cbSPeter Avalos 1932327e51cbSPeter Avalos * FreeBSD ELF version handling 1933327e51cbSPeter Avalos (Edwin Groothuis) <edwin@mavetju.org> 1934327e51cbSPeter Avalos 1935327e51cbSPeter Avalos * correct cleanup in all cases; don't just close the file. 193679343712SPeter Avalos (Christos Zoulas) <christos@astron.com> 1937327e51cbSPeter Avalos 1938327e51cbSPeter Avalos * add gettext message catalogue support 1939327e51cbSPeter Avalos (Michael Piefel) <piefel@debian.org> 1940327e51cbSPeter Avalos 1941327e51cbSPeter Avalos * better printout for unreadable files 1942327e51cbSPeter Avalos (Michael Piefel) <piefel@debian.org> 1943327e51cbSPeter Avalos 1944327e51cbSPeter Avalos * compensate for missing MAXPATHLEN 1945327e51cbSPeter Avalos (Michael Piefel) <piefel@debian.org> 1946327e51cbSPeter Avalos 1947327e51cbSPeter Avalos * add wide character string length computation 1948327e51cbSPeter Avalos (Michael Piefel) <piefel@debian.org> 1949327e51cbSPeter Avalos 1950327e51cbSPeter Avalos * Avoid infinite loops caused by bad elf alignments 1951327e51cbSPeter Avalos or name and description note sizes. Reported by 1952327e51cbSPeter Avalos (Mikael Magnusson) <mmikael@comhem.se> 1953327e51cbSPeter Avalos 195479343712SPeter Avalos2004-03-09 13:55 Christos Zoulas <christos@astron.com> 1955327e51cbSPeter Avalos 1956327e51cbSPeter Avalos * Fix possible memory leak on error and add missing regfree 1957327e51cbSPeter Avalos (Dmitry V. Levin) <ldv@altlinux.org> 1958327e51cbSPeter Avalos 195979343712SPeter Avalos2003-12-23 12:12 Christos Zoulas <christos@astron.com> 1960327e51cbSPeter Avalos 1961327e51cbSPeter Avalos * fix -k flag (Maciej W. Rozycki) 1962327e51cbSPeter Avalos 196379343712SPeter Avalos2003-11-18 14:10 Christos Zoulas <christos@astron.com> 1964327e51cbSPeter Avalos 1965327e51cbSPeter Avalos * Try to give us much info as possible on corrupt elf files. 1966327e51cbSPeter Avalos (Willy Tarreau) <willy@w.ods.org> 1967327e51cbSPeter Avalos * Updated python bindings (Brett Funderburg) 1968327e51cbSPeter Avalos <brettf@deepfile.com> 1969327e51cbSPeter Avalos 197079343712SPeter Avalos2003-11-11 15:03 Christos Zoulas <christos@astron.com> 1971327e51cbSPeter Avalos 1972327e51cbSPeter Avalos * Include file.h first, because it includes config.h 1973327e51cbSPeter Avalos breaks largefile test macros otherwise. 1974327e51cbSPeter Avalos (Paul Eggert <eggert@CS.UCLA.EDU> via 1975327e51cbSPeter Avalos Lars Hecking <lhecking@nmrc.ie>) 1976327e51cbSPeter Avalos 197779343712SPeter Avalos2003-10-14 21:39 Christos Zoulas <christos@astron.com> 1978327e51cbSPeter Avalos 1979327e51cbSPeter Avalos * Python bindings (Brett Funderburg) <brettf@deepfile.com> 1980327e51cbSPeter Avalos * Don't lookup past the end of the buffer 1981327e51cbSPeter Avalos (Chad Hanson) <chanson@tcs-sec.com> 1982327e51cbSPeter Avalos * Add MAGIC_ERROR and api on magic_errno() 1983327e51cbSPeter Avalos 198479343712SPeter Avalos2003-10-08 12:40 Christos Zoulas <christos@astron.com> 1985327e51cbSPeter Avalos 1986327e51cbSPeter Avalos * handle error conditions from compile as fatal 1987327e51cbSPeter Avalos (Antti Kantee) <pooka@netbsd.org> 1988327e51cbSPeter Avalos * handle magic filename parsing sanely 1989327e51cbSPeter Avalos * more magic fixes. 1990327e51cbSPeter Avalos * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 1991327e51cbSPeter Avalos * describe magic file handling 1992327e51cbSPeter Avalos (Bryan Henderson) <bryanh@giraffe-data.com> 1993327e51cbSPeter Avalos 199479343712SPeter Avalos2003-09-12 15:09 Christos Zoulas <christos@astron.com> 1995327e51cbSPeter Avalos 1996327e51cbSPeter Avalos * update magic files. 1997327e51cbSPeter Avalos * remove largefile support from file.h; it breaks things on most OS's 1998327e51cbSPeter Avalos 199979343712SPeter Avalos2003-08-10 10:25 Christos Zoulas <christos@astron.com> 2000327e51cbSPeter Avalos 2001327e51cbSPeter Avalos * fix unmapping'ing of mmaped files. 2002327e51cbSPeter Avalos 200379343712SPeter Avalos2003-07-10 12:03 Christos Zoulas <christos@astron.com> 2004327e51cbSPeter Avalos 2005327e51cbSPeter Avalos * don't exit with -1 on error; always exit 1 (Marty Leisner) 2006327e51cbSPeter Avalos * restore utimes code. 2007327e51cbSPeter Avalos 200879343712SPeter Avalos2003-06-10 17:03 Christos Zoulas <christos@astron.com> 2009327e51cbSPeter Avalos 2010327e51cbSPeter Avalos * make sure we don't access uninitialized memory. 2011327e51cbSPeter Avalos * pass lint 2012327e51cbSPeter Avalos * #ifdef __cplusplus in magic.h 2013327e51cbSPeter Avalos 201479343712SPeter Avalos2003-05-25 19:23 Christos Zoulas <christos@astron.com> 2015327e51cbSPeter Avalos 2016327e51cbSPeter Avalos * rename cvs magic file to revision to deal with 2017327e51cbSPeter Avalos case insensitive filesystems. 2018327e51cbSPeter Avalos 201979343712SPeter Avalos2003-05-23 17:03 Christos Zoulas <christos@astron.com> 2020327e51cbSPeter Avalos 2021327e51cbSPeter Avalos * documentation fixes from Michael Piefel <piefel@debian.org> 2022327e51cbSPeter Avalos * magic fixes (various) 2023327e51cbSPeter Avalos * revert basename magic in .mgc name determination 2024327e51cbSPeter Avalos * buffer protection in uncompress, 2025327e51cbSPeter Avalos signness issues, 2026327e51cbSPeter Avalos close files 2027327e51cbSPeter Avalos Maciej W. Rozycki <macro@ds2.pg.gda.pl 2028327e51cbSPeter Avalos 202979343712SPeter Avalos2003-04-21 20:12 Christos Zoulas <christos@astron.com> 2030327e51cbSPeter Avalos 2031327e51cbSPeter Avalos * fix zsh magic 2032327e51cbSPeter Avalos 203379343712SPeter Avalos2003-04-04 16:59 Christos Zoulas <christos@astron.com> 2034327e51cbSPeter Avalos 2035327e51cbSPeter Avalos * fix operand sort order in string. 2036327e51cbSPeter Avalos 203779343712SPeter Avalos2003-04-02 17:30 Christos Zoulas <christos@astron.com> 2038327e51cbSPeter Avalos 2039327e51cbSPeter Avalos * cleanup namespace in magic.h 2040327e51cbSPeter Avalos 204179343712SPeter Avalos2003-04-02 13:50 Christos Zoulas <christos@astron.com> 2042327e51cbSPeter Avalos 2043327e51cbSPeter Avalos * Magic additions (Alex Ott) 2044327e51cbSPeter Avalos * Fix bug that broke VPATH compilation (Peter Breitenlohner) 2045327e51cbSPeter Avalos 204679343712SPeter Avalos2003-03-28 16:03 Christos Zoulas <christos@astron.com> 2047327e51cbSPeter Avalos 2048327e51cbSPeter Avalos * remove packed attribute from magic struct. 2049327e51cbSPeter Avalos * make the magic struct properly aligned. 2050327e51cbSPeter Avalos * bump version number of compiled files to 2. 2051327e51cbSPeter Avalos 205279343712SPeter Avalos2003-03-27 13:10 Christos Zoulas <christos@astron.com> 2053327e51cbSPeter Avalos 2054327e51cbSPeter Avalos * separate tar detection and run it before softmagic. 2055327e51cbSPeter Avalos * fix reversed symlink test. 2056327e51cbSPeter Avalos * fix version printing. 2057327e51cbSPeter Avalos * make separator a string instead of a char. 2058327e51cbSPeter Avalos * update manual page and sort options. 2059327e51cbSPeter Avalos 206079343712SPeter Avalos2003-03-26 11:00 Christos Zoulas <christos@astron.com> 2061327e51cbSPeter Avalos 2062327e51cbSPeter Avalos * Pass lint 2063327e51cbSPeter Avalos * make NULL in magic_file mean stdin 2064327e51cbSPeter Avalos * Fix "-" argument to file to pass NULL to magic_file 2065327e51cbSPeter Avalos * avoid pointer casts by using memcpy 2066327e51cbSPeter Avalos * rename magic_buf -> magic_buffer 2067327e51cbSPeter Avalos * keep only the first error 2068327e51cbSPeter Avalos * manual page: new sentence, new line 2069327e51cbSPeter Avalos * fix typo in api function (magic_buf -> magic_buffer) 2070