ChangeLog revision 328874
1328874Seadler2017-09-02 11:53 Christos Zoulas <christos@zoulas.com> 2328874Seadler 3328874Seadler * release 5.32 4328874Seadler 5328874Seadler2017-08-28 16:37 Christos Zoulas <christos@zoulas.com> 6328874Seadler 7328874Seadler * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski) 8328874Seadler 9328874Seadler2017-08-27 03:55 Christos Zoulas <christos@zoulas.com> 10328874Seadler 11328874Seadler * Fix always true condition (Thomas Jarosch) 12328874Seadler 13328874Seadler2017-05-24 17:30 Christos Zoulas <christos@zoulas.com> 14328874Seadler 15328874Seadler * pickier parsing of numeric values in magic files. 16328874Seadler 17328874Seadler2017-05-23 17:55 Christos Zoulas <christos@zoulas.com> 18328874Seadler 19328874Seadler * PR/615 add magic_getflags() 20328874Seadler 21328874Seadler2017-05-23 13:55 Christos Zoulas <christos@zoulas.com> 22328874Seadler 23328874Seadler * release 5.31 24328874Seadler 25328874Seadler2017-03-17 20:32 Christos Zoulas <christos@zoulas.com> 26328874Seadler 27328874Seadler * remove trailing spaces from magic files 28328874Seadler * refactor is_tar 29328874Seadler * better bounds checks for cdf 30328874Seadler 31328874Seadler2017-02-10 12:24 Christos Zoulas <christos@zoulas.com> 32328874Seadler 33328874Seadler * release 5.30 34328874Seadler 35328874Seadler2017-02-07 23:27 Christos Zoulas <christos@zoulas.com> 36328874Seadler 37328874Seadler * If we exceeded the offset in a search return no match 38328874Seadler (Christoph Biedl) 39328874Seadler * Be more lenient on corrupt CDF files (Christoph Biedl) 40328874Seadler 41328874Seadler2017-02-04 16:46 Christos Zoulas <christos@zoulas.com> 42328874Seadler 43328874Seadler * pacify ubsan sign extension (oss-fuzz/524) 44328874Seadler 45328874Seadler2017-02-01 12:42 Christos Zoulas <christos@zoulas.com> 46328874Seadler 47328874Seadler * off by one in cdf parsing (PR/593) 48328874Seadler * report debugging sections in elf (PR/591) 49328874Seadler 50328874Seadler2016-11-06 10:52 Christos Zoulas <christos@zoulas.com> 51328874Seadler 52328874Seadler * Allow @@@ in extensions 53328874Seadler * Add missing overflow check in der magic (Jonas Wagner) 54328874Seadler 55309847Sdelphij2016-10-25 10:40 Christos Zoulas <christos@zoulas.com> 56309847Sdelphij 57328874Seadler * release 5.29 58309847Sdelphij 59309847Sdelphij2016-10-24 11:20 Christos Zoulas <christos@zoulas.com> 60309847Sdelphij 61309847Sdelphij * der getlength overflow (Jonas Wagner) 62309847Sdelphij * multiple magic file load failure (Christoph Biedl) 63309847Sdelphij 64309847Sdelphij2016-10-17 11:26 Christos Zoulas <christos@zoulas.com> 65309847Sdelphij 66309847Sdelphij * CDF parsing improvements (Guy Helmer) 67309847Sdelphij 68309847Sdelphij2016-07-20 7:26 Christos Zoulas <christos@zoulas.com> 69309847Sdelphij 70309847Sdelphij * Add support for signed indirect offsets 71309847Sdelphij 72309847Sdelphij2016-07-18 7:41 Christos Zoulas <christos@zoulas.com> 73309847Sdelphij 74309847Sdelphij * cat /dev/null | file - should print empty (Christoph Biedl) 75309847Sdelphij 76309847Sdelphij2016-07-05 15:20 Christos Zoulas <christos@zoulas.com> 77309847Sdelphij 78309847Sdelphij * Bump string size from 64 to 96. 79309847Sdelphij 80309847Sdelphij2016-06-13 20:20 Christos Zoulas <christos@zoulas.com> 81309847Sdelphij 82309847Sdelphij * PR/556: Fix separators on annotations. 83309847Sdelphij 84302221Sdelphij2016-06-13 19:40 Christos Zoulas <christos@zoulas.com> 85302221Sdelphij 86302221Sdelphij * release 5.28 87302221Sdelphij * fix leak on allocation failure 88302221Sdelphij 89302221Sdelphij2016-06-01 1:20 Christos Zoulas <christos@zoulas.com> 90302221Sdelphij 91302221Sdelphij * PR/555: Avoid overflow for offset > nbytes 92302221Sdelphij * PR/550: Segv on DER parsing: 93302221Sdelphij - use the correct variable for length 94302221Sdelphij - set offset to 0 on failure. 95302221Sdelphij 96299736Sdelphij2016-05-13 12:00 Christos Zoulas <christos@zoulas.com> 97299736Sdelphij 98299736Sdelphij * release 5.27 99299736Sdelphij 100299736Sdelphij2016-04-18 9:35 Christos Zoulas <christos@zoulas.com> 101299736Sdelphij 102299736Sdelphij * Errors comparing DER entries or computing offsets 103299736Sdelphij are just indications of malformed non-DER files. 104299736Sdelphij Don't print them. 105299736Sdelphij * Offset comparison was off-by-one. 106299736Sdelphij * Fix compression code (Werner Fink) 107299736Sdelphij * Put new bytes constant in the right file (not the generated one) 108299736Sdelphij 109298192Sdelphij2016-04-16 18:34 Christos Zoulas <christos@zoulas.com> 110298192Sdelphij 111299736Sdelphij * release 5.26 112298192Sdelphij 113298192Sdelphij2016-03-31 13:50 Christos Zoulas <christos@zoulas.com> 114298192Sdelphij 115298192Sdelphij * make the number of bytes read from files configurable. 116298192Sdelphij 117298192Sdelphij2016-03-21 13:40 Christos Zoulas <christos@zoulas.com> 118298192Sdelphij 119298192Sdelphij * Add bounds checks for DER code (discovered by Thomas Jarosch) 120298192Sdelphij * Change indirect recursion limit to indirect use count and 121298192Sdelphij bump from 15 to 50 to prevent abuse. 122298192Sdelphij 123298192Sdelphij2016-03-13 20:39 Christos Zoulas <christos@zoulas.com> 124298192Sdelphij 125298192Sdelphij * Add -00 which prints filename\0description\0 126298192Sdelphij 127298192Sdelphij2016-03-01 13:28 Christos Zoulas <christos@zoulas.com> 128298192Sdelphij 129298192Sdelphij * Fix ID3 indirect parsing 130298192Sdelphij 131298192Sdelphij2016-01-19 10:18 Christos Zoulas <christos@zoulas.com> 132298192Sdelphij 133298192Sdelphij * add DER parsing capability 134298192Sdelphij 135298192Sdelphij2015-11-13 10:35 Christos Zoulas <christos@zoulas.com> 136298192Sdelphij 137298192Sdelphij * provide dprintf(3) for the OS's that don't have it. 138298192Sdelphij 139298192Sdelphij2015-11-11 16:25 Christos Zoulas <christos@zoulas.com> 140298192Sdelphij 141298192Sdelphij * redo the compression code report decompression errors 142298192Sdelphij 143298192Sdelphij2015-11-10 23:25 Christos Zoulas <christos@zoulas.com> 144298192Sdelphij 145298192Sdelphij * REG_STARTEND code is not working as expected, delete it. 146298192Sdelphij 147298192Sdelphij2015-11-09 16:05 Christos Zoulas <christos@zoulas.com> 148298192Sdelphij 149298192Sdelphij * Add zlib support if we have it. 150298192Sdelphij 151298192Sdelphij2015-11-05 11:22 Christos Zoulas <christos@zoulas.com> 152298192Sdelphij 153298192Sdelphij * PR/492: compression forking was broken with magic_buffer. 154298192Sdelphij 155288143Sdelphij2015-09-16 9:50 Christos Zoulas <christos@zoulas.com> 156288143Sdelphij 157288143Sdelphij * release 5.25 158288143Sdelphij 159288143Sdelphij2015-09-11 13:25 Christos Zoulas <christos@zoulas.com> 160288143Sdelphij 161288143Sdelphij * add a limit to the length of regex searches 162288143Sdelphij 163288143Sdelphij2015-09-08 9:50 Christos Zoulas <christos@zoulas.com> 164288143Sdelphij 165288143Sdelphij * fix problems with --parameter (Christoph Biedl) 166288143Sdelphij 167288143Sdelphij2015-07-11 10:35 Christos Zoulas <christos@zoulas.com> 168288143Sdelphij 169288143Sdelphij * Windows fixes PR/466 (Jason Hood) 170288143Sdelphij 171287453Sdelphij2015-07-09 10:35 Christos Zoulas <christos@zoulas.com> 172287453Sdelphij 173287453Sdelphij * release 5.24 174287453Sdelphij 175284277Sdelphij2015-06-11 8:52 Christos Zoulas <christos@zoulas.com> 176284237Sdelphij 177284277Sdelphij * redo long option encoding to fix off-by-one in 5.23 178284277Sdelphij 179284237Sdelphij2015-06-10 13:50 Christos Zoulas <christos@zoulas.com> 180284237Sdelphij 181284237Sdelphij * release 5.23 182284237Sdelphij 183284237Sdelphij2015-06-09 16:10 Christos Zoulas <christos@zoulas.com> 184284237Sdelphij 185284237Sdelphij * Fix issue with regex range for magic with offset 186284237Sdelphij * Always return true from mget with USE (success to mget not match 187284237Sdelphij indication). Fixes mime evaluation after USE magic 188284237Sdelphij * PR/459: Don't insert magic entries to the list if there are parsing 189284237Sdelphij errors for them. 190284237Sdelphij 191284237Sdelphij2015-06-03 16:00 Christos Zoulas <christos@zoulas.com> 192284237Sdelphij 193284237Sdelphij * PR/455: Add utf-7 encoding 194284237Sdelphij 195284237Sdelphij2015-06-03 14:30 Christos Zoulas <christos@zoulas.com> 196284237Sdelphij 197284237Sdelphij * PR/455: Implement -Z, look inside, but don't report on compression 198284237Sdelphij * PR/454: Fix allocation error on bad magic. 199284237Sdelphij 200284237Sdelphij2015-05-29 10:30 Christos Zoulas <christos@zoulas.com> 201284237Sdelphij 202284237Sdelphij * handle MAGIC_CONTINUE everywhere, not just in softmagic 203284237Sdelphij 204284237Sdelphij2015-05-21 14:30 Christos Zoulas <christos@zoulas.com> 205284237Sdelphij 206284237Sdelphij * don't print descriptions for NAME types when mime. 207284237Sdelphij 208284237Sdelphij2015-04-09 15:59 Christos Zoulas <christos@zoulas.com> 209284237Sdelphij 210284237Sdelphij * Add --extension to list the known extensions for this file type 211284237Sdelphij Idea by Andrew J Roazen 212284237Sdelphij 213284237Sdelphij2015-02-14 12:23 Christos Zoulas <christos@zoulas.com> 214284237Sdelphij 215284237Sdelphij * Bump file search buffer size to 1M. 216284237Sdelphij 217284237Sdelphij2015-01-09 14:35 Christos Zoulas <christos@zoulas.com> 218284237Sdelphij 219284237Sdelphij * Fix multiple issues with date formats reported by Christoph Biedl: 220284237Sdelphij - T_LOCAL meaning was reversed 221284237Sdelphij - Arithmetic did not work 222284237Sdelphij Also stop adjusting daylight savings for gmt printing. 223284237Sdelphij 224284237Sdelphij2015-01-05 13:00 Christos Zoulas <christos@zoulas.com> 225284237Sdelphij 226284237Sdelphij * PR/411: Fix memory corruption from corrupt cdf file. 227284237Sdelphij 228276577Sdelphij2015-01-02 15:15 Christos Zoulas <christos@zoulas.com> 229276577Sdelphij 230276577Sdelphij * release 5.22 231276577Sdelphij 232276577Sdelphij2015-01-01 12:01 Christos Zoulas <christos@zoulas.com> 233276577Sdelphij 234276577Sdelphij * add indirect relative for TIFF/Exif 235276577Sdelphij 236276577Sdelphij2014-12-16 18:10 Christos Zoulas <christos@zoulas.com> 237276577Sdelphij 238276577Sdelphij * restructure elf note printing to avoid repeated messages 239276577Sdelphij * add note limit, suggested by Alexander Cherepanov 240276577Sdelphij 241276577Sdelphij2014-12-16 16:53 Christos Zoulas <christos@zoulas.com> 242276577Sdelphij 243276577Sdelphij * Bail out on partial pread()'s (Alexander Cherepanov) 244276577Sdelphij * Fix incorrect bounds check in file_printable (Alexander Cherepanov) 245276577Sdelphij 246276577Sdelphij2014-12-11 20:01 Christos Zoulas <christos@zoulas.com> 247276577Sdelphij 248276577Sdelphij * PR/405: ignore SIGPIPE from uncompress programs 249276577Sdelphij * change printable -> file_printable and use it in 250276577Sdelphij more places for safety 251276577Sdelphij * in ELF, instead of "(uses dynamic libraries)" when PT_INTERP 252276577Sdelphij is present print the interpreter name. 253276577Sdelphij 254275698Sdelphij2014-12-10 20:01 Christos Zoulas <christos@zoulas.com> 255275698Sdelphij 256275698Sdelphij * release 5.21 257275698Sdelphij 258275698Sdelphij2014-11-27 18:40 Christos Zoulas <christos@zoulas.com> 259275698Sdelphij 260275698Sdelphij * Allow setting more parameters from the command line. 261275698Sdelphij * Split name/use and indirect magic recursion limits. 262275698Sdelphij 263275698Sdelphij2014-11-27 11:12 Christos Zoulas <christos@zoulas.com> 264275698Sdelphij 265275698Sdelphij * Adjust ELF parameters and the default recursion 266275698Sdelphij level. 267275698Sdelphij * Allow setting the recursion level dynamically. 268275698Sdelphij 269275698Sdelphij2014-11-24 8:55 Christos Zoulas <christos@zoulas.com> 270275698Sdelphij 271275698Sdelphij * The following fixes resulted from Thomas Jarosch's fuzzing 272275698Sdelphij tests that revealed severe performance issues on pathological 273275698Sdelphij input: 274275698Sdelphij - limit number of elf program and sections processing 275275698Sdelphij - abort elf note processing quickly 276275698Sdelphij - reduce the number of recursion levels from 20 to 10 277275698Sdelphij - preserve error messages in indirect magic handling 278275698Sdelphij 279276577Sdelphij This is tracked as CVE-2014-8116 and CVE-2014-8117 280276577Sdelphij 281275698Sdelphij2014-11-12 10:30 Christos Zoulas <christos@zoulas.com> 282275698Sdelphij 283275698Sdelphij * fix bogus free in the user buffer case. 284275698Sdelphij 285275698Sdelphij2014-11-11 12:35 Christos Zoulas <christos@zoulas.com> 286275698Sdelphij 287275698Sdelphij * fix out of bounds read for pascal strings 288275698Sdelphij * fix memory leak (not freeing the head of each mlist) 289275698Sdelphij 290275698Sdelphij2014-11-07 10:25 Christos Zoulas <christos@zoulas.com> 291275698Sdelphij 292275698Sdelphij * When printing strings from a file, convert them to printable 293275698Sdelphij on a byte by byte basis, so that we don't get issues with 294275698Sdelphij locale's trying to interpret random byte streams as UTF-8 and 295275698Sdelphij having printf error out with EILSEQ. 296275698Sdelphij 297275698Sdelphij2014-10-17 11:48 Christos Zoulas <christos@zoulas.com> 298275698Sdelphij 299275698Sdelphij * fix bounds in note reading (Francisco Alonso / Red Hat) 300275698Sdelphij 301275698Sdelphij2014-10-11 15:02 Christos Zoulas <christos@zoulas.com> 302275698Sdelphij 303275698Sdelphij * fix autoconf glue for setlocale and locale_t; some OS's 304275698Sdelphij have locale_t in xlocale.h 305275698Sdelphij 306275698Sdelphij2014-10-10 15:01 Christos Zoulas <christos@zoulas.com> 307275698Sdelphij 308275698Sdelphij * release 5.20 309275698Sdelphij 310275698Sdelphij2014-08-17 10:01 Christos Zoulas <christos@zoulas.com> 311275698Sdelphij 312275698Sdelphij * recognize encrypted CDF documents 313275698Sdelphij 314275698Sdelphij2014-08-04 9:18 Christos Zoulas <christos@zoulas.com> 315275698Sdelphij 316275698Sdelphij * add magic_load_buffers from Brooks Davis 317275698Sdelphij 318275698Sdelphij2014-07-24 16:40 Christos Zoulas <christos@zoulas.com> 319275698Sdelphij 320275698Sdelphij * add thumbs.db support 321275698Sdelphij 322267897Sdelphij2014-06-12 12:28 Christos Zoulas <christos@zoulas.com> 323267897Sdelphij 324267897Sdelphij * release 5.19 325267897Sdelphij 326267897Sdelphij2014-06-09 9:04 Christos Zoulas <christos@zoulas.com> 327267897Sdelphij 328267897Sdelphij * Misc buffer overruns and missing buffer size tests in cdf parsing 329267897Sdelphij (Francisco Alonso, Jan Kaluza) 330267897Sdelphij 331267897Sdelphij2014-06-02 14:50 Christos Zoulas <christos@zoulas.com> 332267897Sdelphij 333267897Sdelphij * Enforce limit of 8K on regex searches that have no limits 334267897Sdelphij * Allow the l modifier for regex to mean line count. Default 335267897Sdelphij to byte count. If line count is specified, assume a max 336267897Sdelphij of 80 characters per line to limit the byte count. 337267897Sdelphij * Don't allow conversions to be used for dates, allowing 338267897Sdelphij the mask field to be used as an offset. 339267897Sdelphij 340267897Sdelphij2014-05-30 12:51 Christos Zoulas <christos@zoulas.com> 341267897Sdelphij 342267897Sdelphij * Make the range operator limit the length of the 343267897Sdelphij regex search. 344267897Sdelphij 345267897Sdelphij2014-05-14 19:23 Christos Zoulas <christos@zoulas.com> 346267897Sdelphij 347267897Sdelphij * PR/347: Windows fixes 348267897Sdelphij * PR/352: Hangul word processor recognition 349267897Sdelphij * PR/354: Encoding irregularities in text files 350267897Sdelphij 351267897Sdelphij2014-05-06 6:12 Christos Zoulas <christos@zoulas.com> 352267897Sdelphij 353267897Sdelphij * Fix uninitialized title in CDF files (Jan Kaluza) 354267897Sdelphij 355267897Sdelphij2014-05-04 14:55 Christos Zoulas <christos@zoulas.com> 356267897Sdelphij 357267897Sdelphij * PR/351: Fix compilation of empty files 358267897Sdelphij 359267897Sdelphij2014-04-30 17:39 Christos Zoulas <christos@zoulas.com> 360267897Sdelphij 361267897Sdelphij * Fix integer formats: We don't specify 'l' or 362267897Sdelphij 'h' and 'hh' specifiers anymore, only 'll' for 363267897Sdelphij quads and nothing for the rest. This is so that 364267897Sdelphij magic writing is simpler. 365267897Sdelphij 366267897Sdelphij2014-04-01 15:25 Christos Zoulas <christos@zoulas.com> 367267897Sdelphij 368267897Sdelphij * PR/341: Jan Kaluza, fix memory leak 369267897Sdelphij * PR/342: Jan Kaluza, fix out of bounds read 370267897Sdelphij 371267897Sdelphij2014-03-28 15:25 Christos Zoulas <christos@zoulas.com> 372267897Sdelphij 373267897Sdelphij * Fix issue with long formats not matching fmtcheck 374267897Sdelphij 375267897Sdelphij2014-03-26 11:25 Christos Zoulas <christos@zoulas.com> 376267897Sdelphij 377267897Sdelphij * release 5.18 378267897Sdelphij 379267897Sdelphij2014-03-15 17:45 Christos Zoulas <christos@zoulas.com> 380267897Sdelphij 381267897Sdelphij * add fmtcheck(3) for those who don't have it 382267897Sdelphij 383267897Sdelphij2014-03-14 15:12 Christos Zoulas <christos@zoulas.com> 384267897Sdelphij 385267897Sdelphij * prevent mime entries from being attached to magic 386267897Sdelphij entries with no descriptions 387267897Sdelphij 388267897Sdelphij * adjust magic strength for regex type 389267897Sdelphij 390267897Sdelphij * remove superfluous ascmagic with encoding test 391267897Sdelphij 392267897Sdelphij2014-03-06 12:01 Christos Zoulas <christos@zoulas.com> 393267897Sdelphij 394267897Sdelphij * fix regression fix echo -ne "\012\013\014" | file -i - 395267897Sdelphij which printed "binary" instead of "application/octet-stream" 396267897Sdelphij 397267897Sdelphij * add size_t overflow check for magic file size 398267897Sdelphij 399267897Sdelphij2014-02-27 16:01 Christos Zoulas <christos@zoulas.com> 400267897Sdelphij 401267897Sdelphij * experimental support for matching with CFD CLSID 402267897Sdelphij 403267897Sdelphij2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) 404267897Sdelphij 405267897Sdelphij * Cache old LC_CTYPE locale before setting it to "C", so 406267897Sdelphij we can use it to restore LC_CTYPE instead of asking 407267897Sdelphij setlocale() to scan the environment variables. 408267897Sdelphij 409267897Sdelphij2014-02-12 18:21 Christos Zoulas <christos@zoulas.com> 410267897Sdelphij 411267897Sdelphij * Count recursion levels through indirect magic 412267897Sdelphij 413267897Sdelphij2014-02-11 10:40 Christos Zoulas <christos@zoulas.com> 414267897Sdelphij 415267897Sdelphij * Prevent infinite recursion on files with indirect offsets of 0 416267897Sdelphij 417267897Sdelphij2014-01-30 21:00 Christos Zoulas <christos@zoulas.com> 418267897Sdelphij 419267897Sdelphij * Add -E flag that makes file print filesystem errors to stderr 420267897Sdelphij and exit. 421267897Sdelphij 422267897Sdelphij2014-01-08 17:20 Christos Zoulas <christos@zoulas.com> 423267897Sdelphij 424267897Sdelphij * mime printing could print results from multiple magic entries 425267897Sdelphij if there were multiple matches. 426267897Sdelphij * in some cases overflow was not detected when computing offsets 427267897Sdelphij in softmagic. 428267897Sdelphij 429267897Sdelphij2013-12-05 12:00 Christos Zoulas <christos@zoulas.com> 430267897Sdelphij 431267897Sdelphij * use strcasestr() to for cdf strings 432267897Sdelphij * reset to the "C" locale while doing regex operations, or case 433267897Sdelphij insensitive comparisons; this is provisional 434267897Sdelphij 435267897Sdelphij2013-11-19 20:10 Christos Zoulas <christos@zoulas.com> 436267897Sdelphij 437267897Sdelphij * always leave magic file loaded, don't unload for magic_check, etc. 438267897Sdelphij * fix default encoding to binary instead of unknown which broke recently 439267897Sdelphij * handle empty and one byte files, less specially so that 440267897Sdelphij --mime-encoding does not break completely. 441267897Sdelphij ` 442267897Sdelphij2013-11-06 14:40 Christos Zoulas <christos@zoulas.com> 443267897Sdelphij 444328874Seadler * fix erroneous non-zero exit code from non-existent file and message 445267897Sdelphij 446267897Sdelphij2013-10-29 14:25 Christos Zoulas <christos@zoulas.com> 447267897Sdelphij 448267897Sdelphij * add CDF MSI file detection (Guy Helmer) 449267897Sdelphij 450267897Sdelphij2013-09-03 11:56 Christos Zoulas <christos@zoulas.com> 451267897Sdelphij 452267897Sdelphij * Don't mix errors and regular output if there was an error 453267897Sdelphij * in magic_descriptor() don't close the file and try to restore 454267897Sdelphij its position 455267897Sdelphij 456267897Sdelphij2013-05-30 17:25 Christos Zoulas <christos@zoulas.com> 457267897Sdelphij 458267897Sdelphij * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 459267897Sdelphij 460267897Sdelphij2013-05-28 17:25 Christos Zoulas <christos@zoulas.com> 461267897Sdelphij 462267897Sdelphij * Fix spacing issues in softmagic and elf (Jan Kaluza) 463267897Sdelphij 464267897Sdelphij2013-05-02 18:00 Christos Zoulas <christos@zoulas.com> 465267897Sdelphij 466267897Sdelphij * Fix segmentation fault with multiple magic_load commands. 467267897Sdelphij 468267897Sdelphij2013-04-22 11:20 Christos Zoulas <christos@zoulas.com> 469267897Sdelphij 470267897Sdelphij * The way "default" was implemented was not very useful 471267897Sdelphij because the "if something was printed at that level" 472267897Sdelphij was not easily controlled by the user, and the format 473267897Sdelphij was bound to a string which is too restrictive. Add 474267897Sdelphij a "clear" for that level keyword and make "default" 475267897Sdelphij void. This way one can do: 476267897Sdelphij 477267897Sdelphij >>13 clear x 478267897Sdelphij >>13 lelong 1 foo 479267897Sdelphij >>13 lelong 2 bar 480267897Sdelphij >>13 default x 481267897Sdelphij >>>13 lelong x unknown %x 482267897Sdelphij 483267897Sdelphij2013-03-25 13:20 Christos Zoulas <christos@zoulas.com> 484267897Sdelphij 485267897Sdelphij * disallow strength setting in "name" entries 486267897Sdelphij 487267897Sdelphij2013-03-06 21:24 Christos Zoulas <christos@zoulas.com> 488267897Sdelphij 489267897Sdelphij * fix recursive magic separator printing 490267897Sdelphij 491267897Sdelphij2013-02-26 19:28 Christos Zoulas <christos@zoulas.com> 492267897Sdelphij 493267897Sdelphij * limit recursion level for mget 494267897Sdelphij * fix pread() related breakage in cdf 495267897Sdelphij * handle offsets properly in recursive "use" 496267897Sdelphij 497267897Sdelphij2013-02-18 10:39 Christos Zoulas <christos@zoulas.com> 498267897Sdelphij 499267897Sdelphij * add elf reading of debug info to determine if file is stripped 500267897Sdelphij (Jan Kaluza) 501267897Sdelphij * use pread() 502267897Sdelphij 503267897Sdelphij2013-01-25 18:05 Christos Zoulas <christos@zoulas.com> 504267897Sdelphij 505267897Sdelphij * change mime description size from 64 to 80 to accommodate OOXML. 506267897Sdelphij 507267897Sdelphij2013-01-11 14:50 Christos Zoulas <christos@zoulas.com> 508267897Sdelphij 509267897Sdelphij * Warn about inconsistent continuation levels. 510267897Sdelphij * Change fsmagic to add a space after it prints. 511267897Sdelphij 512267897Sdelphij2013-01-10 21:00 Christos Zoulas <christos@zoulas.com> 513267897Sdelphij 514267897Sdelphij * Make getline public so that file can link against it. 515267897Sdelphij Perhaps it is better to rename it, or hide it differently. 516267897Sdelphij Fixes builds on platforms that do not provide it. 517267897Sdelphij 518267897Sdelphij2013-01-07 16:30 Christos Zoulas <christos@zoulas.com> 519267897Sdelphij 520267897Sdelphij * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document 521267897Sdelphij what long, int, short, etc is (Guy Harris) 522267897Sdelphij 523267897Sdelphij2013-01-06 11:20 Christos Zoulas <christos@zoulas.com> 524267897Sdelphij 525267897Sdelphij * add magic_version function and constant 526267897Sdelphij * Redo memory allocation and de-allocation. 527267897Sdelphij (prevents double frees on non mmap platforms) 528267897Sdelphij * Fix bug with name/use having to do with passing 529267897Sdelphij found state from the parent to the child and back. 530267897Sdelphij 531267897Sdelphij2012-12-19 8:47 Christos Zoulas <christos@zoulas.com> 532267897Sdelphij 533267897Sdelphij * Only print elf capabilities for archs we know (Jan Kaluza) 534267897Sdelphij 535267897Sdelphij2012-10-30 19:14 Christos Zoulas <christos@zoulas.com> 536267897Sdelphij 537267897Sdelphij * Add "name" and "use" file types in order to look 538267897Sdelphij inside mach-o files. 539267897Sdelphij 540267897Sdelphij2012-09-06 10:40 Christos Zoulas <christos@zoulas.com> 541267897Sdelphij 542267897Sdelphij * make --version exit 0 (Matthew Schultz) 543267897Sdelphij * add string/T (Jan Kaluza) 544267897Sdelphij 545267897Sdelphij2012-08-09 2:15 Christos Zoulas <christos@zoulas.com> 546267897Sdelphij 547267897Sdelphij * add z and t modifiers for our own vasprintf 548267897Sdelphij * search for $HOME/.magic.mgc if it is there first 549267897Sdelphij * fix reads from a pipe, and preserve errno 550267897Sdelphij 551267897Sdelphij2012-05-15 13:12 Christos Zoulas <christos@zoulas.com> 552267897Sdelphij 553267897Sdelphij * use ctime_r, asctime_r 554267897Sdelphij 555267897Sdelphij2012-04-06 17:18 Christos Zoulas <christos@zoulas.com> 556267897Sdelphij 557267897Sdelphij * Fixes for indirect offsets to handle apple disk formats 558267897Sdelphij 559267897Sdelphij2012-04-03 18:26 Christos Zoulas <christos@zoulas.com> 560267897Sdelphij 561267897Sdelphij * Add windows date field types 562267897Sdelphij * More info for windows shortcuts (incomplete) 563267897Sdelphij 564234449Sobrien2012-02-20 17:33 Christos Zoulas <christos@zoulas.com> 565234449Sobrien 566234449Sobrien * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann) 567234449Sobrien 568234449Sobrien2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com> 569234449Sobrien 570234449Sobrien * Support Tilera architectures (tile64, tilepro, tilegx). 571234449Sobrien 572234449Sobrien2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org> 573234449Sobrien 574234449Sobrien * Add magic for /usr/bin/env Perl scripts 575234449Sobrien * Weaken generic script magic to avoid clashing with 576234449Sobrien language-specific magic. 577234449Sobrien 578234449Sobrien2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org> 579234449Sobrien 580234449Sobrien * Simplify if (p) free(p) to free(p). 581234449Sobrien 582234449Sobrien2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org> 583234449Sobrien 584234449Sobrien * Remove hardwired token finding (names.h), turning it into soft 585234449Sobrien magic. Patterns are either anchored regexs or search/8192. English 586234449Sobrien language detection and PL/1 detection have been removed as they 587234449Sobrien were too fragile. -e tokens is still accepted for backwards 588234449Sobrien compatibility. 589234449Sobrien * Move 3ds patterns (which are commented out anyway) into autodesk 590234449Sobrien (they were, oddly, in c-lang). 591234449Sobrien 592234449Sobrien2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org> 593234449Sobrien 594234449Sobrien * Tweak strength of generic hash-bang detectors to be less than 595234449Sobrien specific ones. 596234449Sobrien * Make an inconsistent description of Python scripts consistent. 597234449Sobrien 598234449Sobrien2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org> 599234449Sobrien 600234449Sobrien * Fix minor error in file(1). 601234449Sobrien 602234449Sobrien2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org> 603234449Sobrien 604234449Sobrien * Fix issue #150 (I hope). 605234449Sobrien 606234449Sobrien2011-09-22 12:57 Christos Zoulas <christos@zoulas.com> 607234449Sobrien 608234449Sobrien * Python3 binding fixes from Kelly Anderson 609234449Sobrien 610234449Sobrien2011-09-20 11:32 Christos Zoulas <christos@zoulas.com> 611234449Sobrien 612234449Sobrien * If a string type magic entry is marked as text or binary 613234449Sobrien only match text files against text entries and binary 614234449Sobrien files against binary entries. 615234449Sobrien 616234449Sobrien2011-09-01 12:12 Christos Zoulas <christos@zoulas.com> 617234449Sobrien 618234449Sobrien * Don't wait for any subprocess, just the one we forked. 619234449Sobrien 620234449Sobrien2011-08-26 16:40 Christos Zoulas <christos@zoulas.com> 621234449Sobrien 622234449Sobrien * If the application name is not set in a cdf file, try to see 623234449Sobrien if it has a directory with the application name on it. 624234449Sobrien 625234449Sobrien2011-08-17 14:32 Christos Zoulas <christos@zoulas.com> 626234449Sobrien 627234449Sobrien * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza 628234449Sobrien 629234449Sobrien2011-08-14 09:03 Christos Zoulas <christos@zoulas.com> 630234449Sobrien 631234449Sobrien * Don't use variable string formats. 632234449Sobrien 633234449Sobrien2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org> 634234449Sobrien 635234449Sobrien * Fix detection of Zip files (Mantis #128). 636234449Sobrien * Make some minor improvements to file(1). 637234449Sobrien * Rename MIME types for filesystem objects for consistency with 638234449Sobrien xdg-utils. Typically this means that application/x-foo becomes 639234449Sobrien inode/foo, but some names also change slightly, e.g. 640234449Sobrien application/x-character-device becomes inode/chardevice. 641234449Sobrien 642234449Sobrien2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 643234449Sobrien 644234449Sobrien * fix mingw compilation (Abradoks) 645234449Sobrien 646234449Sobrien2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 647234449Sobrien 648234449Sobrien * remove patchlevel.h 649234449Sobrien * Fix read past allocated memory caused by double-incrementing 650234449Sobrien a pointer in a loop (reported by Roberto Maar) 651234449Sobrien 652234449Sobrien2011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 653234449Sobrien 654234449Sobrien * Fix cdf string buffer setting (Sven Anders) 655234449Sobrien 656234449Sobrien2011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 657234449Sobrien 658234449Sobrien * Eliminate MAXPATHLEN and use dynamic allocation for 659234449Sobrien path and file buffers. 660234449Sobrien 661234449Sobrien2011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 662234449Sobrien 663234449Sobrien * binary tests on magic entries with masks could spuriously 664234449Sobrien get converted to ascii. 665234449Sobrien 666234449Sobrien2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 667234449Sobrien 668234449Sobrien * Improve file.man (remove BUGS, present email addresses consistently). 669234449Sobrien 670234449Sobrien2011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 671234449Sobrien 672234449Sobrien * add lrzip support (from Ville Skytta) 673234449Sobrien 674234449Sobrien2011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 675234449Sobrien 676234449Sobrien * fix CDF bounds checking (Guy Helmer) 677234449Sobrien 678234449Sobrien2011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 679234449Sobrien 680234449Sobrien * add cdf_ctime() that prints a meaningful error when time cannot 681234449Sobrien be converted. 682234449Sobrien 683234449Sobrien2011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 684234449Sobrien 685234449Sobrien * help and version output to stdout. 686234449Sobrien 687234449Sobrien * When matching softmagic for ascii files, don't just print 688234449Sobrien the softmagic classification, keep going and print the 689234449Sobrien text classification too. This fixes broken troff files when 690234449Sobrien we moved them from keyword recognition to softmagic 691234449Sobrien (they stopped printing "with CRLF" etc.) 692234449Sobrien Reported by Doug McIlroy. 693234449Sobrien 694234449Sobrien2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 695234449Sobrien 696234449Sobrien * Fix two potential buffer overruns in apprentice_list. 697234449Sobrien 698234449Sobrien2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 699234449Sobrien 700234449Sobrien * New Python binding in pure Python. 701234449Sobrien * Update libmagic(3). 702234449Sobrien 703234449Sobrien2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 704234449Sobrien 705234449Sobrien * Fix Python bindings (including recent Python 3 compatibility 706234449Sobrien update). 707234449Sobrien 708234449Sobrien2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 709234449Sobrien 710234449Sobrien * magic/Makefile.am: make it easier to recover from magic build failures. 711234449Sobrien * Fix pstring length specifier parsing to avoid generating invalid 712234449Sobrien magic files. 713234449Sobrien * Add pstring length "J" (for "JPEG") to specify that the length 714234449Sobrien include itself. 715234449Sobrien * Fix JPEG comment parsing at last using pstring/HJ! 716234449Sobrien * Ignore section 5 man pages in doc/.cvsignore. 717234449Sobrien 718234449Sobrien2010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 719234449Sobrien 720234449Sobrien * Add pstring/BHhLl to specify the type of the length of pascal 721234449Sobrien strings. 722234449Sobrien 723234449Sobrien2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 724234449Sobrien 725234449Sobrien * Fix "-e soft": it was ignored when softmagic was called 726234449Sobrien during asciimagic. 727234449Sobrien * Improve comments and use "unsigned char" in tar.h/is_tar.c. 728234449Sobrien 729234449Sobrien2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 730234449Sobrien 731234449Sobrien * Make bug reporting addresses more visible. 732234449Sobrien 733234449Sobrien2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 734234449Sobrien 735234449Sobrien * Add tcl magic from Gustaf Neumann 736234449Sobrien 737234449Sobrien2010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 738234449Sobrien 739234449Sobrien * Fix the whitespace comparing code (Christopher Chittleborough) 740234449Sobrien 741234449Sobrien2010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 742234449Sobrien 743234449Sobrien * allow string/t to work (Jan Kaluza) 744234449Sobrien 745234449Sobrien2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 746234449Sobrien 747234449Sobrien * Apply some patches from Ubuntu and Fedora. 748234449Sobrien 749234449Sobrien2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 750234449Sobrien 751234449Sobrien * Apply all patches from Debian package 5.04-6 which have not 752234449Sobrien already been applied and are not Debian-specific. 753234449Sobrien 754234449Sobrien2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 755234449Sobrien 756234449Sobrien * Minor security fix to softmagic.c (don't use untrusted 757234449Sobrien string as printf format). 758234449Sobrien 759234449Sobrien2010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 760234449Sobrien 761234449Sobrien * MINGW32 portability from LRN 762234449Sobrien 763234449Sobrien * Don't warn about escaping magic regex chars when we are in a regex. 764234449Sobrien 765234449Sobrien2010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 766234449Sobrien 767234449Sobrien * Only try to print prpsinfo for core files. (Jan Kaluza) 768234449Sobrien 769234449Sobrien2010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 770234449Sobrien 771234449Sobrien * Try more elf offsets for Debian core files. (Arnaud Giersch) 772234449Sobrien 773234449Sobrien2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 774234449Sobrien 775234449Sobrien * Clarify which sort of CDF we mean. 776234449Sobrien 777234449Sobrien2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 778234449Sobrien 779234449Sobrien * Re-jig Zip file type magic so that unsupported special 780234449Sobrien Zip types (those with "mimetype" at offset 30) can be 781234449Sobrien recognized. 782234449Sobrien 783234449Sobrien2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 784234449Sobrien 785234449Sobrien * Add support for OCF (EPUB) files (application/epub+zip) 786234449Sobrien 787234449Sobrien2010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 788234449Sobrien 789234449Sobrien * Fix core-dump from unbound loop: 790234449Sobrien https://bugzilla.redhat.com/show_bug.cgi?id=533245 791234449Sobrien 792234449Sobrien2010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 793234449Sobrien 794234449Sobrien * print proper mime for crystal reports file 795234449Sobrien 796234449Sobrien * print the last summary information of a cdf document, not the 797234449Sobrien first so that nested documents print the right info 798234449Sobrien 799234449Sobrien2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 800234449Sobrien 801234449Sobrien * bring back some fixes from OpenBSD: 802234449Sobrien - make gcc2 builds file 803234449Sobrien - fix typos in a magic file comment 804234449Sobrien 805234449Sobrien2009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 806234449Sobrien 807234449Sobrien * ctime/asctime can return NULL on some OS's although 808234449Sobrien they should not (Toshit Antani) 809234449Sobrien 810234449Sobrien2009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 811234449Sobrien 812234449Sobrien * Centralize magic path handling routines and remove the 813234449Sobrien special-casing from file.c so that the python module for 814234449Sobrien example comes up with the same magic path (Fixes ~/.magic 815234449Sobrien handling) (from Gab) 816234449Sobrien 817234449Sobrien2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 818234449Sobrien 819234449Sobrien * When magic argument is a directory, read the files in 820234449Sobrien strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 821234449Sobrien 822234449Sobrien2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 823234449Sobrien 824234449Sobrien * Combine overlapping epoc and psion magic files into one (epoc). 825234449Sobrien 826234449Sobrien * Add some more EPOC MIME types. 827234449Sobrien 828234449Sobrien2009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 829234449Sobrien 830234449Sobrien * Fix 3 bugs (From Ian Darwin): 831234449Sobrien - file_showstr could move one past the end of the array 832234449Sobrien - parse_apple did not nul terminate the string in the overflow case 833234449Sobrien - parse_mime truncated the wrong string in the overflow case 834234449Sobrien 835234449Sobrien2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 836234449Sobrien 837234449Sobrien * Include Localstuff when compiling magic. 838234449Sobrien 839234449Sobrien2009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 840234449Sobrien 841234449Sobrien * Fix logic for including mygetopts.h 842234449Sobrien 843234449Sobrien * Make cdf.c compile again with debugging 844234449Sobrien 845234449Sobrien * Add the necessary field handling for crystal reports files to work 846234449Sobrien 847234449Sobrien2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 848234449Sobrien 849234449Sobrien * Stop "(if" identifying Lisp files, that's plain dumb! 850234449Sobrien 851234449Sobrien2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 852234449Sobrien 853234449Sobrien * Add a couple of missing MP3 MIME types. 854234449Sobrien 855234449Sobrien2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 856234449Sobrien 857234449Sobrien * Add full range of hash-bang tests for Python and Ruby. 858234449Sobrien 859234449Sobrien * Add MIME types for Python and Ruby scripts. 860234449Sobrien 861234449Sobrien2009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 862234449Sobrien 863234449Sobrien * off by one in parsing hw capabilities in elf 864234449Sobrien (Cheng Renquan) 865234449Sobrien 866234449Sobrien2009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 867234449Sobrien 868234449Sobrien * lint fixes and more from NetBSD 869234449Sobrien 870192350Sdelphij2009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 871192350Sdelphij 872192350Sdelphij * Avoid null dereference in cdf code (Drew Yao) 873192350Sdelphij 874192350Sdelphij * More cdf bounds checks and overflow checks 875192350Sdelphij 876192350Sdelphij2009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 877192350Sdelphij 878192350Sdelphij * Buffer overflow fixes from Drew Yao 879192350Sdelphij 880192350Sdelphij2009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 881192350Sdelphij 882192350Sdelphij * Fix more cdf lossage. All the documents I have 883192350Sdelphij right now print the correct information. 884192350Sdelphij 885192350Sdelphij2009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 886192350Sdelphij 887192350Sdelphij * don't print \012- separators in the same magic entry 888192350Sdelphij if it consists of multiple magic printing lines. 889192350Sdelphij 890192350Sdelphij2009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 891192350Sdelphij 892192350Sdelphij * Avoid file descriptor leak in compress code from 893192350Sdelphij (Daniel Novotny) 894192350Sdelphij 895192350Sdelphij2009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 896192350Sdelphij 897192350Sdelphij * Allow escaping of relation characters, so that we can say \^[A-Z] 898192350Sdelphij and the ^ is not eaten as a relation char. 899192350Sdelphij 900192350Sdelphij * Fix troff and fortran to their previous glory using 901192350Sdelphij regex. This was broken since their removel from ascmagic. 902192350Sdelphij 903192350Sdelphij2009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 904192350Sdelphij 905192350Sdelphij * don't use strlen in strndup() (Toby Peterson) 906192350Sdelphij 907192350Sdelphij2009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 908192350Sdelphij 909192350Sdelphij * avoid c99 syntax. 910192350Sdelphij 911192350Sdelphij2009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 912192350Sdelphij 913192350Sdelphij * make the cdf code use the buffer first if available, 914192350Sdelphij and then the fd code. 915192350Sdelphij 916192350Sdelphij2009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 917192350Sdelphij 918192350Sdelphij * look for struct option to determine if getopt.h is usable for IRIX. 919192350Sdelphij 920192350Sdelphij * sanitize cdf document strings 921192350Sdelphij 922192350Sdelphij2009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 923192350Sdelphij 924192350Sdelphij * fix OS/2 warnings. 925192350Sdelphij 926191771Sobrien2008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 927191771Sobrien 928191771Sobrien * fix initial offset calculation for non 4K sector files 929191771Sobrien 930191771Sobrien * add loop limits to avoid DoS attacks by constructing 931191771Sobrien looping sector references. 932191771Sobrien 933191771Sobrien2008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 934191771Sobrien 935191771Sobrien * fix memory botches on cdf file parsing. 936191771Sobrien 937191771Sobrien * exit with non-zero value for any error, not just for the last 938191771Sobrien file processed. 939191771Sobrien 940191771Sobrien2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 941191771Sobrien 942191771Sobrien * Replace all str{cpy,cat} functions with strl{cpy,cat} 943191771Sobrien * Ensure that strl{cpy,cat} are included in libmagic, 944191771Sobrien as needed. 945191771Sobrien 946191771Sobrien2008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 947191771Sobrien 948191771Sobrien * Handle ID3 format files. 949191771Sobrien 950191771Sobrien2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 951191771Sobrien 952191771Sobrien * Fix --mime, --mime-type and --mime-encoding under new scheme. 953191771Sobrien 954191771Sobrien * Rename "ascii" to "text" and add "encoding" test. 955191771Sobrien 956191771Sobrien * Return a precise ("utf-16le" or "utf-16be") MIME charset for 957191771Sobrien UTF-16. 958191771Sobrien 959191771Sobrien * Fix error in comment caused by automatic indentation adding 960191771Sobrien words! 961191771Sobrien 962191771Sobrien2008-11-06 10:35 Christos Zoulas <christos@astron.com> 963191771Sobrien 964191771Sobrien * use memchr instead of strchr because the string 965191771Sobrien might not be NUL terminated (Scott MacVicar) 966191771Sobrien 967191771Sobrien2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 968191771Sobrien 969191771Sobrien * Fix a printf with a non-literal format string. 970191771Sobrien 971191771Sobrien * Fix formatting and punctuation of help for "--apple". 972191771Sobrien 973191771Sobrien2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 974191771Sobrien 975191771Sobrien * Correct words counts in comments of struct magic. 976191771Sobrien 977191771Sobrien * Fix handle_annotation to allow both Apple and MIME types to be 978191771Sobrien printed, and to return correct code if MIME type is 979191771Sobrien printed (1, not 0) or if there's an error (-1 not 1). 980191771Sobrien 981191771Sobrien * Fix output of charset for MIME type (precede with semi-colon; 982191771Sobrien fixes Debian bug #501460). 983191771Sobrien 984191771Sobrien * Fix potential attacks via conversion specifications in magic 985191771Sobrien strings. 986191771Sobrien 987191771Sobrien * Add a FIXME for Debian bug #488562 (magic files should be 988191771Sobrien read in a defined order, by sorting the names). 989191771Sobrien 990191771Sobrien2008-10-18 16:45 Christos Zoulas <christos@astron.com> 991191771Sobrien 992191771Sobrien * Added APPLE file creator/type 993191771Sobrien 994191771Sobrien2008-10-12 10:20 Christos Zoulas <christos@astron.com> 995191771Sobrien 996191771Sobrien * Added CDF parsing 997191771Sobrien 998191771Sobrien2008-10-09 16:40 Christos Zoulas <christos@astron.com> 999191771Sobrien 1000191771Sobrien * filesystem and msdos patches (Joerg Jenderek) 1001191771Sobrien 1002191771Sobrien2008-10-09 13:20 Christos Zoulas <christos@astron.com> 1003191771Sobrien 1004191771Sobrien * correct --exclude documentation issues: remove troff and fortran 1005191771Sobrien and rename "token" to "tokens". (Randy McMurchy) 1006191771Sobrien 1007191771Sobrien2008-10-01 10:30 Christos Zoulas <christos@astron.com> 1008191771Sobrien 1009191771Sobrien * Read ~/.magic in addition to the default magic file not instead 1010191771Sobrien of, as documented in the man page. 1011191771Sobrien 1012191771Sobrien2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 1013191771Sobrien 1014191771Sobrien * Comment out graphviz patterns, as they match too many files. 1015191771Sobrien 1016186691Sobrien2008-08-30 12:54 Christos Zoulas <christos@astron.com> 1017175296Sobrien 1018186691Sobrien * Don't eat trailing \n in magic enties. 1019186691Sobrien 1020186691Sobrien * Cast defines to allow compilation using a c++ compiler. 1021186691Sobrien 1022191771Sobrien2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 1023191771Sobrien 1024191771Sobrien * Add text/x-lua MIME type for Lua scripts. 1025191771Sobrien 1026191771Sobrien * Escape { in regex in graphviz patterns. 1027191771Sobrien 1028186691Sobrien2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 1029186691Sobrien 1030186691Sobrien * Add MIME types for special files. 1031186691Sobrien 1032186691Sobrien * Use access to give more accurate information for files that 1033186691Sobrien can't be opened. 1034186691Sobrien 1035186691Sobrien * Add a TODO list. 1036186691Sobrien 1037186691Sobrien2008-07-02 11:15 Christos Zoulas <christos@astron.com> 1038186691Sobrien 1039186691Sobrien * add !:strength op to adjust magic strength (experimental) 1040186691Sobrien 1041186691Sobrien2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 1042186691Sobrien 1043186691Sobrien * Fix automake error in configure.ac. 1044186691Sobrien 1045186691Sobrien * Add MIME type for Psion Sketch files. 1046186691Sobrien 1047186691Sobrien2008-06-05 08:59 Christos Zoulas <christos@astron.com> 1048186691Sobrien 1049186691Sobrien * Don't print warnings about bad namesize in stripped 1050186691Sobrien binaries with PT_NOTE is still there, and the actual 1051186691Sobrien note is gone (Jakub Jelinek) 1052186691Sobrien 1053186691Sobrien2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 1054186691Sobrien 1055186691Sobrien * magic/Magdir/elf: 1056186691Sobrien Note invalid byte order for little-endian SPARC32PLUS. 1057186691Sobrien Add SPARC V9 vendor extensions and memory model. 1058186691Sobrien 1059186691Sobrien * src/elfclass.h: 1060186691Sobrien Pass target machine to doshn (for Solaris hardware capabilities). 1061186691Sobrien 1062186691Sobrien * src/readelf.c (doshn): 1063186691Sobrien Add support for Solaris hardware/software capabilities. 1064186691Sobrien 1065186691Sobrien * src/readelf.h: 1066186691Sobrien Ditto. 1067186691Sobrien 1068186691Sobrien * src/vasprintf.c (dispatch): 1069186691Sobrien Add support for ll modifier. 1070186691Sobrien 1071186691Sobrien2008-05-16 10:25 Christos Zoulas <christos@astron.com> 1072186691Sobrien 1073186691Sobrien * Fix compiler warnings. 1074186691Sobrien 1075186691Sobrien * remove stray printf, and fix a vprintf bug. (Martin Dorey) 1076186691Sobrien 1077186691Sobrien2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 1078186691Sobrien 1079191771Sobrien * src/Makefile.am: 1080186691Sobrien Ensure that getopt_long and [v]asprintf are included in libmagic, 1081186691Sobrien as needed. 1082186691Sobrien 1083186691Sobrien Remove unnecessary EXTRA_DIST. 1084186691Sobrien 1085191771Sobrien * src/Makefile.in: 1086186691Sobrien Rerun automake. 1087186691Sobrien 1088191771Sobrien * src/vasprintf.c (dispatch): 1089186691Sobrien Fix variable precision bug: be sure to step past '*'. 1090186691Sobrien 1091191771Sobrien * src/vasprintf.c (core): 1092186691Sobrien Remove unreachable code. 1093186691Sobrien 1094191771Sobrien * src/apprentice.c (set_test_type): 1095186691Sobrien Add cast to avoid compiler warning. 1096186691Sobrien 1097186691Sobrien2008-04-22 23:45 Christos Zoulas <christos@astron.com> 1098186691Sobrien 1099186691Sobrien * Add magic submission guidelines (Abel Cheung) 1100186691Sobrien 1101186691Sobrien * split msdos and windows magic (Abel Cheung) 1102186691Sobrien 1103186691Sobrien2008-04-04 11:00 Christos Zoulas <christos@astron.com> 1104186691Sobrien 1105191771Sobrien * >= <= is not supported, so fix the magic and warn about it. 1106186691Sobrien reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 1107186691Sobrien 1108186691Sobrien2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 1109186691Sobrien 1110191771Sobrien * src/readelf.c (donote): 1111186691Sobrien ELF core file command name/line bug fixes and enhancements: 1112186691Sobrien 1113186691Sobrien Try larger offsets first to avoid false matches 1114186691Sobrien from earlier data that happen to look like strings; 1115186691Sobrien this primarily affected SunOS 5.x 32-bit Intel core files. 1116186691Sobrien 1117186691Sobrien Add support for command line (instead of just short name) 1118186691Sobrien for SunOS 5.x. 1119186691Sobrien 1120186691Sobrien Add information about NT_PSINFO for SunOS 5.x. 1121186691Sobrien 1122186691Sobrien Only trim whitespace from end of command line. 1123186691Sobrien 1124186691Sobrien2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 1125186691Sobrien 1126186691Sobrien * Change strength of ! from MULT to 0, as it matches almost 1127186691Sobrien anything (Reuben Thomas) 1128186691Sobrien 1129186691Sobrien * Debian fixes (Reuben Thomas) 1130186691Sobrien 1131186691Sobrien2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 1132186691Sobrien 1133186691Sobrien * Clarify UTF-8 BOM message (Reuben Thomas) 1134186691Sobrien 1135186691Sobrien * Add HTML comment to token list in names.h 1136191771Sobrien 1137186691Sobrien2007-02-04 15:50 Christos Zoulas <christos@astron.com> 1138186691Sobrien 1139186691Sobrien * Debian fixes (Reuben Thomas) 1140186691Sobrien 1141186691Sobrien2007-02-04 11:31 Christos Zoulas <christos@astron.com> 1142186691Sobrien 1143186691Sobrien * !:mime annotations in magic files (Reuben Thomas) 1144186691Sobrien 1145186691Sobrien2007-01-29 15:35 Christos Zoulas <christos@astron.com> 1146186691Sobrien 1147186691Sobrien * zero out utime/utimes structs (Gavin Atkinson) 1148186691Sobrien 1149186691Sobrien2007-01-26 13:45 Christos Zoulas <christos@astron.com> 1150186691Sobrien 1151186691Sobrien * reduce writable data from Diego "Flameeyes" Petten 1152186691Sobrien 1153186691Sobrien2007-12-28 15:06 Christos Zoulas <christos@astron.com> 1154186691Sobrien 1155175296Sobrien * strtof detection 1156175296Sobrien 1157175296Sobrien * remove bogus regex magic that could cause a DoS 1158175296Sobrien 1159175296Sobrien * better mismatch version message 1160175296Sobrien 1161186691Sobrien2007-12-27 11:35 Christos Zoulas <christos@astron.com> 1162175296Sobrien 1163175296Sobrien * bring back some fixes from OpenBSD 1164175296Sobrien 1165175296Sobrien * treat ELF dynamic objects as executables 1166175296Sobrien 1167175296Sobrien * fix gcc warnings 1168175296Sobrien 1169186691Sobrien2007-12-01 19:55 Christos Zoulas <christos@astron.com> 1170175296Sobrien 1171175296Sobrien * make sure we have zlib.h and libz to compile the builtin 1172175296Sobrien decompress code 1173175296Sobrien 1174186691Sobrien2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1175175296Sobrien 1176191771Sobrien * float and double magic support (Behan Webster) 1177175296Sobrien 1178186691Sobrien2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1179175296Sobrien 1180175296Sobrien * Convert fortran to a soft test (Reuben Thomas) 1181175296Sobrien 1182186691Sobrien2007-10-23 5:25 Christos Zoulas <christos@astron.com> 1183175296Sobrien 1184175296Sobrien * Add --with-filename, and --no-filename (Reuben Thomas) 1185175296Sobrien 1186186691Sobrien2007-10-23 3:59 Christos Zoulas <christos@astron.com> 1187175296Sobrien 1188175296Sobrien * Rest of the mime split (Reuben Thomas) 1189175296Sobrien 1190175296Sobrien * Make usage message generated from the flags so that 1191175296Sobrien they stay consistent (Reuben Thomas) 1192175296Sobrien 1193186691Sobrien2007-10-20 3:06 Christos Zoulas <christos@astron.com> 1194175296Sobrien 1195175296Sobrien * typo in comment, missing ifdef QUICK, remove unneeded code 1196175296Sobrien (Charles Longeau) 1197175296Sobrien 1198186691Sobrien2007-10-17 3:33 Christos Zoulas <christos@astron.com> 1199175296Sobrien 1200175296Sobrien * Fix problem printing -\012 in some entries 1201175296Sobrien 1202175296Sobrien * Separate magic type and encoding flags (Reuben Thomas) 1203175296Sobrien 1204186691Sobrien2007-10-09 3:55 Christos Zoulas <christos@astron.com> 1205175296Sobrien 1206175296Sobrien * configure fix for int64 and strndup (Reuben Thomas) 1207175296Sobrien 1208186691Sobrien2007-09-26 4:45 Christos Zoulas <christos@astron.com> 1209175296Sobrien 1210175296Sobrien * Add magic_descriptor() function. 1211175296Sobrien 1212175296Sobrien * Fix regression in elf reading code where the core name was 1213175296Sobrien not being printed. 1214175296Sobrien 1215175296Sobrien * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 1216175296Sobrien 1217186691Sobrien2007-08-19 6:30 Christos Zoulas <christos@astron.com> 1218175296Sobrien 1219175296Sobrien * Make mime format consistent so that it can 1220175296Sobrien be easily parsed: 1221175296Sobrien mimetype [charset=character-set] [encoding=encoding-mime-type] 1222175296Sobrien 1223191771Sobrien Remove spurious extra text from some MIME type printouts 1224175296Sobrien (mostly in is_tar). 1225175296Sobrien 1226175296Sobrien Fix one case where -i produced nothing at all (for a 1-byte file, 1227175296Sobrien which is now classed as application/octet-stream). 1228175296Sobrien 1229175296Sobrien Remove 7/8bit classifications, since they were arbitrary 1230175296Sobrien and not based on the file data. 1231175296Sobrien 1232175296Sobrien This work was done by Reuben Thomas 1233175296Sobrien 1234186691Sobrien2007-05-24 10:00 Christos Zoulas <christos@astron.com> 1235169962Sobrien 1236169962Sobrien * Fix another integer overflow (Colin Percival) 1237169962Sobrien 1238186691Sobrien2007-03-26 13:58 Christos Zoulas <christos@astron.com> 1239169962Sobrien 1240169962Sobrien * make sure that all of struct magic_set is initialized appropriately 1241169962Sobrien (Brett) 1242169962Sobrien 1243186691Sobrien2007-03-25 17:44 Christos Zoulas <christos@astron.com> 1244169962Sobrien 1245169962Sobrien * reset left bytes in the buffer (Dmitry V. Levin) 1246169962Sobrien 1247169962Sobrien * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 1248169962Sobrien (Peter Avalos) 1249169962Sobrien 1250186691Sobrien2007-03-15 10:51 Christos Zoulas <christos@astron.com> 1251169962Sobrien 1252169962Sobrien * fix fortran and nroff reversed tests (Dmitry V. Levin) 1253191771Sobrien 1254169962Sobrien * fix exclude option (Dmitry V. Levin) 1255169962Sobrien 1256186691Sobrien2007-02-08 17:30 Christos Zoulas <christos@astron.com> 1257169962Sobrien 1258169962Sobrien * fix integer underflow in file_printf which can lead to 1259169962Sobrien to exploitable heap overflow (Jean-Sebastien Guay-Lero) 1260169962Sobrien 1261186691Sobrien2007-02-05 11:35 Christos Zoulas <christos@astron.com> 1262169962Sobrien 1263169962Sobrien * make socket/pipe reading more robust 1264169962Sobrien 1265186691Sobrien2007-01-25 16:01 Christos Zoulas <christos@astron.com> 1266169962Sobrien 1267169962Sobrien * Centralize all the tests in file_buffer. 1268169962Sobrien 1269169962Sobrien * Add exclude flag. 1270169962Sobrien 1271169962Sobrien2007-01-18 05:29 Anon Ymous <do@not.spam.me> 1272191771Sobrien 1273169962Sobrien * Move the "type" detection code from parse() into its own table 1274169962Sobrien driven routine. This avoids maintaining multiple lists in 1275169962Sobrien file.h. 1276169962Sobrien 1277169962Sobrien * Add an optional conditional field (ust before the type field). 1278169962Sobrien This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 1279169962Sobrien likely to go away. 1280191771Sobrien 1281169962Sobrien2007-01-16 23:24 Anon Ymous <do@not.spam.me> 1282169962Sobrien 1283169962Sobrien * Fix an initialization bug in check_mem(). 1284169962Sobrien 1285169962Sobrien2007-01-16 14:58 Anon Ymous <do@not.spam.me> 1286169962Sobrien 1287169962Sobrien * Add a "default" type to print a message if nothing previously 1288169962Sobrien matched at that level or since the last default at that 1289169962Sobrien level. This is useful for setting up switch-like statements. 1290169962Sobrien It can also be used to do if/else constructions without a 1291169962Sobrien redundant second test. 1292169962Sobrien 1293169962Sobrien * Fix the "x" special case test so that one can test for that 1294169962Sobrien string with "=x". 1295169962Sobrien 1296169962Sobrien * Allow "search" to search the entire buffer if the "/N" 1297169962Sobrien search count is missing. 1298169962Sobrien 1299169962Sobrien * Make "regex" work! It now starts its search at the 1300169962Sobrien specified offset and takes an (optional) "/N" line count to 1301169962Sobrien specify the search range; otherwise it searches to the end 1302169962Sobrien of the file. The match is now grabbed correctly for format 1303169962Sobrien strings and the offset set to the end of the match. 1304169962Sobrien 1305169962Sobrien * Add a "/s" flag to "regex" and "search" to set the offset to 1306169962Sobrien the start of the match. By default the offset is set to the 1307169962Sobrien end of the match, as it is with other tests. This is mostly 1308169962Sobrien useful for "regex". 1309169962Sobrien 1310169962Sobrien * Make "search", "string" and "pstring" use the same 1311169962Sobrien file_strncmp() routine so that they support the same flags; 1312169962Sobrien "bestring16" and "lestring16" call the same routine, but 1313169962Sobrien with flags = 0. Also add a "/C" flag (in analogy to "/c") 1314169962Sobrien to ignore the case on uppercase (lowercase) characters in 1315169962Sobrien the test string. 1316169962Sobrien 1317169962Sobrien * Strict adherence to C style string escapes. A warnings are 1318169962Sobrien printed when compiling. Note: previously "\a" was 1319169962Sobrien incorrectly translated to 'a' instead of an <alert> (i.e., 1320169962Sobrien BELL, typically 0x07). 1321169962Sobrien 1322169962Sobrien * Make this compile with "-Wall -Wextra" and all the warning 1323169962Sobrien flags used with WARNS=4 in the NetBSD source. Also make it 1324169962Sobrien pass lint. 1325169962Sobrien 1326169962Sobrien * Many "cleanups" and hopefully not too many new bugs! 1327169962Sobrien 1328169962Sobrien2007-01-16 14:56 Anon Ymous <do@not.spam.me> 1329169962Sobrien 1330169962Sobrien * make several more files compile with gcc warnings 1331169962Sobrien on and also make them pass lint. 1332169962Sobrien 1333169962Sobrien2007-01-16 14:54 Anon Ymous <do@not.spam.me> 1334169962Sobrien 1335169962Sobrien * fix a puts()/putc() usage goof in file.c 1336169962Sobrien 1337169962Sobrien * make file.c compile with gcc warnings and pass lint 1338169962Sobrien 1339186691Sobrien2006-12-11 16:49 Christos Zoulas <christos@astron.com> 1340169942Sobrien 1341169942Sobrien * fix byteswapping issue 1342169942Sobrien 1343169942Sobrien * report the number of bytes we tried to 1344169942Sobrien allocate when allocation fails 1345169942Sobrien 1346169942Sobrien * add a few missed cases in the strength routine 1347169942Sobrien 1348186691Sobrien2006-12-08 16:32 Christos Zoulas <christos@astron.com> 1349169942Sobrien 1350169942Sobrien * store and print the line number of the magic 1351191771Sobrien entry for debugging. 1352169942Sobrien 1353169942Sobrien * if the magic entry did not print anything, 1354169942Sobrien don't treat it as a match 1355169942Sobrien 1356169942Sobrien * change the magic strength algorithm to take 1357169942Sobrien into account the relationship op. 1358169942Sobrien 1359169942Sobrien * fix a bug in search where we could accidentally 1360169942Sobrien return a match. 1361169942Sobrien 1362169942Sobrien * propagate the error return from match to 1363169942Sobrien file_softmagic. 1364169942Sobrien 1365186691Sobrien2006-11-25 13:35 Christos Zoulas <christos@astron.com> 1366191771Sobrien 1367169942Sobrien * Don't store the current offset in the magic 1368169942Sobrien struct, because it needs to be restored and 1369169942Sobrien it was not done properly all the time. Bug 1370169942Sobrien found by: Arkadiusz Miskiewicz 1371169942Sobrien 1372169942Sobrien * Fix problem in the '\0' separator; and don't 1373169942Sobrien print it as an additional separator; print 1374169942Sobrien it as the only separator. 1375169942Sobrien 1376186691Sobrien2006-11-17 10:51 Christos Zoulas <christos@astron.com> 1377169942Sobrien 1378169942Sobrien * Added a -0 option to print a '\0' separator 1379169942Sobrien Etienne Buira <etienne.buira@free.fr> 1380169942Sobrien 1381186691Sobrien2006-10-31 15:14 Christos Zoulas <christos@astron.com> 1382169942Sobrien 1383169942Sobrien * Check offset before copying (Mike Frysinger) 1384169942Sobrien 1385169942Sobrien * merge duplicated code 1386169942Sobrien 1387169942Sobrien * add quad date support 1388169942Sobrien 1389169942Sobrien * make sure that we nul terminate desc (Ryoji Kanai) 1390169942Sobrien 1391169942Sobrien * don't process elf notes multiple times 1392169942Sobrien 1393169942Sobrien * allow -z to report empty compressed files 1394169942Sobrien 1395169942Sobrien * use calloc to initialize the ascii buffers (Jos van den Oever) 1396169942Sobrien 1397186691Sobrien2006-06-08 11:11 Christos Zoulas <christos@astron.com> 1398169942Sobrien 1399169942Sobrien * QNX fixes (Mike Gorchak) 1400169942Sobrien 1401169942Sobrien * Add quad support. 1402169942Sobrien 1403169942Sobrien * FIFO checks (Dr. Werner Fink) 1404169942Sobrien 1405169942Sobrien * Linux ELF fixes (Dr. Werner Fink) 1406169942Sobrien 1407169942Sobrien * Magic format checks (Dr. Werner Fink) 1408169942Sobrien 1409169942Sobrien * Magic format function improvent (Karl Chen) 1410169942Sobrien 1411186691Sobrien2006-05-03 11:11 Christos Zoulas <christos@astron.com> 1412169942Sobrien 1413169942Sobrien * Pick up some elf changes and some constant fixes from SUSE 1414169942Sobrien 1415169942Sobrien * Identify gnu tar vs. posix tar 1416169942Sobrien 1417267897Sdelphij * When keep going, don't print spurious newlines (Radek Vokal) 1418169942Sobrien 1419186691Sobrien2006-04-01 12:02 Christos Zoulas <christos@astron.com> 1420169942Sobrien 1421169942Sobrien * Use calloc instead of malloc (Mike Frysinger) 1422169942Sobrien 1423169942Sobrien * Fix configure script to detect wctypes.h (Mike Frysinger) 1424169942Sobrien 1425186691Sobrien2006-03-02 16:06 Christos Zoulas <christos@astron.com> 1426159764Sobrien 1427159764Sobrien * Print empty if the file is (Mike Frysinger) 1428159764Sobrien 1429159764Sobrien * Don't try to read past the end of the buffer (Mike Frysinger) 1430159764Sobrien 1431159764Sobrien * Sort magic entries by strength [experimental] 1432159764Sobrien 1433186691Sobrien2005-11-29 13:26 Christos Zoulas <christos@astron.com> 1434159764Sobrien 1435159764Sobrien * Use iswprint() to convert the output string. 1436159764Sobrien (Bastien Nocera) 1437159764Sobrien 1438186691Sobrien2005-10-31 8:54 Christos Zoulas <christos@astron.com> 1439159764Sobrien 1440159764Sobrien * Fix regression where the core info was not completely processed 1441267897Sdelphij (Radek Vokal) 1442159764Sobrien 1443186691Sobrien2005-10-20 11:15 Christos Zoulas <christos@astron.com> 1444159764Sobrien 1445159764Sobrien * Middle Endian magic (Diomidis Spinellis) 1446159764Sobrien 1447186691Sobrien2005-10-17 11:15 Christos Zoulas <christos@astron.com> 1448159764Sobrien 1449159764Sobrien * Open with O_BINARY for CYGWIN (Corinna Vinschen) 1450159764Sobrien 1451159764Sobrien * Don't close stdin (Arkadiusz Miskiewicz) 1452159764Sobrien 1453159764Sobrien * Look for note sections in non executables. 1454159764Sobrien 1455186691Sobrien2005-09-20 13:33 Christos Zoulas <christos@astron.com> 1456191771Sobrien 1457159764Sobrien * Don't print SVR4 Style in core files multiple times 1458267897Sdelphij (Radek Vokal) 1459159764Sobrien 1460186691Sobrien2005-08-27 04:09 Christos Zoulas <christos@astron.com> 1461159764Sobrien 1462159764Sobrien * Cygwin changes Corinna Vinschen 1463159764Sobrien 1464186691Sobrien2005-08-18 09:53 Christos Zoulas <christos@astron.com> 1465159764Sobrien 1466159764Sobrien * Remove erroreous mention of /etc/magic in the file man page 1467191771Sobrien This is gentoo bug 101639. (Mike Frysinger) 1468159764Sobrien 1469191771Sobrien * Cross-compile support and detection (Mike Frysinger) 1470159764Sobrien 1471186691Sobrien2005-08-12 10:17 Christos Zoulas <christos@astron.com> 1472159764Sobrien 1473159764Sobrien * Add -h flag and dereference symlinks if POSIXLY_CORRECT 1474159764Sobrien is set. 1475159764Sobrien 1476186691Sobrien2005-07-29 13:57 Christos Zoulas <christos@astron.com> 1477159764Sobrien 1478159764Sobrien * Avoid search and regex buffer overflows (Kelledin) 1479159764Sobrien 1480186691Sobrien2005-07-12 11:48 Christos Zoulas <christos@astron.com> 1481159764Sobrien 1482159764Sobrien * Provide stub implementations for {v,}nsprintf() for older 1483159764Sobrien OS's that don't have them. 1484159764Sobrien * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 1485159764Sobrien to AC_TYPE_MBSTATE_T. 1486159764Sobrien 1487186691Sobrien2005-06-25 11:48 Christos Zoulas <christos@astron.com> 1488159764Sobrien 1489159764Sobrien * Dynamically allocate the string buffers and make the 1490159764Sobrien default read size 256K. 1491159764Sobrien 1492159764Sobrien2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 1493159764Sobrien 1494159764Sobrien * Dragonfly ELF note support 1495159764Sobrien 1496159764Sobrien2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 1497159764Sobrien 1498159764Sobrien * Avoid NULL pointer dereference in time conversion. 1499159764Sobrien 1500159764Sobrien2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 1501191771Sobrien 1502159764Sobrien * Add indirect magic offset support, and search mode. 1503159764Sobrien 1504159764Sobrien2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 1505159764Sobrien 1506191771Sobrien * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 1507191771Sobrien If a CRLF text file happens to have CR at offset HOWMANY - 1 1508191771Sobrien (currently 0xffff), it should not be counted as CR line 1509191771Sobrien terminator. 1510191771Sobrien If a line has length exactly MAXLINELEN, it should not yet be 1511191771Sobrien treated as a ``very long line'', as MAXLINELEN is ``longest sane 1512191771Sobrien line length''. 1513191771Sobrien With CRLF, the line length was not computed correctly, and even 1514191771Sobrien lines of length MAXLINELEN - 1 were treated as ``very long''. 1515159764Sobrien 1516186691Sobrien2004-12-07 14:15 Christos Zoulas <christos@astron.com> 1517159764Sobrien 1518159764Sobrien * bzip2 needs a lot of input buffer space on some files 1519159764Sobrien before it can begin uncompressing. This makes file -z 1520159764Sobrien fail on some bz2 files. Fix it by giving it a copy of 1521159764Sobrien the file descriptor to read as much as it wants if we 1522186691Sobrien have access to it. <christos@astron.com> 1523159764Sobrien 1524186691Sobrien2004-11-24 12:39 Christos Zoulas <christos@astron.com> 1525133359Sobrien 1526139368Sobrien * Stack smash fix, and ELF more conservative reading. 1527139368Sobrien Jakub Bogusz <qboosh@pld-linux.org> 1528139368Sobrien 1529186691Sobrien2004-11-20 18:50 Christos Zoulas <christos@astron.com> 1530139368Sobrien 1531139368Sobrien * New FreeBSD version parsing code: 1532139368Sobrien Jon Noack <noackjr@alumni.rice.edu> 1533139368Sobrien 1534186691Sobrien * Hackish support for ucs16 strings <christos@astron.com> 1535139368Sobrien 1536186691Sobrien2004-11-13 03:07 Christos Zoulas <christos@astron.com> 1537139368Sobrien 1538139368Sobrien * print the file name and line number in syntax errors. 1539139368Sobrien 1540186691Sobrien2004 10-12 10:50 Christos Zoulas <christos@astron.com> 1541139368Sobrien 1542139368Sobrien * Fix stack overwriting on 0 length strings: Tim Waugh 1543139368Sobrien <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 1544139368Sobrien 1545186691Sobrien2004-09-27 11:30 Christos Zoulas <christos@astron.com> 1546139368Sobrien 1547139368Sobrien * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 1548139368Sobrien 1549191771Sobrien * Fix small memory leaks; caught by: Tamas Sarlos 1550139368Sobrien <stamas@csillag.ilab.sztaki.hu> 1551139368Sobrien 1552186691Sobrien2004-07-24 16:33 Christos Zoulas <christos@astron.com> 1553133359Sobrien 1554191771Sobrien * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 1555133359Sobrien 1556133359Sobrien * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 1557133359Sobrien 1558133359Sobrien * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 1559133359Sobrien 1560133359Sobrien * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 1561133359Sobrien 1562186691Sobrien2004-04-12 10:55 Christos Zoulas <christos@astron.com> 1563133359Sobrien 1564133359Sobrien * make sure that magic formats match magic types during compilation 1565133359Sobrien 1566133359Sobrien * fix broken sgi magic file 1567133359Sobrien 1568186691Sobrien2004-04-06 20:36 Christos Zoulas <christos@astron.com> 1569133359Sobrien 1570133359Sobrien * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 1571133359Sobrien 1572133359Sobrien * magic fixes 1573133359Sobrien 1574186691Sobrien2004-03-22 15:25 Christos Zoulas <christos@astron.com> 1575133359Sobrien 1576133359Sobrien * Lots of mime fixes 1577133359Sobrien (Joerg Ostertag) <ostertag@rechengilde.de> 1578133359Sobrien 1579133359Sobrien * FreeBSD ELF version handling 1580133359Sobrien (Edwin Groothuis) <edwin@mavetju.org> 1581133359Sobrien 1582133359Sobrien * correct cleanup in all cases; don't just close the file. 1583186691Sobrien (Christos Zoulas) <christos@astron.com> 1584133359Sobrien 1585133359Sobrien * add gettext message catalogue support 1586133359Sobrien (Michael Piefel) <piefel@debian.org> 1587133359Sobrien 1588133359Sobrien * better printout for unreadable files 1589133359Sobrien (Michael Piefel) <piefel@debian.org> 1590133359Sobrien 1591133359Sobrien * compensate for missing MAXPATHLEN 1592133359Sobrien (Michael Piefel) <piefel@debian.org> 1593133359Sobrien 1594133359Sobrien * add wide character string length computation 1595133359Sobrien (Michael Piefel) <piefel@debian.org> 1596133359Sobrien 1597133359Sobrien * Avoid infinite loops caused by bad elf alignments 1598133359Sobrien or name and description note sizes. Reported by 1599133359Sobrien (Mikael Magnusson) <mmikael@comhem.se> 1600133359Sobrien 1601186691Sobrien2004-03-09 13:55 Christos Zoulas <christos@astron.com> 1602133359Sobrien 1603133359Sobrien * Fix possible memory leak on error and add missing regfree 1604133359Sobrien (Dmitry V. Levin) <ldv@altlinux.org> 1605133359Sobrien 1606186691Sobrien2003-12-23 12:12 Christos Zoulas <christos@astron.com> 1607133359Sobrien 1608133359Sobrien * fix -k flag (Maciej W. Rozycki) 1609133359Sobrien 1610186691Sobrien2003-11-18 14:10 Christos Zoulas <christos@astron.com> 1611133359Sobrien 1612133359Sobrien * Try to give us much info as possible on corrupt elf files. 1613133359Sobrien (Willy Tarreau) <willy@w.ods.org> 1614133359Sobrien * Updated python bindings (Brett Funderburg) 1615133359Sobrien <brettf@deepfile.com> 1616133359Sobrien 1617186691Sobrien2003-11-11 15:03 Christos Zoulas <christos@astron.com> 1618133359Sobrien 1619133359Sobrien * Include file.h first, because it includes config.h 1620133359Sobrien breaks largefile test macros otherwise. 1621133359Sobrien (Paul Eggert <eggert@CS.UCLA.EDU> via 1622133359Sobrien Lars Hecking <lhecking@nmrc.ie>) 1623133359Sobrien 1624186691Sobrien2003-10-14 21:39 Christos Zoulas <christos@astron.com> 1625133359Sobrien 1626133359Sobrien * Python bindings (Brett Funderburg) <brettf@deepfile.com> 1627133359Sobrien * Don't lookup past the end of the buffer 1628133359Sobrien (Chad Hanson) <chanson@tcs-sec.com> 1629133359Sobrien * Add MAGIC_ERROR and api on magic_errno() 1630133359Sobrien 1631186691Sobrien2003-10-08 12:40 Christos Zoulas <christos@astron.com> 1632133359Sobrien 1633133359Sobrien * handle error conditions from compile as fatal 1634133359Sobrien (Antti Kantee) <pooka@netbsd.org> 1635133359Sobrien * handle magic filename parsing sanely 1636133359Sobrien * more magic fixes. 1637133359Sobrien * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 1638133359Sobrien * describe magic file handling 1639133359Sobrien (Bryan Henderson) <bryanh@giraffe-data.com> 1640133359Sobrien 1641186691Sobrien2003-09-12 15:09 Christos Zoulas <christos@astron.com> 1642133359Sobrien 1643133359Sobrien * update magic files. 1644133359Sobrien * remove largefile support from file.h; it breaks things on most OS's 1645133359Sobrien 1646186691Sobrien2003-08-10 10:25 Christos Zoulas <christos@astron.com> 1647133359Sobrien 1648133359Sobrien * fix unmapping'ing of mmaped files. 1649133359Sobrien 1650186691Sobrien2003-07-10 12:03 Christos Zoulas <christos@astron.com> 1651133359Sobrien 1652133359Sobrien * don't exit with -1 on error; always exit 1 (Marty Leisner) 1653133359Sobrien * restore utimes code. 1654133359Sobrien 1655186691Sobrien2003-06-10 17:03 Christos Zoulas <christos@astron.com> 1656133359Sobrien 1657133359Sobrien * make sure we don't access uninitialized memory. 1658133359Sobrien * pass lint 1659133359Sobrien * #ifdef __cplusplus in magic.h 1660133359Sobrien 1661186691Sobrien2003-05-25 19:23 Christos Zoulas <christos@astron.com> 1662133359Sobrien 1663133359Sobrien * rename cvs magic file to revision to deal with 1664133359Sobrien case insensitive filesystems. 1665133359Sobrien 1666186691Sobrien2003-05-23 17:03 Christos Zoulas <christos@astron.com> 1667133359Sobrien 1668133359Sobrien * documentation fixes from Michael Piefel <piefel@debian.org> 1669133359Sobrien * magic fixes (various) 1670133359Sobrien * revert basename magic in .mgc name determination 1671133359Sobrien * buffer protection in uncompress, 1672133359Sobrien signness issues, 1673133359Sobrien close files 1674133359Sobrien Maciej W. Rozycki <macro@ds2.pg.gda.pl 1675133359Sobrien 1676186691Sobrien2003-04-21 20:12 Christos Zoulas <christos@astron.com> 1677133359Sobrien 1678133359Sobrien * fix zsh magic 1679133359Sobrien 1680186691Sobrien2003-04-04 16:59 Christos Zoulas <christos@astron.com> 1681133359Sobrien 1682133359Sobrien * fix operand sort order in string. 1683133359Sobrien 1684186691Sobrien2003-04-02 17:30 Christos Zoulas <christos@astron.com> 1685133359Sobrien 1686133359Sobrien * cleanup namespace in magic.h 1687133359Sobrien 1688186691Sobrien2003-04-02 13:50 Christos Zoulas <christos@astron.com> 1689133359Sobrien 1690133359Sobrien * Magic additions (Alex Ott) 1691133359Sobrien * Fix bug that broke VPATH compilation (Peter Breitenlohner) 1692133359Sobrien 1693186691Sobrien2003-03-28 16:03 Christos Zoulas <christos@astron.com> 1694133359Sobrien 1695133359Sobrien * remove packed attribute from magic struct. 1696133359Sobrien * make the magic struct properly aligned. 1697133359Sobrien * bump version number of compiled files to 2. 1698133359Sobrien 1699186691Sobrien2003-03-27 13:10 Christos Zoulas <christos@astron.com> 1700133359Sobrien 1701133359Sobrien * separate tar detection and run it before softmagic. 1702133359Sobrien * fix reversed symlink test. 1703133359Sobrien * fix version printing. 1704133359Sobrien * make separator a string instead of a char. 1705133359Sobrien * update manual page and sort options. 1706133359Sobrien 1707186691Sobrien2003-03-26 11:00 Christos Zoulas <christos@astron.com> 1708133359Sobrien 1709133359Sobrien * Pass lint 1710133359Sobrien * make NULL in magic_file mean stdin 1711133359Sobrien * Fix "-" argument to file to pass NULL to magic_file 1712133359Sobrien * avoid pointer casts by using memcpy 1713133359Sobrien * rename magic_buf -> magic_buffer 1714133359Sobrien * keep only the first error 1715133359Sobrien * manual page: new sentence, new line 1716133359Sobrien * fix typo in api function (magic_buf -> magic_buffer) 1717