ChangeLog revision 302221
1344779Sdim2016-06-13 19:40 Christos Zoulas <christos@zoulas.com> 2336809Sdim 3353358Sdim * release 5.28 4353358Sdim * fix leak on allocation failure 5353358Sdim 6336809Sdim2016-06-01 1:20 Christos Zoulas <christos@zoulas.com> 7336809Sdim 8336809Sdim * PR/555: Avoid overflow for offset > nbytes 9336809Sdim * PR/550: Segv on DER parsing: 10360784Sdim - use the correct variable for length 11360784Sdim - set offset to 0 on failure. 12336809Sdim 13336809Sdim2016-05-13 12:00 Christos Zoulas <christos@zoulas.com> 14336809Sdim 15344779Sdim * release 5.27 16336809Sdim 17336809Sdim2016-04-18 9:35 Christos Zoulas <christos@zoulas.com> 18336809Sdim 19336809Sdim * Errors comparing DER entries or computing offsets 20336809Sdim are just indications of malformed non-DER files. 21336809Sdim Don't print them. 22336809Sdim * Offset comparison was off-by-one. 23344779Sdim * Fix compression code (Werner Fink) 24344779Sdim * Put new bytes constant in the right file (not the generated one) 25344779Sdim 26344779Sdim2016-04-16 18:34 Christos Zoulas <christos@zoulas.com> 27344779Sdim 28344779Sdim * release 5.26 29344779Sdim 30344779Sdim2016-03-31 13:50 Christos Zoulas <christos@zoulas.com> 31353358Sdim 32344779Sdim * make the number of bytes read from files configurable. 33344779Sdim 34344779Sdim2016-03-21 13:40 Christos Zoulas <christos@zoulas.com> 35344779Sdim 36353358Sdim * Add bounds checks for DER code (discovered by Thomas Jarosch) 37344779Sdim * Change indirect recursion limit to indirect use count and 38344779Sdim bump from 15 to 50 to prevent abuse. 39344779Sdim 40344779Sdim2016-03-13 20:39 Christos Zoulas <christos@zoulas.com> 41353358Sdim 42344779Sdim * Add -00 which prints filename\0description\0 43344779Sdim 44344779Sdim2016-03-01 13:28 Christos Zoulas <christos@zoulas.com> 45344779Sdim 46344779Sdim * Fix ID3 indirect parsing 47344779Sdim 48344779Sdim2016-01-19 10:18 Christos Zoulas <christos@zoulas.com> 49344779Sdim 50344779Sdim * add DER parsing capability 51344779Sdim 52344779Sdim2015-11-13 10:35 Christos Zoulas <christos@zoulas.com> 53344779Sdim 54344779Sdim * provide dprintf(3) for the OS's that don't have it. 55344779Sdim 56344779Sdim2015-11-11 16:25 Christos Zoulas <christos@zoulas.com> 57344779Sdim 58344779Sdim * redo the compression code report decompression errors 59344779Sdim 60344779Sdim2015-11-10 23:25 Christos Zoulas <christos@zoulas.com> 61344779Sdim 62344779Sdim * REG_STARTEND code is not working as expected, delete it. 63344779Sdim 64344779Sdim2015-11-09 16:05 Christos Zoulas <christos@zoulas.com> 65344779Sdim 66344779Sdim * Add zlib support if we have it. 67344779Sdim 68344779Sdim2015-11-05 11:22 Christos Zoulas <christos@zoulas.com> 69344779Sdim 70344779Sdim * PR/492: compression forking was broken with magic_buffer. 71344779Sdim 72344779Sdim2015-09-16 9:50 Christos Zoulas <christos@zoulas.com> 73344779Sdim 74344779Sdim * release 5.25 75344779Sdim 76344779Sdim2015-09-11 13:25 Christos Zoulas <christos@zoulas.com> 77344779Sdim 78344779Sdim * add a limit to the length of regex searches 79344779Sdim 80344779Sdim2015-09-08 9:50 Christos Zoulas <christos@zoulas.com> 81344779Sdim 82360784Sdim * fix problems with --parameter (Christoph Biedl) 83360784Sdim 84360784Sdim2015-07-11 10:35 Christos Zoulas <christos@zoulas.com> 85360784Sdim 86344779Sdim * Windows fixes PR/466 (Jason Hood) 87360784Sdim 88360784Sdim2015-07-09 10:35 Christos Zoulas <christos@zoulas.com> 89360784Sdim 90360784Sdim * release 5.24 91344779Sdim 92344779Sdim2015-06-11 8:52 Christos Zoulas <christos@zoulas.com> 93344779Sdim 94360784Sdim * redo long option encoding to fix off-by-one in 5.23 95344779Sdim 96344779Sdim2015-06-10 13:50 Christos Zoulas <christos@zoulas.com> 97344779Sdim 98344779Sdim * release 5.23 99344779Sdim 100344779Sdim2015-06-09 16:10 Christos Zoulas <christos@zoulas.com> 101344779Sdim 102344779Sdim * Fix issue with regex range for magic with offset 103360784Sdim * Always return true from mget with USE (success to mget not match 104344779Sdim indication). Fixes mime evaluation after USE magic 105344779Sdim * PR/459: Don't insert magic entries to the list if there are parsing 106344779Sdim errors for them. 107360784Sdim 108360784Sdim2015-06-03 16:00 Christos Zoulas <christos@zoulas.com> 109360784Sdim 110344779Sdim * PR/455: Add utf-7 encoding 111344779Sdim 112344779Sdim2015-06-03 14:30 Christos Zoulas <christos@zoulas.com> 113360784Sdim 114360784Sdim * PR/455: Implement -Z, look inside, but don't report on compression 115360784Sdim * PR/454: Fix allocation error on bad magic. 116360784Sdim 117344779Sdim2015-05-29 10:30 Christos Zoulas <christos@zoulas.com> 118344779Sdim 119360784Sdim * handle MAGIC_CONTINUE everywhere, not just in softmagic 120360784Sdim 121344779Sdim2015-05-21 14:30 Christos Zoulas <christos@zoulas.com> 122360784Sdim 123344779Sdim * don't print descriptions for NAME types when mime. 124344779Sdim 125344779Sdim2015-04-09 15:59 Christos Zoulas <christos@zoulas.com> 126344779Sdim 127344779Sdim * Add --extension to list the known extensions for this file type 128344779Sdim Idea by Andrew J Roazen 129344779Sdim 130344779Sdim2015-02-14 12:23 Christos Zoulas <christos@zoulas.com> 131344779Sdim 132344779Sdim * Bump file search buffer size to 1M. 133344779Sdim 134344779Sdim2015-01-09 14:35 Christos Zoulas <christos@zoulas.com> 135344779Sdim 136344779Sdim * Fix multiple issues with date formats reported by Christoph Biedl: 137344779Sdim - T_LOCAL meaning was reversed 138344779Sdim - Arithmetic did not work 139344779Sdim Also stop adjusting daylight savings for gmt printing. 140344779Sdim 141336809Sdim2015-01-05 13:00 Christos Zoulas <christos@zoulas.com> 142336809Sdim 143336809Sdim * PR/411: Fix memory corruption from corrupt cdf file. 144336809Sdim 145336809Sdim2015-01-02 15:15 Christos Zoulas <christos@zoulas.com> 146344779Sdim 147336809Sdim * release 5.22 148336809Sdim 149336809Sdim2015-01-01 12:01 Christos Zoulas <christos@zoulas.com> 150336809Sdim 151336809Sdim * add indirect relative for TIFF/Exif 152336809Sdim 153344779Sdim2014-12-16 18:10 Christos Zoulas <christos@zoulas.com> 154344779Sdim 155344779Sdim * restructure elf note printing to avoid repeated messages 156344779Sdim * add note limit, suggested by Alexander Cherepanov 157344779Sdim 158360784Sdim2014-12-16 16:53 Christos Zoulas <christos@zoulas.com> 159344779Sdim 160344779Sdim * Bail out on partial pread()'s (Alexander Cherepanov) 161360784Sdim * Fix incorrect bounds check in file_printable (Alexander Cherepanov) 162360784Sdim 163360784Sdim2014-12-11 20:01 Christos Zoulas <christos@zoulas.com> 164360784Sdim 165336809Sdim * PR/405: ignore SIGPIPE from uncompress programs 166360784Sdim * change printable -> file_printable and use it in 167360784Sdim more places for safety 168344779Sdim * in ELF, instead of "(uses dynamic libraries)" when PT_INTERP 169344779Sdim is present print the interpreter name. 170344779Sdim 171344779Sdim2014-12-10 20:01 Christos Zoulas <christos@zoulas.com> 172336809Sdim 173344779Sdim * release 5.21 174336809Sdim 175344779Sdim2014-11-27 18:40 Christos Zoulas <christos@zoulas.com> 176336809Sdim 177344779Sdim * Allow setting more parameters from the command line. 178344779Sdim * Split name/use and indirect magic recursion limits. 179336809Sdim 180336809Sdim2014-11-27 11:12 Christos Zoulas <christos@zoulas.com> 181336809Sdim 182336809Sdim * Adjust ELF parameters and the default recursion 183336809Sdim level. 184344779Sdim * Allow setting the recursion level dynamically. 185344779Sdim 186336809Sdim2014-11-24 8:55 Christos Zoulas <christos@zoulas.com> 187336809Sdim 188344779Sdim * The following fixes resulted from Thomas Jarosch's fuzzing 189344779Sdim tests that revealed severe performance issues on pathological 190344779Sdim input: 191344779Sdim - limit number of elf program and sections processing 192336809Sdim - abort elf note processing quickly 193344779Sdim - reduce the number of recursion levels from 20 to 10 194336809Sdim - preserve error messages in indirect magic handling 195336809Sdim 196344779Sdim This is tracked as CVE-2014-8116 and CVE-2014-8117 197360784Sdim 198360784Sdim2014-11-12 10:30 Christos Zoulas <christos@zoulas.com> 199336809Sdim 200336809Sdim * fix bogus free in the user buffer case. 201336809Sdim 202360784Sdim2014-11-11 12:35 Christos Zoulas <christos@zoulas.com> 203360784Sdim 204336809Sdim * fix out of bounds read for pascal strings 205336809Sdim * fix memory leak (not freeing the head of each mlist) 206344779Sdim 207344779Sdim2014-11-07 10:25 Christos Zoulas <christos@zoulas.com> 208344779Sdim 209336809Sdim * When printing strings from a file, convert them to printable 210336809Sdim on a byte by byte basis, so that we don't get issues with 211336809Sdim locale's trying to interpret random byte streams as UTF-8 and 212360784Sdim having printf error out with EILSEQ. 213360784Sdim 214336809Sdim2014-10-17 11:48 Christos Zoulas <christos@zoulas.com> 215336809Sdim 216344779Sdim * fix bounds in note reading (Francisco Alonso / Red Hat) 217344779Sdim 218344779Sdim2014-10-11 15:02 Christos Zoulas <christos@zoulas.com> 219344779Sdim 220344779Sdim * fix autoconf glue for setlocale and locale_t; some OS's 221344779Sdim have locale_t in xlocale.h 222344779Sdim 223360784Sdim2014-10-10 15:01 Christos Zoulas <christos@zoulas.com> 224360784Sdim 225360784Sdim * release 5.20 226360784Sdim 227360784Sdim2014-08-17 10:01 Christos Zoulas <christos@zoulas.com> 228360784Sdim 229360784Sdim * recognize encrypted CDF documents 230360784Sdim 231360784Sdim2014-08-04 9:18 Christos Zoulas <christos@zoulas.com> 232360784Sdim 233360784Sdim * add magic_load_buffers from Brooks Davis 234360784Sdim 235360784Sdim2014-07-24 16:40 Christos Zoulas <christos@zoulas.com> 236360784Sdim 237360784Sdim * add thumbs.db support 238360784Sdim 239360784Sdim2014-06-12 12:28 Christos Zoulas <christos@zoulas.com> 240360784Sdim 241360784Sdim * release 5.19 242360784Sdim 243360784Sdim2014-06-09 9:04 Christos Zoulas <christos@zoulas.com> 244360784Sdim 245360784Sdim * Misc buffer overruns and missing buffer size tests in cdf parsing 246360784Sdim (Francisco Alonso, Jan Kaluza) 247360784Sdim 248360784Sdim2014-06-02 14:50 Christos Zoulas <christos@zoulas.com> 249360784Sdim 250360784Sdim * Enforce limit of 8K on regex searches that have no limits 251360784Sdim * Allow the l modifier for regex to mean line count. Default 252360784Sdim to byte count. If line count is specified, assume a max 253360784Sdim of 80 characters per line to limit the byte count. 254360784Sdim * Don't allow conversions to be used for dates, allowing 255360784Sdim the mask field to be used as an offset. 256360784Sdim 257360784Sdim2014-05-30 12:51 Christos Zoulas <christos@zoulas.com> 258360784Sdim 259360784Sdim * Make the range operator limit the length of the 260360784Sdim regex search. 261360784Sdim 262360784Sdim2014-05-14 19:23 Christos Zoulas <christos@zoulas.com> 263360784Sdim 264360784Sdim * PR/347: Windows fixes 265360784Sdim * PR/352: Hangul word processor recognition 266336809Sdim * PR/354: Encoding irregularities in text files 267360784Sdim 268360784Sdim2014-05-06 6:12 Christos Zoulas <christos@zoulas.com> 269360784Sdim 270360784Sdim * Fix uninitialized title in CDF files (Jan Kaluza) 271360784Sdim 272360784Sdim2014-05-04 14:55 Christos Zoulas <christos@zoulas.com> 273360784Sdim 274344779Sdim * PR/351: Fix compilation of empty files 275360784Sdim 276336809Sdim2014-04-30 17:39 Christos Zoulas <christos@zoulas.com> 277336809Sdim 278336809Sdim * Fix integer formats: We don't specify 'l' or 279336809Sdim 'h' and 'hh' specifiers anymore, only 'll' for 280336809Sdim quads and nothing for the rest. This is so that 281336809Sdim magic writing is simpler. 282353358Sdim 283353358Sdim2014-04-01 15:25 Christos Zoulas <christos@zoulas.com> 284353358Sdim 285353358Sdim * PR/341: Jan Kaluza, fix memory leak 286353358Sdim * PR/342: Jan Kaluza, fix out of bounds read 287360784Sdim 288353358Sdim2014-03-28 15:25 Christos Zoulas <christos@zoulas.com> 289353358Sdim 290353358Sdim * Fix issue with long formats not matching fmtcheck 291353358Sdim 292353358Sdim2014-03-26 11:25 Christos Zoulas <christos@zoulas.com> 293353358Sdim 294353358Sdim * release 5.18 295353358Sdim 296353358Sdim2014-03-15 17:45 Christos Zoulas <christos@zoulas.com> 297353358Sdim 298353358Sdim * add fmtcheck(3) for those who don't have it 299353358Sdim 300353358Sdim2014-03-14 15:12 Christos Zoulas <christos@zoulas.com> 301360784Sdim 302360784Sdim * prevent mime entries from being attached to magic 303353358Sdim entries with no descriptions 304353358Sdim 305353358Sdim * adjust magic strength for regex type 306353358Sdim 307353358Sdim * remove superfluous ascmagic with encoding test 308353358Sdim 309360784Sdim2014-03-06 12:01 Christos Zoulas <christos@zoulas.com> 310360784Sdim 311336809Sdim * fix regression fix echo -ne "\012\013\014" | file -i - 312360784Sdim which printed "binary" instead of "application/octet-stream" 313336809Sdim 314336809Sdim * add size_t overflow check for magic file size 315336809Sdim 316336809Sdim2014-02-27 16:01 Christos Zoulas <christos@zoulas.com> 317336809Sdim 318336809Sdim * experimental support for matching with CFD CLSID 319336809Sdim 320360784Sdim2014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) 321336809Sdim 322336809Sdim * Cache old LC_CTYPE locale before setting it to "C", so 323360784Sdim we can use it to restore LC_CTYPE instead of asking 324360784Sdim setlocale() to scan the environment variables. 325360784Sdim 326360784Sdim2014-02-12 18:21 Christos Zoulas <christos@zoulas.com> 327360784Sdim 328360784Sdim * Count recursion levels through indirect magic 329360784Sdim 330336809Sdim2014-02-11 10:40 Christos Zoulas <christos@zoulas.com> 331336809Sdim 332336809Sdim * Prevent infinite recursion on files with indirect offsets of 0 333336809Sdim 334336809Sdim2014-01-30 21:00 Christos Zoulas <christos@zoulas.com> 335336809Sdim 336336809Sdim * Add -E flag that makes file print filesystem errors to stderr 337336809Sdim and exit. 338336809Sdim 339336809Sdim2014-01-08 17:20 Christos Zoulas <christos@zoulas.com> 340336809Sdim 341336809Sdim * mime printing could print results from multiple magic entries 342344779Sdim if there were multiple matches. 343344779Sdim * in some cases overflow was not detected when computing offsets 344344779Sdim in softmagic. 345336809Sdim 346336809Sdim2013-12-05 12:00 Christos Zoulas <christos@zoulas.com> 347344779Sdim 348344779Sdim * use strcasestr() to for cdf strings 349336809Sdim * reset to the "C" locale while doing regex operations, or case 350336809Sdim insensitive comparisons; this is provisional 351344779Sdim 352344779Sdim2013-11-19 20:10 Christos Zoulas <christos@zoulas.com> 353336809Sdim 354336809Sdim * always leave magic file loaded, don't unload for magic_check, etc. 355336809Sdim * fix default encoding to binary instead of unknown which broke recently 356360784Sdim * handle empty and one byte files, less specially so that 357353358Sdim --mime-encoding does not break completely. 358353358Sdim ` 359353358Sdim2013-11-06 14:40 Christos Zoulas <christos@zoulas.com> 360353358Sdim 361353358Sdim * fix erroneous non-zero exit code from non-existant file and message 362336809Sdim 363353358Sdim2013-10-29 14:25 Christos Zoulas <christos@zoulas.com> 364353358Sdim 365360784Sdim * add CDF MSI file detection (Guy Helmer) 366360784Sdim 367336809Sdim2013-09-03 11:56 Christos Zoulas <christos@zoulas.com> 368336809Sdim 369353358Sdim * Don't mix errors and regular output if there was an error 370353358Sdim * in magic_descriptor() don't close the file and try to restore 371336809Sdim its position 372336809Sdim 373336809Sdim2013-05-30 17:25 Christos Zoulas <christos@zoulas.com> 374336809Sdim 375336809Sdim * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 376353358Sdim 377336809Sdim2013-05-28 17:25 Christos Zoulas <christos@zoulas.com> 378336809Sdim 379353358Sdim * Fix spacing issues in softmagic and elf (Jan Kaluza) 380353358Sdim 381353358Sdim2013-05-02 18:00 Christos Zoulas <christos@zoulas.com> 382344779Sdim 383353358Sdim * Fix segmentation fault with multiple magic_load commands. 384353358Sdim 385353358Sdim2013-04-22 11:20 Christos Zoulas <christos@zoulas.com> 386336809Sdim 387336809Sdim * The way "default" was implemented was not very useful 388353358Sdim because the "if something was printed at that level" 389336809Sdim was not easily controlled by the user, and the format 390336809Sdim was bound to a string which is too restrictive. Add 391336809Sdim a "clear" for that level keyword and make "default" 392353358Sdim void. This way one can do: 393336809Sdim 394353358Sdim >>13 clear x 395353358Sdim >>13 lelong 1 foo 396336809Sdim >>13 lelong 2 bar 397336809Sdim >>13 default x 398344779Sdim >>>13 lelong x unknown %x 399344779Sdim 400344779Sdim2013-03-25 13:20 Christos Zoulas <christos@zoulas.com> 401336809Sdim 402336809Sdim * disallow strength setting in "name" entries 403336809Sdim 404336809Sdim2013-03-06 21:24 Christos Zoulas <christos@zoulas.com> 405336809Sdim 406344779Sdim * fix recursive magic separator printing 407344779Sdim 408344779Sdim2013-02-26 19:28 Christos Zoulas <christos@zoulas.com> 409344779Sdim 410344779Sdim * limit recursion level for mget 411336809Sdim * fix pread() related breakage in cdf 412336809Sdim * handle offsets properly in recursive "use" 413336809Sdim 414336809Sdim2013-02-18 10:39 Christos Zoulas <christos@zoulas.com> 415336809Sdim 416336809Sdim * add elf reading of debug info to determine if file is stripped 417336809Sdim (Jan Kaluza) 418353358Sdim * use pread() 419336809Sdim 420336809Sdim2013-01-25 18:05 Christos Zoulas <christos@zoulas.com> 421336809Sdim 422336809Sdim * change mime description size from 64 to 80 to accommodate OOXML. 423336809Sdim 424336809Sdim2013-01-11 14:50 Christos Zoulas <christos@zoulas.com> 425344779Sdim 426344779Sdim * Warn about inconsistent continuation levels. 427336809Sdim * Change fsmagic to add a space after it prints. 428336809Sdim 429336809Sdim2013-01-10 21:00 Christos Zoulas <christos@zoulas.com> 430336809Sdim 431336809Sdim * Make getline public so that file can link against it. 432336809Sdim Perhaps it is better to rename it, or hide it differently. 433336809Sdim Fixes builds on platforms that do not provide it. 434336809Sdim 435344779Sdim2013-01-07 16:30 Christos Zoulas <christos@zoulas.com> 436344779Sdim 437336809Sdim * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document 438336809Sdim what long, int, short, etc is (Guy Harris) 439360784Sdim 440353358Sdim2013-01-06 11:20 Christos Zoulas <christos@zoulas.com> 441353358Sdim 442353358Sdim * add magic_version function and constant 443336809Sdim * Redo memory allocation and de-allocation. 444336809Sdim (prevents double frees on non mmap platforms) 445360784Sdim * Fix bug with name/use having to do with passing 446336809Sdim found state from the parent to the child and back. 447336809Sdim 448336809Sdim2012-12-19 8:47 Christos Zoulas <christos@zoulas.com> 449360784Sdim 450360784Sdim * Only print elf capabilities for archs we know (Jan Kaluza) 451336809Sdim 452336809Sdim2012-10-30 19:14 Christos Zoulas <christos@zoulas.com> 453336809Sdim 454360784Sdim * Add "name" and "use" file types in order to look 455336809Sdim inside mach-o files. 456336809Sdim 457360784Sdim2012-09-06 10:40 Christos Zoulas <christos@zoulas.com> 458336809Sdim 459353358Sdim * make --version exit 0 (Matthew Schultz) 460353358Sdim * add string/T (Jan Kaluza) 461353358Sdim 462353358Sdim2012-08-09 2:15 Christos Zoulas <christos@zoulas.com> 463360784Sdim 464360784Sdim * add z and t modifiers for our own vasprintf 465360784Sdim * search for $HOME/.magic.mgc if it is there first 466336809Sdim * fix reads from a pipe, and preserve errno 467360784Sdim 468336809Sdim2012-05-15 13:12 Christos Zoulas <christos@zoulas.com> 469336809Sdim 470336809Sdim * use ctime_r, asctime_r 471360784Sdim 472336809Sdim2012-04-06 17:18 Christos Zoulas <christos@zoulas.com> 473360784Sdim 474360784Sdim * Fixes for indirect offsets to handle apple disk formats 475360784Sdim 476360784Sdim2012-04-03 18:26 Christos Zoulas <christos@zoulas.com> 477360784Sdim 478360784Sdim * Add windows date field types 479360784Sdim * More info for windows shortcuts (incomplete) 480360784Sdim 481360784Sdim2012-02-20 17:33 Christos Zoulas <christos@zoulas.com> 482360784Sdim 483360784Sdim * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann) 484336809Sdim 485336809Sdim2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com> 486336809Sdim 487336809Sdim * Support Tilera architectures (tile64, tilepro, tilegx). 488353358Sdim 489353358Sdim2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org> 490353358Sdim 491353358Sdim * Add magic for /usr/bin/env Perl scripts 492353358Sdim * Weaken generic script magic to avoid clashing with 493360784Sdim language-specific magic. 494360784Sdim 495336809Sdim2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org> 496360784Sdim 497360784Sdim * Simplify if (p) free(p) to free(p). 498336809Sdim 499360784Sdim2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org> 500336809Sdim 501336809Sdim * Remove hardwired token finding (names.h), turning it into soft 502336809Sdim magic. Patterns are either anchored regexs or search/8192. English 503336809Sdim language detection and PL/1 detection have been removed as they 504336809Sdim were too fragile. -e tokens is still accepted for backwards 505336809Sdim compatibility. 506336809Sdim * Move 3ds patterns (which are commented out anyway) into autodesk 507344779Sdim (they were, oddly, in c-lang). 508344779Sdim 509344779Sdim2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org> 510344779Sdim 511344779Sdim * Tweak strength of generic hash-bang detectors to be less than 512344779Sdim specific ones. 513336809Sdim * Make an inconsistent description of Python scripts consistent. 514336809Sdim 515336809Sdim2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org> 516344779Sdim 517344779Sdim * Fix minor error in file(1). 518344779Sdim 519344779Sdim2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org> 520344779Sdim 521344779Sdim * Fix issue #150 (I hope). 522336809Sdim 523336809Sdim2011-09-22 12:57 Christos Zoulas <christos@zoulas.com> 524336809Sdim 525336809Sdim * Python3 binding fixes from Kelly Anderson 526336809Sdim 527336809Sdim2011-09-20 11:32 Christos Zoulas <christos@zoulas.com> 528336809Sdim 529336809Sdim * If a string type magic entry is marked as text or binary 530336809Sdim only match text files against text entries and binary 531336809Sdim files against binary entries. 532336809Sdim 533336809Sdim2011-09-01 12:12 Christos Zoulas <christos@zoulas.com> 534344779Sdim 535344779Sdim * Don't wait for any subprocess, just the one we forked. 536336809Sdim 537336809Sdim2011-08-26 16:40 Christos Zoulas <christos@zoulas.com> 538336809Sdim 539336809Sdim * If the application name is not set in a cdf file, try to see 540336809Sdim if it has a directory with the application name on it. 541336809Sdim 542344779Sdim2011-08-17 14:32 Christos Zoulas <christos@zoulas.com> 543336809Sdim 544336809Sdim * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza 545336809Sdim 546336809Sdim2011-08-14 09:03 Christos Zoulas <christos@zoulas.com> 547336809Sdim 548344779Sdim * Don't use variable string formats. 549336809Sdim 550336809Sdim2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org> 551336809Sdim 552344779Sdim * Fix detection of Zip files (Mantis #128). 553344779Sdim * Make some minor improvements to file(1). 554344779Sdim * Rename MIME types for filesystem objects for consistency with 555336809Sdim xdg-utils. Typically this means that application/x-foo becomes 556344779Sdim inode/foo, but some names also change slightly, e.g. 557344779Sdim application/x-character-device becomes inode/chardevice. 558344779Sdim 559344779Sdim2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 560336809Sdim 561336809Sdim * fix mingw compilation (Abradoks) 562360784Sdim 563360784Sdim2011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 564360784Sdim 565336809Sdim * remove patchlevel.h 566336809Sdim * Fix read past allocated memory caused by double-incrementing 567344779Sdim a pointer in a loop (reported by Roberto Maar) 568344779Sdim 569336809Sdim2011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 570336809Sdim 571336809Sdim * Fix cdf string buffer setting (Sven Anders) 572336809Sdim 573336809Sdim2011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 574336809Sdim 575336809Sdim * Eliminate MAXPATHLEN and use dynamic allocation for 576336809Sdim path and file buffers. 577336809Sdim 578336809Sdim2011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 579336809Sdim 580336809Sdim * binary tests on magic entries with masks could spuriously 581336809Sdim get converted to ascii. 582360784Sdim 583360784Sdim2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 584344779Sdim 585360784Sdim * Improve file.man (remove BUGS, present email addresses consistently). 586336809Sdim 587336809Sdim2011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 588344779Sdim 589344779Sdim * add lrzip support (from Ville Skytta) 590344779Sdim 591344779Sdim2011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 592336809Sdim 593336809Sdim * fix CDF bounds checking (Guy Helmer) 594336809Sdim 595344779Sdim2011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 596344779Sdim 597344779Sdim * add cdf_ctime() that prints a meaningful error when time cannot 598336809Sdim be converted. 599336809Sdim 600344779Sdim2011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 601344779Sdim 602336809Sdim * help and version output to stdout. 603336809Sdim 604336809Sdim * When matching softmagic for ascii files, don't just print 605336809Sdim the softmagic classification, keep going and print the 606336809Sdim text classification too. This fixes broken troff files when 607336809Sdim we moved them from keyword recognition to softmagic 608336809Sdim (they stopped printing "with CRLF" etc.) 609336809Sdim Reported by Doug McIlroy. 610336809Sdim 611336809Sdim2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 612353358Sdim 613353358Sdim * Fix two potential buffer overruns in apprentice_list. 614353358Sdim 615353358Sdim2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 616353358Sdim 617353358Sdim * New Python binding in pure Python. 618353358Sdim * Update libmagic(3). 619353358Sdim 620336809Sdim2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 621344779Sdim 622360784Sdim * Fix Python bindings (including recent Python 3 compatibility 623336809Sdim update). 624336809Sdim 625336809Sdim2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 626336809Sdim 627336809Sdim * magic/Makefile.am: make it easier to recover from magic build failures. 628336809Sdim * Fix pstring length specifier parsing to avoid generating invalid 629336809Sdim magic files. 630336809Sdim * Add pstring length "J" (for "JPEG") to specify that the length 631336809Sdim include itself. 632336809Sdim * Fix JPEG comment parsing at last using pstring/HJ! 633336809Sdim * Ignore section 5 man pages in doc/.cvsignore. 634336809Sdim 635336809Sdim2010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 636336809Sdim 637336809Sdim * Add pstring/BHhLl to specify the type of the length of pascal 638336809Sdim strings. 639336809Sdim 640336809Sdim2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 641336809Sdim 642336809Sdim * Fix "-e soft": it was ignored when softmagic was called 643360784Sdim during asciimagic. 644336809Sdim * Improve comments and use "unsigned char" in tar.h/is_tar.c. 645336809Sdim 646336809Sdim2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 647360784Sdim 648336809Sdim * Make bug reporting addresses more visible. 649336809Sdim 650344779Sdim2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 651344779Sdim 652336809Sdim * Add tcl magic from Gustaf Neumann 653344779Sdim 654344779Sdim2010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 655336809Sdim 656336809Sdim * Fix the whitespace comparing code (Christopher Chittleborough) 657344779Sdim 658360784Sdim2010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 659344779Sdim 660336809Sdim * allow string/t to work (Jan Kaluza) 661344779Sdim 662344779Sdim2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 663344779Sdim 664344779Sdim * Apply some patches from Ubuntu and Fedora. 665344779Sdim 666336809Sdim2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 667336809Sdim 668336809Sdim * Apply all patches from Debian package 5.04-6 which have not 669336809Sdim already been applied and are not Debian-specific. 670336809Sdim 671336809Sdim2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 672336809Sdim 673336809Sdim * Minor security fix to softmagic.c (don't use untrusted 674336809Sdim string as printf format). 675336809Sdim 676336809Sdim2010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 677336809Sdim 678336809Sdim * MINGW32 portability from LRN 679336809Sdim 680336809Sdim * Don't warn about escaping magic regex chars when we are in a regex. 681336809Sdim 682344779Sdim2010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 683336809Sdim 684336809Sdim * Only try to print prpsinfo for core files. (Jan Kaluza) 685336809Sdim 686336809Sdim2010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 687344779Sdim 688344779Sdim * Try more elf offsets for Debian core files. (Arnaud Giersch) 689336809Sdim 690336809Sdim2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 691344779Sdim 692336809Sdim * Clarify which sort of CDF we mean. 693344779Sdim 694336809Sdim2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 695336809Sdim 696344779Sdim * Re-jig Zip file type magic so that unsupported special 697336809Sdim Zip types (those with "mimetype" at offset 30) can be 698336809Sdim recognized. 699336809Sdim 700336809Sdim2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 701336809Sdim 702353358Sdim * Add support for OCF (EPUB) files (application/epub+zip) 703360784Sdim 704336809Sdim2010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 705336809Sdim 706336809Sdim * Fix core-dump from unbound loop: 707336809Sdim https://bugzilla.redhat.com/show_bug.cgi?id=533245 708336809Sdim 709336809Sdim2010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 710336809Sdim 711336809Sdim * print proper mime for crystal reports file 712360784Sdim 713360784Sdim * print the last summary information of a cdf document, not the 714360784Sdim first so that nested documents print the right info 715360784Sdim 716360784Sdim2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 717360784Sdim 718360784Sdim * bring back some fixes from OpenBSD: 719360784Sdim - make gcc2 builds file 720360784Sdim - fix typos in a magic file comment 721360784Sdim 722336809Sdim2009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 723336809Sdim 724336809Sdim * ctime/asctime can return NULL on some OS's although 725336809Sdim they should not (Toshit Antani) 726336809Sdim 727336809Sdim2009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 728360784Sdim 729360784Sdim * Centralize magic path handling routines and remove the 730360784Sdim special-casing from file.c so that the python module for 731336809Sdim example comes up with the same magic path (Fixes ~/.magic 732336809Sdim handling) (from Gab) 733336809Sdim 734336809Sdim2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 735344779Sdim 736344779Sdim * When magic argument is a directory, read the files in 737336809Sdim strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 738336809Sdim 739336809Sdim2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 740336809Sdim 741336809Sdim * Combine overlapping epoc and psion magic files into one (epoc). 742336809Sdim 743336809Sdim * Add some more EPOC MIME types. 744336809Sdim 745336809Sdim2009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 746336809Sdim 747336809Sdim * Fix 3 bugs (From Ian Darwin): 748336809Sdim - file_showstr could move one past the end of the array 749336809Sdim - parse_apple did not nul terminate the string in the overflow case 750336809Sdim - parse_mime truncated the wrong string in the overflow case 751336809Sdim 752344779Sdim2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 753360784Sdim 754360784Sdim * Include Localstuff when compiling magic. 755360784Sdim 756336809Sdim2009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 757353358Sdim 758353358Sdim * Fix logic for including mygetopts.h 759353358Sdim 760360784Sdim * Make cdf.c compile again with debugging 761360784Sdim 762360784Sdim * Add the necessary field handling for crystal reports files to work 763336809Sdim 764336809Sdim2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 765336809Sdim 766336809Sdim * Stop "(if" identifying Lisp files, that's plain dumb! 767353358Sdim 768353358Sdim2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 769336809Sdim 770336809Sdim * Add a couple of missing MP3 MIME types. 771336809Sdim 772336809Sdim2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 773336809Sdim 774344779Sdim * Add full range of hash-bang tests for Python and Ruby. 775360784Sdim 776344779Sdim * Add MIME types for Python and Ruby scripts. 777360784Sdim 778344779Sdim2009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 779344779Sdim 780360784Sdim * off by one in parsing hw capabilities in elf 781360784Sdim (Cheng Renquan) 782360784Sdim 783360784Sdim2009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 784344779Sdim 785360784Sdim * lint fixes and more from NetBSD 786360784Sdim 787353358Sdim2009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 788353358Sdim 789353358Sdim * Avoid null dereference in cdf code (Drew Yao) 790360784Sdim 791360784Sdim * More cdf bounds checks and overflow checks 792360784Sdim 793360784Sdim2009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 794360784Sdim 795344779Sdim * Buffer overflow fixes from Drew Yao 796360784Sdim 797360784Sdim2009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 798344779Sdim 799360784Sdim * Fix more cdf lossage. All the documents I have 800360784Sdim right now print the correct information. 801344779Sdim 802344779Sdim2009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 803360784Sdim 804360784Sdim * don't print \012- separators in the same magic entry 805360784Sdim if it consists of multiple magic printing lines. 806360784Sdim 807360784Sdim2009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 808360784Sdim 809360784Sdim * Avoid file descriptor leak in compress code from 810360784Sdim (Daniel Novotny) 811360784Sdim 812360784Sdim2009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 813360784Sdim 814360784Sdim * Allow escaping of relation characters, so that we can say \^[A-Z] 815360784Sdim and the ^ is not eaten as a relation char. 816360784Sdim 817360784Sdim * Fix troff and fortran to their previous glory using 818360784Sdim regex. This was broken since their removel from ascmagic. 819360784Sdim 820353358Sdim2009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 821360784Sdim 822336809Sdim * don't use strlen in strndup() (Toby Peterson) 823360784Sdim 824360784Sdim2009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 825336809Sdim 826360784Sdim * avoid c99 syntax. 827360784Sdim 828336809Sdim2009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 829360784Sdim 830336809Sdim * make the cdf code use the buffer first if available, 831360784Sdim and then the fd code. 832360784Sdim 833360784Sdim2009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 834360784Sdim 835360784Sdim * look for struct option to determine if getopt.h is usable for IRIX. 836360784Sdim 837360784Sdim * sanitize cdf document strings 838360784Sdim 839360784Sdim2009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 840360784Sdim 841360784Sdim * fix OS/2 warnings. 842360784Sdim 843360784Sdim2008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 844360784Sdim 845360784Sdim * fix initial offset calculation for non 4K sector files 846360784Sdim 847360784Sdim * add loop limits to avoid DoS attacks by constructing 848360784Sdim looping sector references. 849360784Sdim 850360784Sdim2008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 851360784Sdim 852360784Sdim * fix memory botches on cdf file parsing. 853336809Sdim 854336809Sdim * exit with non-zero value for any error, not just for the last 855360784Sdim file processed. 856360784Sdim 857360784Sdim2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 858360784Sdim 859360784Sdim * Replace all str{cpy,cat} functions with strl{cpy,cat} 860360784Sdim * Ensure that strl{cpy,cat} are included in libmagic, 861360784Sdim as needed. 862336809Sdim 863336809Sdim2008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 864336809Sdim 865344779Sdim * Handle ID3 format files. 866336809Sdim 867336809Sdim2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 868336809Sdim 869336809Sdim * Fix --mime, --mime-type and --mime-encoding under new scheme. 870336809Sdim 871336809Sdim * Rename "ascii" to "text" and add "encoding" test. 872336809Sdim 873336809Sdim * Return a precise ("utf-16le" or "utf-16be") MIME charset for 874336809Sdim UTF-16. 875353358Sdim 876353358Sdim * Fix error in comment caused by automatic indentation adding 877353358Sdim words! 878353358Sdim 879336809Sdim2008-11-06 10:35 Christos Zoulas <christos@astron.com> 880336809Sdim 881336809Sdim * use memchr instead of strchr because the string 882336809Sdim might not be NUL terminated (Scott MacVicar) 883336809Sdim 884336809Sdim2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 885336809Sdim 886336809Sdim * Fix a printf with a non-literal format string. 887336809Sdim 888336809Sdim * Fix formatting and punctuation of help for "--apple". 889353358Sdim 890336809Sdim2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 891336809Sdim 892336809Sdim * Correct words counts in comments of struct magic. 893336809Sdim 894336809Sdim * Fix handle_annotation to allow both Apple and MIME types to be 895336809Sdim printed, and to return correct code if MIME type is 896336809Sdim printed (1, not 0) or if there's an error (-1 not 1). 897336809Sdim 898353358Sdim * Fix output of charset for MIME type (precede with semi-colon; 899353358Sdim fixes Debian bug #501460). 900353358Sdim 901353358Sdim * Fix potential attacks via conversion specifications in magic 902353358Sdim strings. 903353358Sdim 904353358Sdim * Add a FIXME for Debian bug #488562 (magic files should be 905353358Sdim read in a defined order, by sorting the names). 906336809Sdim 907336809Sdim2008-10-18 16:45 Christos Zoulas <christos@astron.com> 908336809Sdim 909336809Sdim * Added APPLE file creator/type 910336809Sdim 911336809Sdim2008-10-12 10:20 Christos Zoulas <christos@astron.com> 912336809Sdim 913336809Sdim * Added CDF parsing 914336809Sdim 915336809Sdim2008-10-09 16:40 Christos Zoulas <christos@astron.com> 916344779Sdim 917344779Sdim * filesystem and msdos patches (Joerg Jenderek) 918336809Sdim 919336809Sdim2008-10-09 13:20 Christos Zoulas <christos@astron.com> 920336809Sdim 921336809Sdim * correct --exclude documentation issues: remove troff and fortran 922344779Sdim and rename "token" to "tokens". (Randy McMurchy) 923353358Sdim 924353358Sdim2008-10-01 10:30 Christos Zoulas <christos@astron.com> 925353358Sdim 926336809Sdim * Read ~/.magic in addition to the default magic file not instead 927336809Sdim of, as documented in the man page. 928336809Sdim 929336809Sdim2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 930353358Sdim 931336809Sdim * Comment out graphviz patterns, as they match too many files. 932336809Sdim 933336809Sdim2008-08-30 12:54 Christos Zoulas <christos@astron.com> 934336809Sdim 935336809Sdim * Don't eat trailing \n in magic enties. 936336809Sdim 937336809Sdim * Cast defines to allow compilation using a c++ compiler. 938344779Sdim 939344779Sdim2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 940336809Sdim 941353358Sdim * Add text/x-lua MIME type for Lua scripts. 942353358Sdim 943336809Sdim * Escape { in regex in graphviz patterns. 944360784Sdim 945360784Sdim2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 946360784Sdim 947360784Sdim * Add MIME types for special files. 948336809Sdim 949360784Sdim * Use access to give more accurate information for files that 950360784Sdim can't be opened. 951336809Sdim 952360784Sdim * Add a TODO list. 953360784Sdim 954360784Sdim2008-07-02 11:15 Christos Zoulas <christos@astron.com> 955360784Sdim 956336809Sdim * add !:strength op to adjust magic strength (experimental) 957344779Sdim 958344779Sdim2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 959344779Sdim 960336809Sdim * Fix automake error in configure.ac. 961336809Sdim 962360784Sdim * Add MIME type for Psion Sketch files. 963360784Sdim 964360784Sdim2008-06-05 08:59 Christos Zoulas <christos@astron.com> 965360784Sdim 966336809Sdim * Don't print warnings about bad namesize in stripped 967360784Sdim binaries with PT_NOTE is still there, and the actual 968360784Sdim note is gone (Jakub Jelinek) 969360784Sdim 970360784Sdim2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 971360784Sdim 972336809Sdim * magic/Magdir/elf: 973336809Sdim Note invalid byte order for little-endian SPARC32PLUS. 974360784Sdim Add SPARC V9 vendor extensions and memory model. 975360784Sdim 976360784Sdim * src/elfclass.h: 977360784Sdim Pass target machine to doshn (for Solaris hardware capabilities). 978360784Sdim 979360784Sdim * src/readelf.c (doshn): 980360784Sdim Add support for Solaris hardware/software capabilities. 981360784Sdim 982360784Sdim * src/readelf.h: 983360784Sdim Ditto. 984360784Sdim 985360784Sdim * src/vasprintf.c (dispatch): 986360784Sdim Add support for ll modifier. 987344779Sdim 988336809Sdim2008-05-16 10:25 Christos Zoulas <christos@astron.com> 989360784Sdim 990344779Sdim * Fix compiler warnings. 991344779Sdim 992336809Sdim * remove stray printf, and fix a vprintf bug. (Martin Dorey) 993344779Sdim 994336809Sdim2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 995336809Sdim 996336809Sdim * src/Makefile.am: 997344779Sdim Ensure that getopt_long and [v]asprintf are included in libmagic, 998344779Sdim as needed. 999336809Sdim 1000360784Sdim Remove unnecessary EXTRA_DIST. 1001360784Sdim 1002360784Sdim * src/Makefile.in: 1003360784Sdim Rerun automake. 1004360784Sdim 1005336809Sdim * src/vasprintf.c (dispatch): 1006336809Sdim Fix variable precision bug: be sure to step past '*'. 1007360784Sdim 1008360784Sdim * src/vasprintf.c (core): 1009360784Sdim Remove unreachable code. 1010360784Sdim 1011360784Sdim * src/apprentice.c (set_test_type): 1012360784Sdim Add cast to avoid compiler warning. 1013360784Sdim 1014360784Sdim2008-04-22 23:45 Christos Zoulas <christos@astron.com> 1015360784Sdim 1016360784Sdim * Add magic submission guidelines (Abel Cheung) 1017360784Sdim 1018360784Sdim * split msdos and windows magic (Abel Cheung) 1019360784Sdim 1020360784Sdim2008-04-04 11:00 Christos Zoulas <christos@astron.com> 1021336809Sdim 1022336809Sdim * >= <= is not supported, so fix the magic and warn about it. 1023360784Sdim reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 1024360784Sdim 1025336809Sdim2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 1026360784Sdim 1027360784Sdim * src/readelf.c (donote): 1028360784Sdim ELF core file command name/line bug fixes and enhancements: 1029360784Sdim 1030353358Sdim Try larger offsets first to avoid false matches 1031360784Sdim from earlier data that happen to look like strings; 1032336809Sdim this primarily affected SunOS 5.x 32-bit Intel core files. 1033360784Sdim 1034360784Sdim Add support for command line (instead of just short name) 1035336809Sdim for SunOS 5.x. 1036360784Sdim 1037360784Sdim Add information about NT_PSINFO for SunOS 5.x. 1038360784Sdim 1039360784Sdim Only trim whitespace from end of command line. 1040360784Sdim 1041360784Sdim2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 1042360784Sdim 1043360784Sdim * Change strength of ! from MULT to 0, as it matches almost 1044336809Sdim anything (Reuben Thomas) 1045360784Sdim 1046360784Sdim * Debian fixes (Reuben Thomas) 1047360784Sdim 1048360784Sdim2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 1049336809Sdim 1050360784Sdim * Clarify UTF-8 BOM message (Reuben Thomas) 1051360784Sdim 1052360784Sdim * Add HTML comment to token list in names.h 1053360784Sdim 1054360784Sdim2007-02-04 15:50 Christos Zoulas <christos@astron.com> 1055360784Sdim 1056360784Sdim * Debian fixes (Reuben Thomas) 1057360784Sdim 1058360784Sdim2007-02-04 11:31 Christos Zoulas <christos@astron.com> 1059360784Sdim 1060360784Sdim * !:mime annotations in magic files (Reuben Thomas) 1061360784Sdim 1062360784Sdim2007-01-29 15:35 Christos Zoulas <christos@astron.com> 1063360784Sdim 1064360784Sdim * zero out utime/utimes structs (Gavin Atkinson) 1065360784Sdim 1066360784Sdim2007-01-26 13:45 Christos Zoulas <christos@astron.com> 1067336809Sdim 1068353358Sdim * reduce writable data from Diego "Flameeyes" Petten 1069360784Sdim 1070360784Sdim2007-12-28 15:06 Christos Zoulas <christos@astron.com> 1071353358Sdim 1072353358Sdim * strtof detection 1073336809Sdim 1074336809Sdim * remove bogus regex magic that could cause a DoS 1075336809Sdim 1076336809Sdim * better mismatch version message 1077360784Sdim 1078360784Sdim2007-12-27 11:35 Christos Zoulas <christos@astron.com> 1079360784Sdim 1080360784Sdim * bring back some fixes from OpenBSD 1081360784Sdim 1082360784Sdim * treat ELF dynamic objects as executables 1083360784Sdim 1084360784Sdim * fix gcc warnings 1085360784Sdim 1086360784Sdim2007-12-01 19:55 Christos Zoulas <christos@astron.com> 1087360784Sdim 1088353358Sdim * make sure we have zlib.h and libz to compile the builtin 1089353358Sdim decompress code 1090353358Sdim 1091336809Sdim2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1092360784Sdim 1093360784Sdim * float and double magic support (Behan Webster) 1094336809Sdim 1095336809Sdim2007-10-28 20:48 Christos Zoulas <christos@astron.com> 1096360784Sdim 1097360784Sdim * Convert fortran to a soft test (Reuben Thomas) 1098360784Sdim 1099336809Sdim2007-10-23 5:25 Christos Zoulas <christos@astron.com> 1100360784Sdim 1101360784Sdim * Add --with-filename, and --no-filename (Reuben Thomas) 1102360784Sdim 1103360784Sdim2007-10-23 3:59 Christos Zoulas <christos@astron.com> 1104344779Sdim 1105360784Sdim * Rest of the mime split (Reuben Thomas) 1106336809Sdim 1107360784Sdim * Make usage message generated from the flags so that 1108360784Sdim they stay consistent (Reuben Thomas) 1109360784Sdim 1110360784Sdim2007-10-20 3:06 Christos Zoulas <christos@astron.com> 1111360784Sdim 1112360784Sdim * typo in comment, missing ifdef QUICK, remove unneeded code 1113360784Sdim (Charles Longeau) 1114360784Sdim 1115360784Sdim2007-10-17 3:33 Christos Zoulas <christos@astron.com> 1116360784Sdim 1117360784Sdim * Fix problem printing -\012 in some entries 1118360784Sdim 1119360784Sdim * Separate magic type and encoding flags (Reuben Thomas) 1120360784Sdim 1121360784Sdim2007-10-09 3:55 Christos Zoulas <christos@astron.com> 1122360784Sdim 1123360784Sdim * configure fix for int64 and strndup (Reuben Thomas) 1124360784Sdim 1125360784Sdim2007-09-26 4:45 Christos Zoulas <christos@astron.com> 1126360784Sdim 1127360784Sdim * Add magic_descriptor() function. 1128360784Sdim 1129360784Sdim * Fix regression in elf reading code where the core name was 1130360784Sdim not being printed. 1131360784Sdim 1132360784Sdim * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 1133336809Sdim 1134336809Sdim2007-08-19 6:30 Christos Zoulas <christos@astron.com> 1135336809Sdim 1136336809Sdim * Make mime format consistent so that it can 1137336809Sdim be easily parsed: 1138344779Sdim mimetype [charset=character-set] [encoding=encoding-mime-type] 1139344779Sdim 1140344779Sdim Remove spurious extra text from some MIME type printouts 1141336809Sdim (mostly in is_tar). 1142344779Sdim 1143336809Sdim Fix one case where -i produced nothing at all (for a 1-byte file, 1144336809Sdim which is now classed as application/octet-stream). 1145344779Sdim 1146344779Sdim Remove 7/8bit classifications, since they were arbitrary 1147336809Sdim and not based on the file data. 1148336809Sdim 1149336809Sdim This work was done by Reuben Thomas 1150336809Sdim 1151336809Sdim2007-05-24 10:00 Christos Zoulas <christos@astron.com> 1152360784Sdim 1153360784Sdim * Fix another integer overflow (Colin Percival) 1154360784Sdim 1155344779Sdim2007-03-26 13:58 Christos Zoulas <christos@astron.com> 1156336809Sdim 1157360784Sdim * make sure that all of struct magic_set is initialized appropriately 1158344779Sdim (Brett) 1159344779Sdim 1160344779Sdim2007-03-25 17:44 Christos Zoulas <christos@astron.com> 1161336809Sdim 1162344779Sdim * reset left bytes in the buffer (Dmitry V. Levin) 1163344779Sdim 1164344779Sdim * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 1165336809Sdim (Peter Avalos) 1166360784Sdim 1167360784Sdim2007-03-15 10:51 Christos Zoulas <christos@astron.com> 1168360784Sdim 1169360784Sdim * fix fortran and nroff reversed tests (Dmitry V. Levin) 1170360784Sdim 1171344779Sdim * fix exclude option (Dmitry V. Levin) 1172344779Sdim 1173344779Sdim2007-02-08 17:30 Christos Zoulas <christos@astron.com> 1174360784Sdim 1175344779Sdim * fix integer underflow in file_printf which can lead to 1176336809Sdim to exploitable heap overflow (Jean-Sebastien Guay-Lero) 1177336809Sdim 1178336809Sdim2007-02-05 11:35 Christos Zoulas <christos@astron.com> 1179344779Sdim 1180344779Sdim * make socket/pipe reading more robust 1181360784Sdim 1182353358Sdim2007-01-25 16:01 Christos Zoulas <christos@astron.com> 1183353358Sdim 1184353358Sdim * Centralize all the tests in file_buffer. 1185353358Sdim 1186353358Sdim * Add exclude flag. 1187353358Sdim 1188353358Sdim2007-01-18 05:29 Anon Ymous <do@not.spam.me> 1189353358Sdim 1190353358Sdim * Move the "type" detection code from parse() into its own table 1191344779Sdim driven routine. This avoids maintaining multiple lists in 1192336809Sdim file.h. 1193336809Sdim 1194336809Sdim * Add an optional conditional field (ust before the type field). 1195360784Sdim This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 1196336809Sdim likely to go away. 1197344779Sdim 1198353358Sdim2007-01-16 23:24 Anon Ymous <do@not.spam.me> 1199353358Sdim 1200353358Sdim * Fix an initialization bug in check_mem(). 1201353358Sdim 1202353358Sdim2007-01-16 14:58 Anon Ymous <do@not.spam.me> 1203336809Sdim 1204336809Sdim * Add a "default" type to print a message if nothing previously 1205336809Sdim matched at that level or since the last default at that 1206336809Sdim level. This is useful for setting up switch-like statements. 1207336809Sdim It can also be used to do if/else constructions without a 1208336809Sdim redundant second test. 1209336809Sdim 1210360784Sdim * Fix the "x" special case test so that one can test for that 1211360784Sdim string with "=x". 1212360784Sdim 1213360784Sdim * Allow "search" to search the entire buffer if the "/N" 1214360784Sdim search count is missing. 1215360784Sdim 1216360784Sdim * Make "regex" work! It now starts its search at the 1217360784Sdim specified offset and takes an (optional) "/N" line count to 1218360784Sdim specify the search range; otherwise it searches to the end 1219360784Sdim of the file. The match is now grabbed correctly for format 1220360784Sdim strings and the offset set to the end of the match. 1221353358Sdim 1222353358Sdim * Add a "/s" flag to "regex" and "search" to set the offset to 1223353358Sdim the start of the match. By default the offset is set to the 1224336809Sdim end of the match, as it is with other tests. This is mostly 1225360784Sdim useful for "regex". 1226360784Sdim 1227336809Sdim * Make "search", "string" and "pstring" use the same 1228336809Sdim file_strncmp() routine so that they support the same flags; 1229360784Sdim "bestring16" and "lestring16" call the same routine, but 1230360784Sdim with flags = 0. Also add a "/C" flag (in analogy to "/c") 1231360784Sdim to ignore the case on uppercase (lowercase) characters in 1232336809Sdim the test string. 1233360784Sdim 1234360784Sdim * Strict adherence to C style string escapes. A warnings are 1235360784Sdim printed when compiling. Note: previously "\a" was 1236336809Sdim incorrectly translated to 'a' instead of an <alert> (i.e., 1237360784Sdim BELL, typically 0x07). 1238336809Sdim 1239360784Sdim * Make this compile with "-Wall -Wextra" and all the warning 1240360784Sdim flags used with WARNS=4 in the NetBSD source. Also make it 1241360784Sdim pass lint. 1242360784Sdim 1243360784Sdim * Many "cleanups" and hopefully not too many new bugs! 1244360784Sdim 1245336809Sdim2007-01-16 14:56 Anon Ymous <do@not.spam.me> 1246360784Sdim 1247336809Sdim * make several more files compile with gcc warnings 1248360784Sdim on and also make them pass lint. 1249360784Sdim 1250360784Sdim2007-01-16 14:54 Anon Ymous <do@not.spam.me> 1251360784Sdim 1252360784Sdim * fix a puts()/putc() usage goof in file.c 1253360784Sdim 1254360784Sdim * make file.c compile with gcc warnings and pass lint 1255360784Sdim 1256360784Sdim2006-12-11 16:49 Christos Zoulas <christos@astron.com> 1257360784Sdim 1258360784Sdim * fix byteswapping issue 1259360784Sdim 1260360784Sdim * report the number of bytes we tried to 1261360784Sdim allocate when allocation fails 1262336809Sdim 1263336809Sdim * add a few missed cases in the strength routine 1264360784Sdim 1265360784Sdim2006-12-08 16:32 Christos Zoulas <christos@astron.com> 1266360784Sdim 1267360784Sdim * store and print the line number of the magic 1268360784Sdim entry for debugging. 1269360784Sdim 1270360784Sdim * if the magic entry did not print anything, 1271360784Sdim don't treat it as a match 1272360784Sdim 1273360784Sdim * change the magic strength algorithm to take 1274360784Sdim into account the relationship op. 1275360784Sdim 1276360784Sdim * fix a bug in search where we could accidentally 1277360784Sdim return a match. 1278360784Sdim 1279360784Sdim * propagate the error return from match to 1280360784Sdim file_softmagic. 1281360784Sdim 1282360784Sdim2006-11-25 13:35 Christos Zoulas <christos@astron.com> 1283360784Sdim 1284360784Sdim * Don't store the current offset in the magic 1285360784Sdim struct, because it needs to be restored and 1286360784Sdim it was not done properly all the time. Bug 1287360784Sdim found by: Arkadiusz Miskiewicz 1288360784Sdim 1289360784Sdim * Fix problem in the '\0' separator; and don't 1290360784Sdim print it as an additional separator; print 1291360784Sdim it as the only separator. 1292360784Sdim 1293360784Sdim2006-11-17 10:51 Christos Zoulas <christos@astron.com> 1294360784Sdim 1295360784Sdim * Added a -0 option to print a '\0' separator 1296360784Sdim Etienne Buira <etienne.buira@free.fr> 1297353358Sdim 1298353358Sdim2006-10-31 15:14 Christos Zoulas <christos@astron.com> 1299360784Sdim 1300353358Sdim * Check offset before copying (Mike Frysinger) 1301360784Sdim 1302360784Sdim * merge duplicated code 1303360784Sdim 1304360784Sdim * add quad date support 1305360784Sdim 1306360784Sdim * make sure that we nul terminate desc (Ryoji Kanai) 1307360784Sdim 1308360784Sdim * don't process elf notes multiple times 1309360784Sdim 1310360784Sdim * allow -z to report empty compressed files 1311360784Sdim 1312360784Sdim * use calloc to initialize the ascii buffers (Jos van den Oever) 1313360784Sdim 1314360784Sdim2006-06-08 11:11 Christos Zoulas <christos@astron.com> 1315360784Sdim 1316360784Sdim * QNX fixes (Mike Gorchak) 1317360784Sdim 1318360784Sdim * Add quad support. 1319360784Sdim 1320360784Sdim * FIFO checks (Dr. Werner Fink) 1321360784Sdim 1322360784Sdim * Linux ELF fixes (Dr. Werner Fink) 1323360784Sdim 1324336809Sdim * Magic format checks (Dr. Werner Fink) 1325360784Sdim 1326360784Sdim * Magic format function improvent (Karl Chen) 1327360784Sdim 1328360784Sdim2006-05-03 11:11 Christos Zoulas <christos@astron.com> 1329336809Sdim 1330360784Sdim * Pick up some elf changes and some constant fixes from SUSE 1331360784Sdim 1332360784Sdim * Identify gnu tar vs. posix tar 1333360784Sdim 1334360784Sdim * When keep going, don't print spurious newlines (Radek Vokal) 1335360784Sdim 1336360784Sdim2006-04-01 12:02 Christos Zoulas <christos@astron.com> 1337360784Sdim 1338353358Sdim * Use calloc instead of malloc (Mike Frysinger) 1339336809Sdim 1340336809Sdim * Fix configure script to detect wctypes.h (Mike Frysinger) 1341360784Sdim 1342360784Sdim2006-03-02 16:06 Christos Zoulas <christos@astron.com> 1343336809Sdim 1344336809Sdim * Print empty if the file is (Mike Frysinger) 1345360784Sdim 1346360784Sdim * Don't try to read past the end of the buffer (Mike Frysinger) 1347344779Sdim 1348360784Sdim * Sort magic entries by strength [experimental] 1349360784Sdim 1350360784Sdim2005-11-29 13:26 Christos Zoulas <christos@astron.com> 1351360784Sdim 1352360784Sdim * Use iswprint() to convert the output string. 1353360784Sdim (Bastien Nocera) 1354360784Sdim 1355360784Sdim2005-10-31 8:54 Christos Zoulas <christos@astron.com> 1356360784Sdim 1357344779Sdim * Fix regression where the core info was not completely processed 1358336809Sdim (Radek Vokal) 1359336809Sdim 1360360784Sdim2005-10-20 11:15 Christos Zoulas <christos@astron.com> 1361360784Sdim 1362360784Sdim * Middle Endian magic (Diomidis Spinellis) 1363360784Sdim 1364360784Sdim2005-10-17 11:15 Christos Zoulas <christos@astron.com> 1365344779Sdim 1366360784Sdim * Open with O_BINARY for CYGWIN (Corinna Vinschen) 1367336809Sdim 1368360784Sdim * Don't close stdin (Arkadiusz Miskiewicz) 1369360784Sdim 1370360784Sdim * Look for note sections in non executables. 1371360784Sdim 1372360784Sdim2005-09-20 13:33 Christos Zoulas <christos@astron.com> 1373336809Sdim 1374336809Sdim * Don't print SVR4 Style in core files multiple times 1375336809Sdim (Radek Vokal) 1376344779Sdim 1377336809Sdim2005-08-27 04:09 Christos Zoulas <christos@astron.com> 1378344779Sdim 1379360784Sdim * Cygwin changes Corinna Vinschen 1380344779Sdim 1381344779Sdim2005-08-18 09:53 Christos Zoulas <christos@astron.com> 1382336809Sdim 1383336809Sdim * Remove erroreous mention of /etc/magic in the file man page 1384336809Sdim This is gentoo bug 101639. (Mike Frysinger) 1385336809Sdim 1386336809Sdim * Cross-compile support and detection (Mike Frysinger) 1387344779Sdim 1388344779Sdim2005-08-12 10:17 Christos Zoulas <christos@astron.com> 1389344779Sdim 1390353358Sdim * Add -h flag and dereference symlinks if POSIXLY_CORRECT 1391344779Sdim is set. 1392344779Sdim 1393344779Sdim2005-07-29 13:57 Christos Zoulas <christos@astron.com> 1394344779Sdim 1395344779Sdim * Avoid search and regex buffer overflows (Kelledin) 1396344779Sdim 1397344779Sdim2005-07-12 11:48 Christos Zoulas <christos@astron.com> 1398344779Sdim 1399344779Sdim * Provide stub implementations for {v,}nsprintf() for older 1400344779Sdim OS's that don't have them. 1401344779Sdim * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 1402344779Sdim to AC_TYPE_MBSTATE_T. 1403344779Sdim 1404344779Sdim2005-06-25 11:48 Christos Zoulas <christos@astron.com> 1405353358Sdim 1406344779Sdim * Dynamically allocate the string buffers and make the 1407344779Sdim default read size 256K. 1408344779Sdim 1409344779Sdim2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 1410353358Sdim 1411353358Sdim * Dragonfly ELF note support 1412353358Sdim 1413344779Sdim2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 1414344779Sdim 1415344779Sdim * Avoid NULL pointer dereference in time conversion. 1416344779Sdim 1417344779Sdim2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 1418344779Sdim 1419344779Sdim * Add indirect magic offset support, and search mode. 1420344779Sdim 1421344779Sdim2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 1422344779Sdim 1423344779Sdim * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 1424344779Sdim If a CRLF text file happens to have CR at offset HOWMANY - 1 1425344779Sdim (currently 0xffff), it should not be counted as CR line 1426344779Sdim terminator. 1427344779Sdim If a line has length exactly MAXLINELEN, it should not yet be 1428344779Sdim treated as a ``very long line'', as MAXLINELEN is ``longest sane 1429344779Sdim line length''. 1430344779Sdim With CRLF, the line length was not computed correctly, and even 1431344779Sdim lines of length MAXLINELEN - 1 were treated as ``very long''. 1432344779Sdim 1433344779Sdim2004-12-07 14:15 Christos Zoulas <christos@astron.com> 1434344779Sdim 1435344779Sdim * bzip2 needs a lot of input buffer space on some files 1436344779Sdim before it can begin uncompressing. This makes file -z 1437344779Sdim fail on some bz2 files. Fix it by giving it a copy of 1438344779Sdim the file descriptor to read as much as it wants if we 1439344779Sdim have access to it. <christos@astron.com> 1440344779Sdim 1441344779Sdim2004-11-24 12:39 Christos Zoulas <christos@astron.com> 1442360784Sdim 1443360784Sdim * Stack smash fix, and ELF more conservative reading. 1444360784Sdim Jakub Bogusz <qboosh@pld-linux.org> 1445353358Sdim 1446336809Sdim2004-11-20 18:50 Christos Zoulas <christos@astron.com> 1447360784Sdim 1448353358Sdim * New FreeBSD version parsing code: 1449360784Sdim Jon Noack <noackjr@alumni.rice.edu> 1450360784Sdim 1451360784Sdim * Hackish support for ucs16 strings <christos@astron.com> 1452360784Sdim 1453360784Sdim2004-11-13 03:07 Christos Zoulas <christos@astron.com> 1454360784Sdim 1455360784Sdim * print the file name and line number in syntax errors. 1456360784Sdim 1457360784Sdim2004 10-12 10:50 Christos Zoulas <christos@astron.com> 1458360784Sdim 1459360784Sdim * Fix stack overwriting on 0 length strings: Tim Waugh 1460360784Sdim <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 1461360784Sdim 1462360784Sdim2004-09-27 11:30 Christos Zoulas <christos@astron.com> 1463360784Sdim 1464336809Sdim * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 1465336809Sdim 1466336809Sdim * Fix small memory leaks; caught by: Tamas Sarlos 1467336809Sdim <stamas@csillag.ilab.sztaki.hu> 1468360784Sdim 1469360784Sdim2004-07-24 16:33 Christos Zoulas <christos@astron.com> 1470360784Sdim 1471336809Sdim * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 1472360784Sdim 1473360784Sdim * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 1474360784Sdim 1475360784Sdim * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 1476360784Sdim 1477360784Sdim * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 1478360784Sdim 1479360784Sdim2004-04-12 10:55 Christos Zoulas <christos@astron.com> 1480360784Sdim 1481336809Sdim * make sure that magic formats match magic types during compilation 1482336809Sdim 1483360784Sdim * fix broken sgi magic file 1484360784Sdim 1485360784Sdim2004-04-06 20:36 Christos Zoulas <christos@astron.com> 1486360784Sdim 1487336809Sdim * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 1488336809Sdim 1489360784Sdim * magic fixes 1490360784Sdim 1491360784Sdim2004-03-22 15:25 Christos Zoulas <christos@astron.com> 1492360784Sdim 1493360784Sdim * Lots of mime fixes 1494360784Sdim (Joerg Ostertag) <ostertag@rechengilde.de> 1495360784Sdim 1496360784Sdim * FreeBSD ELF version handling 1497360784Sdim (Edwin Groothuis) <edwin@mavetju.org> 1498360784Sdim 1499360784Sdim * correct cleanup in all cases; don't just close the file. 1500360784Sdim (Christos Zoulas) <christos@astron.com> 1501360784Sdim 1502360784Sdim * add gettext message catalogue support 1503360784Sdim (Michael Piefel) <piefel@debian.org> 1504360784Sdim 1505360784Sdim * better printout for unreadable files 1506360784Sdim (Michael Piefel) <piefel@debian.org> 1507336809Sdim 1508353358Sdim * compensate for missing MAXPATHLEN 1509353358Sdim (Michael Piefel) <piefel@debian.org> 1510336809Sdim 1511336809Sdim * add wide character string length computation 1512360784Sdim (Michael Piefel) <piefel@debian.org> 1513360784Sdim 1514360784Sdim * Avoid infinite loops caused by bad elf alignments 1515360784Sdim or name and description note sizes. Reported by 1516336809Sdim (Mikael Magnusson) <mmikael@comhem.se> 1517360784Sdim 1518360784Sdim2004-03-09 13:55 Christos Zoulas <christos@astron.com> 1519360784Sdim 1520360784Sdim * Fix possible memory leak on error and add missing regfree 1521360784Sdim (Dmitry V. Levin) <ldv@altlinux.org> 1522360784Sdim 1523360784Sdim2003-12-23 12:12 Christos Zoulas <christos@astron.com> 1524360784Sdim 1525353358Sdim * fix -k flag (Maciej W. Rozycki) 1526360784Sdim 1527360784Sdim2003-11-18 14:10 Christos Zoulas <christos@astron.com> 1528360784Sdim 1529360784Sdim * Try to give us much info as possible on corrupt elf files. 1530360784Sdim (Willy Tarreau) <willy@w.ods.org> 1531336809Sdim * Updated python bindings (Brett Funderburg) 1532360784Sdim <brettf@deepfile.com> 1533360784Sdim 1534360784Sdim2003-11-11 15:03 Christos Zoulas <christos@astron.com> 1535360784Sdim 1536360784Sdim * Include file.h first, because it includes config.h 1537360784Sdim breaks largefile test macros otherwise. 1538360784Sdim (Paul Eggert <eggert@CS.UCLA.EDU> via 1539336809Sdim Lars Hecking <lhecking@nmrc.ie>) 1540360784Sdim 1541360784Sdim2003-10-14 21:39 Christos Zoulas <christos@astron.com> 1542360784Sdim 1543360784Sdim * Python bindings (Brett Funderburg) <brettf@deepfile.com> 1544360784Sdim * Don't lookup past the end of the buffer 1545360784Sdim (Chad Hanson) <chanson@tcs-sec.com> 1546344779Sdim * Add MAGIC_ERROR and api on magic_errno() 1547360784Sdim 1548360784Sdim2003-10-08 12:40 Christos Zoulas <christos@astron.com> 1549360784Sdim 1550360784Sdim * handle error conditions from compile as fatal 1551360784Sdim (Antti Kantee) <pooka@netbsd.org> 1552360784Sdim * handle magic filename parsing sanely 1553360784Sdim * more magic fixes. 1554360784Sdim * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 1555360784Sdim * describe magic file handling 1556360784Sdim (Bryan Henderson) <bryanh@giraffe-data.com> 1557336809Sdim 1558360784Sdim2003-09-12 15:09 Christos Zoulas <christos@astron.com> 1559360784Sdim 1560360784Sdim * update magic files. 1561360784Sdim * remove largefile support from file.h; it breaks things on most OS's 1562360784Sdim 1563360784Sdim2003-08-10 10:25 Christos Zoulas <christos@astron.com> 1564360784Sdim 1565360784Sdim * fix unmapping'ing of mmaped files. 1566336809Sdim 1567360784Sdim2003-07-10 12:03 Christos Zoulas <christos@astron.com> 1568360784Sdim 1569360784Sdim * don't exit with -1 on error; always exit 1 (Marty Leisner) 1570336809Sdim * restore utimes code. 1571360784Sdim 1572360784Sdim2003-06-10 17:03 Christos Zoulas <christos@astron.com> 1573360784Sdim 1574360784Sdim * make sure we don't access uninitialized memory. 1575360784Sdim * pass lint 1576360784Sdim * #ifdef __cplusplus in magic.h 1577360784Sdim 1578360784Sdim2003-05-25 19:23 Christos Zoulas <christos@astron.com> 1579360784Sdim 1580336809Sdim * rename cvs magic file to revision to deal with 1581336809Sdim case insensitive filesystems. 1582353358Sdim 1583353358Sdim2003-05-23 17:03 Christos Zoulas <christos@astron.com> 1584353358Sdim 1585336809Sdim * documentation fixes from Michael Piefel <piefel@debian.org> 1586336809Sdim * magic fixes (various) 1587336809Sdim * revert basename magic in .mgc name determination 1588336809Sdim * buffer protection in uncompress, 1589353358Sdim signness issues, 1590336809Sdim close files 1591336809Sdim Maciej W. Rozycki <macro@ds2.pg.gda.pl 1592360784Sdim 1593353358Sdim2003-04-21 20:12 Christos Zoulas <christos@astron.com> 1594353358Sdim 1595360784Sdim * fix zsh magic 1596360784Sdim 1597360784Sdim2003-04-04 16:59 Christos Zoulas <christos@astron.com> 1598360784Sdim 1599360784Sdim * fix operand sort order in string. 1600360784Sdim 1601360784Sdim2003-04-02 17:30 Christos Zoulas <christos@astron.com> 1602360784Sdim 1603353358Sdim * cleanup namespace in magic.h 1604360784Sdim 1605360784Sdim2003-04-02 13:50 Christos Zoulas <christos@astron.com> 1606360784Sdim 1607360784Sdim * Magic additions (Alex Ott) 1608360784Sdim * Fix bug that broke VPATH compilation (Peter Breitenlohner) 1609360784Sdim 1610360784Sdim2003-03-28 16:03 Christos Zoulas <christos@astron.com> 1611336809Sdim 1612353358Sdim * remove packed attribute from magic struct. 1613336809Sdim * make the magic struct properly aligned. 1614336809Sdim * bump version number of compiled files to 2. 1615353358Sdim 1616353358Sdim2003-03-27 13:10 Christos Zoulas <christos@astron.com> 1617353358Sdim 1618353358Sdim * separate tar detection and run it before softmagic. 1619336809Sdim * fix reversed symlink test. 1620336809Sdim * fix version printing. 1621353358Sdim * make separator a string instead of a char. 1622353358Sdim * update manual page and sort options. 1623336809Sdim 1624336809Sdim2003-03-26 11:00 Christos Zoulas <christos@astron.com> 1625336809Sdim 1626336809Sdim * Pass lint 1627336809Sdim * make NULL in magic_file mean stdin 1628336809Sdim * Fix "-" argument to file to pass NULL to magic_file 1629336809Sdim * avoid pointer casts by using memcpy 1630336809Sdim * rename magic_buf -> magic_buffer 1631336809Sdim * keep only the first error 1632336809Sdim * manual page: new sentence, new line 1633336809Sdim * fix typo in api function (magic_buf -> magic_buffer) 1634336809Sdim