12011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 2 3 * remove patchlevel.h 4 * Fix read past allocated memory caused by double-incrementing 5 a pointer in a loop (reported by Roberto Maar) 6 72011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 8 9 * Fix cdf string buffer setting (Sven Anders) 10 112011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 12 13 * Eliminate MAXPATHLEN and use dynamic allocation for 14 path and file buffers. 15 162011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 17 18 * binary tests on magic entries with masks could spuriously 19 get converted to ascii. 20 212011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 22 23 * Improve file.man (remove BUGS, present email addresses consistently). 24 252011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 26 27 * add lrzip support (from Ville Skytta) 28 292011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 30 31 * fix CDF bounds checking (Guy Helmer) 32 332011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 34 35 * add cdf_ctime() that prints a meaningful error when time cannot 36 be converted. 37 382011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 39 40 * help and version output to stdout. 41 42 * When matching softmagic for ascii files, don't just print 43 the softmagic classification, keep going and print the 44 text classification too. This fixes broken troff files when 45 we moved them from keyword recognition to softmagic 46 (they stopped printing "with CRLF" etc.) 47 Reported by Doug McIlroy. 48 492011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 50 51 * Fix two potential buffer overruns in apprentice_list. 52 532011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 54 55 * New Python binding in pure Python. 56 * Update libmagic(3). 57 582011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 59 60 * Fix Python bindings (including recent Python 3 compatibility 61 update). 62 632011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 64 65 * magic/Makefile.am: make it easier to recover from magic build failures. 66 * Fix pstring length specifier parsing to avoid generating invalid 67 magic files. 68 * Add pstring length "J" (for "JPEG") to specify that the length 69 include itself. 70 * Fix JPEG comment parsing at last using pstring/HJ! 71 * Ignore section 5 man pages in doc/.cvsignore. 72 732010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 74 75 * Add pstring/BHhLl to specify the type of the length of pascal 76 strings. 77 782010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 79 80 * Fix "-e soft": it was ignored when softmagic was called 81 during asciimagic. 82 * Improve comments and use "unsigned char" in tar.h/is_tar.c. 83 842010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 85 86 * Make bug reporting addresses more visible. 87 882010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 89 90 * Add tcl magic from Gustaf Neumann 91 922010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 93 94 * Fix the whitespace comparing code (Christopher Chittleborough) 95 962010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 97 98 * allow string/t to work (Jan Kaluza) 99 1002010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 101 102 * Apply some patches from Ubuntu and Fedora. 103 1042010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 105 106 * Apply all patches from Debian package 5.04-6 which have not 107 already been applied and are not Debian-specific. 108 1092010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 110 111 * Minor security fix to softmagic.c (don't use untrusted 112 string as printf format). 113 1142010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 115 116 * MINGW32 portability from LRN 117 118 * Don't warn about escaping magic regex chars when we are in a regex. 119 1202010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 121 122 * Only try to print prpsinfo for core files. (Jan Kaluza) 123 1242010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 125 126 * Try more elf offsets for Debian core files. (Arnaud Giersch) 127 1282010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 129 130 * Clarify which sort of CDF we mean. 131 1322010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 133 134 * Re-jig Zip file type magic so that unsupported special 135 Zip types (those with "mimetype" at offset 30) can be 136 recognized. 137 1382010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 139 140 * Add support for OCF (EPUB) files (application/epub+zip) 141 1422010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 143 144 * Fix core-dump from unbound loop: 145 https://bugzilla.redhat.com/show_bug.cgi?id=533245 146 1472010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 148 149 * print proper mime for crystal reports file 150 151 * print the last summary information of a cdf document, not the 152 first so that nested documents print the right info 153 1542010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 155 156 * bring back some fixes from OpenBSD: 157 - make gcc2 builds file 158 - fix typos in a magic file comment 159 1602009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 161 162 * ctime/asctime can return NULL on some OS's although 163 they should not (Toshit Antani) 164 1652009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 166 167 * Centralize magic path handling routines and remove the 168 special-casing from file.c so that the python module for 169 example comes up with the same magic path (Fixes ~/.magic 170 handling) (from Gab) 171 1722009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 173 174 * When magic argument is a directory, read the files in 175 strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 176 1772009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 178 179 * Combine overlapping epoc and psion magic files into one (epoc). 180 181 * Add some more EPOC MIME types. 182 1832009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 184 185 * Fix 3 bugs (From Ian Darwin): 186 - file_showstr could move one past the end of the array 187 - parse_apple did not nul terminate the string in the overflow case 188 - parse_mime truncated the wrong string in the overflow case 189 1902009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 191 192 * Include Localstuff when compiling magic. 193 1942009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 195 196 * Fix logic for including mygetopts.h 197 198 * Make cdf.c compile again with debugging 199 200 * Add the necessary field handling for crystal reports files to work 201 2022009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 203 204 * Stop "(if" identifying Lisp files, that's plain dumb! 205 2062009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 207 208 * Add a couple of missing MP3 MIME types. 209 2102009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 211 212 * Add full range of hash-bang tests for Python and Ruby. 213 214 * Add MIME types for Python and Ruby scripts. 215 2162009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 217 218 * off by one in parsing hw capabilities in elf 219 (Cheng Renquan) 220 2212009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 222 223 * lint fixes and more from NetBSD 224 2252009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 226 227 * Avoid null dereference in cdf code (Drew Yao) 228 229 * More cdf bounds checks and overflow checks 230 2312009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 232 233 * Buffer overflow fixes from Drew Yao 234 2352009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 236 237 * Fix more cdf lossage. All the documents I have 238 right now print the correct information. 239 2402009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 241 242 * don't print \012- separators in the same magic entry 243 if it consists of multiple magic printing lines. 244 2452009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 246 247 * Avoid file descriptor leak in compress code from 248 (Daniel Novotny) 249 2502009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 251 252 * Allow escaping of relation characters, so that we can say \^[A-Z] 253 and the ^ is not eaten as a relation char. 254 255 * Fix troff and fortran to their previous glory using 256 regex. This was broken since their removel from ascmagic. 257 2582009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 259 260 * don't use strlen in strndup() (Toby Peterson) 261 2622009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 263 264 * avoid c99 syntax. 265 2662009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 267 268 * make the cdf code use the buffer first if available, 269 and then the fd code. 270 2712009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 272 273 * look for struct option to determine if getopt.h is usable for IRIX. 274 275 * sanitize cdf document strings 276 2772009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 278 279 * fix OS/2 warnings. 280 2812008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 282 283 * fix initial offset calculation for non 4K sector files 284 285 * add loop limits to avoid DoS attacks by constructing 286 looping sector references. 287 2882008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 289 290 * fix memory botches on cdf file parsing. 291 292 * exit with non-zero value for any error, not just for the last 293 file processed. 294 2952008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 296 297 * Replace all str{cpy,cat} functions with strl{cpy,cat} 298 * Ensure that strl{cpy,cat} are included in libmagic, 299 as needed. 300 3012008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 302 303 * Handle ID3 format files. 304 3052008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 306 307 * Fix --mime, --mime-type and --mime-encoding under new scheme. 308 309 * Rename "ascii" to "text" and add "encoding" test. 310 311 * Return a precise ("utf-16le" or "utf-16be") MIME charset for 312 UTF-16. 313 314 * Fix error in comment caused by automatic indentation adding 315 words! 316 3172008-11-06 10:35 Christos Zoulas <christos@astron.com> 318 319 * use memchr instead of strchr because the string 320 might not be NUL terminated (Scott MacVicar) 321 3222008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 323 324 * Fix a printf with a non-literal format string. 325 326 * Fix formatting and punctuation of help for "--apple". 327 3282008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 329 330 * Correct words counts in comments of struct magic. 331 332 * Fix handle_annotation to allow both Apple and MIME types to be 333 printed, and to return correct code if MIME type is 334 printed (1, not 0) or if there's an error (-1 not 1). 335 336 * Fix output of charset for MIME type (precede with semi-colon; 337 fixes Debian bug #501460). 338 339 * Fix potential attacks via conversion specifications in magic 340 strings. 341 342 * Add a FIXME for Debian bug #488562 (magic files should be 343 read in a defined order, by sorting the names). 344 3452008-10-18 16:45 Christos Zoulas <christos@astron.com> 346 347 * Added APPLE file creator/type 348 3492008-10-12 10:20 Christos Zoulas <christos@astron.com> 350 351 * Added CDF parsing 352 3532008-10-09 16:40 Christos Zoulas <christos@astron.com> 354 355 * filesystem and msdos patches (Joerg Jenderek) 356 3572008-10-09 13:20 Christos Zoulas <christos@astron.com> 358 359 * correct --exclude documentation issues: remove troff and fortran 360 and rename "token" to "tokens". (Randy McMurchy) 361 3622008-10-01 10:30 Christos Zoulas <christos@astron.com> 363 364 * Read ~/.magic in addition to the default magic file not instead 365 of, as documented in the man page. 366 3672008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 368 369 * Comment out graphviz patterns, as they match too many files. 370 3712008-08-30 12:54 Christos Zoulas <christos@astron.com> 372 373 * Don't eat trailing \n in magic enties. 374 375 * Cast defines to allow compilation using a c++ compiler. 376 3772008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 378 379 * Add text/x-lua MIME type for Lua scripts. 380 381 * Escape { in regex in graphviz patterns. 382 3832008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 384 385 * Add MIME types for special files. 386 387 * Use access to give more accurate information for files that 388 can't be opened. 389 390 * Add a TODO list. 391 3922008-07-02 11:15 Christos Zoulas <christos@astron.com> 393 394 * add !:strength op to adjust magic strength (experimental) 395 3962008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 397 398 * Fix automake error in configure.ac. 399 400 * Add MIME type for Psion Sketch files. 401 4022008-06-05 08:59 Christos Zoulas <christos@astron.com> 403 404 * Don't print warnings about bad namesize in stripped 405 binaries with PT_NOTE is still there, and the actual 406 note is gone (Jakub Jelinek) 407 4082008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 409 410 * magic/Magdir/elf: 411 Note invalid byte order for little-endian SPARC32PLUS. 412 Add SPARC V9 vendor extensions and memory model. 413 414 * src/elfclass.h: 415 Pass target machine to doshn (for Solaris hardware capabilities). 416 417 * src/readelf.c (doshn): 418 Add support for Solaris hardware/software capabilities. 419 420 * src/readelf.h: 421 Ditto. 422 423 * src/vasprintf.c (dispatch): 424 Add support for ll modifier. 425 4262008-05-16 10:25 Christos Zoulas <christos@astron.com> 427 428 * Fix compiler warnings. 429 430 * remove stray printf, and fix a vprintf bug. (Martin Dorey) 431 4322008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 433 434 * src/Makefile.am: 435 Ensure that getopt_long and [v]asprintf are included in libmagic, 436 as needed. 437 438 Remove unnecessary EXTRA_DIST. 439 440 * src/Makefile.in: 441 Rerun automake. 442 443 * src/vasprintf.c (dispatch): 444 Fix variable precision bug: be sure to step past '*'. 445 446 * src/vasprintf.c (core): 447 Remove unreachable code. 448 449 * src/apprentice.c (set_test_type): 450 Add cast to avoid compiler warning. 451 4522008-04-22 23:45 Christos Zoulas <christos@astron.com> 453 454 * Add magic submission guidelines (Abel Cheung) 455 456 * split msdos and windows magic (Abel Cheung) 457 4582008-04-04 11:00 Christos Zoulas <christos@astron.com> 459 460 * >= <= is not supported, so fix the magic and warn about it. 461 reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 462 4632008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 464 465 * src/readelf.c (donote): 466 ELF core file command name/line bug fixes and enhancements: 467 468 Try larger offsets first to avoid false matches 469 from earlier data that happen to look like strings; 470 this primarily affected SunOS 5.x 32-bit Intel core files. 471 472 Add support for command line (instead of just short name) 473 for SunOS 5.x. 474 475 Add information about NT_PSINFO for SunOS 5.x. 476 477 Only trim whitespace from end of command line. 478 4792007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 480 481 * Change strength of ! from MULT to 0, as it matches almost 482 anything (Reuben Thomas) 483 484 * Debian fixes (Reuben Thomas) 485 4862007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 487 488 * Clarify UTF-8 BOM message (Reuben Thomas) 489 490 * Add HTML comment to token list in names.h 491 4922007-02-04 15:50 Christos Zoulas <christos@astron.com> 493 494 * Debian fixes (Reuben Thomas) 495 4962007-02-04 11:31 Christos Zoulas <christos@astron.com> 497 498 * !:mime annotations in magic files (Reuben Thomas) 499 5002007-01-29 15:35 Christos Zoulas <christos@astron.com> 501 502 * zero out utime/utimes structs (Gavin Atkinson) 503 5042007-01-26 13:45 Christos Zoulas <christos@astron.com> 505 506 * reduce writable data from Diego "Flameeyes" Petten 507 5082007-12-28 15:06 Christos Zoulas <christos@astron.com> 509 510 * strtof detection 511 512 * remove bogus regex magic that could cause a DoS 513 514 * better mismatch version message 515 5162007-12-27 11:35 Christos Zoulas <christos@astron.com> 517 518 * bring back some fixes from OpenBSD 519 520 * treat ELF dynamic objects as executables 521 522 * fix gcc warnings 523 5242007-12-01 19:55 Christos Zoulas <christos@astron.com> 525 526 * make sure we have zlib.h and libz to compile the builtin 527 decompress code 528 5292007-10-28 20:48 Christos Zoulas <christos@astron.com> 530 531 * float and double magic support (Behan Webster) 532 5332007-10-28 20:48 Christos Zoulas <christos@astron.com> 534 535 * Convert fortran to a soft test (Reuben Thomas) 536 5372007-10-23 5:25 Christos Zoulas <christos@astron.com> 538 539 * Add --with-filename, and --no-filename (Reuben Thomas) 540 5412007-10-23 3:59 Christos Zoulas <christos@astron.com> 542 543 * Rest of the mime split (Reuben Thomas) 544 545 * Make usage message generated from the flags so that 546 they stay consistent (Reuben Thomas) 547 5482007-10-20 3:06 Christos Zoulas <christos@astron.com> 549 550 * typo in comment, missing ifdef QUICK, remove unneeded code 551 (Charles Longeau) 552 5532007-10-17 3:33 Christos Zoulas <christos@astron.com> 554 555 * Fix problem printing -\012 in some entries 556 557 * Separate magic type and encoding flags (Reuben Thomas) 558 5592007-10-09 3:55 Christos Zoulas <christos@astron.com> 560 561 * configure fix for int64 and strndup (Reuben Thomas) 562 5632007-09-26 4:45 Christos Zoulas <christos@astron.com> 564 565 * Add magic_descriptor() function. 566 567 * Fix regression in elf reading code where the core name was 568 not being printed. 569 570 * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 571 5722007-08-19 6:30 Christos Zoulas <christos@astron.com> 573 574 * Make mime format consistent so that it can 575 be easily parsed: 576 mimetype [charset=character-set] [encoding=encoding-mime-type] 577 578 Remove spurious extra text from some MIME type printouts 579 (mostly in is_tar). 580 581 Fix one case where -i produced nothing at all (for a 1-byte file, 582 which is now classed as application/octet-stream). 583 584 Remove 7/8bit classifications, since they were arbitrary 585 and not based on the file data. 586 587 This work was done by Reuben Thomas 588 5892007-05-24 10:00 Christos Zoulas <christos@astron.com> 590 591 * Fix another integer overflow (Colin Percival) 592 5932007-03-26 13:58 Christos Zoulas <christos@astron.com> 594 595 * make sure that all of struct magic_set is initialized appropriately 596 (Brett) 597 5982007-03-25 17:44 Christos Zoulas <christos@astron.com> 599 600 * reset left bytes in the buffer (Dmitry V. Levin) 601 602 * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 603 (Peter Avalos) 604 6052007-03-15 10:51 Christos Zoulas <christos@astron.com> 606 607 * fix fortran and nroff reversed tests (Dmitry V. Levin) 608 609 * fix exclude option (Dmitry V. Levin) 610 6112007-02-08 17:30 Christos Zoulas <christos@astron.com> 612 613 * fix integer underflow in file_printf which can lead to 614 to exploitable heap overflow (Jean-Sebastien Guay-Lero) 615 6162007-02-05 11:35 Christos Zoulas <christos@astron.com> 617 618 * make socket/pipe reading more robust 619 6202007-01-25 16:01 Christos Zoulas <christos@astron.com> 621 622 * Centralize all the tests in file_buffer. 623 624 * Add exclude flag. 625 6262007-01-18 05:29 Anon Ymous <do@not.spam.me> 627 628 * Move the "type" detection code from parse() into its own table 629 driven routine. This avoids maintaining multiple lists in 630 file.h. 631 632 * Add an optional conditional field (ust before the type field). 633 This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 634 likely to go away. 635 6362007-01-16 23:24 Anon Ymous <do@not.spam.me> 637 638 * Fix an initialization bug in check_mem(). 639 6402007-01-16 14:58 Anon Ymous <do@not.spam.me> 641 642 * Add a "default" type to print a message if nothing previously 643 matched at that level or since the last default at that 644 level. This is useful for setting up switch-like statements. 645 It can also be used to do if/else constructions without a 646 redundant second test. 647 648 * Fix the "x" special case test so that one can test for that 649 string with "=x". 650 651 * Allow "search" to search the entire buffer if the "/N" 652 search count is missing. 653 654 * Make "regex" work! It now starts its search at the 655 specified offset and takes an (optional) "/N" line count to 656 specify the search range; otherwise it searches to the end 657 of the file. The match is now grabbed correctly for format 658 strings and the offset set to the end of the match. 659 660 * Add a "/s" flag to "regex" and "search" to set the offset to 661 the start of the match. By default the offset is set to the 662 end of the match, as it is with other tests. This is mostly 663 useful for "regex". 664 665 * Make "search", "string" and "pstring" use the same 666 file_strncmp() routine so that they support the same flags; 667 "bestring16" and "lestring16" call the same routine, but 668 with flags = 0. Also add a "/C" flag (in analogy to "/c") 669 to ignore the case on uppercase (lowercase) characters in 670 the test string. 671 672 * Strict adherence to C style string escapes. A warnings are 673 printed when compiling. Note: previously "\a" was 674 incorrectly translated to 'a' instead of an <alert> (i.e., 675 BELL, typically 0x07). 676 677 * Make this compile with "-Wall -Wextra" and all the warning 678 flags used with WARNS=4 in the NetBSD source. Also make it 679 pass lint. 680 681 * Many "cleanups" and hopefully not too many new bugs! 682 6832007-01-16 14:56 Anon Ymous <do@not.spam.me> 684 685 * make several more files compile with gcc warnings 686 on and also make them pass lint. 687 6882007-01-16 14:54 Anon Ymous <do@not.spam.me> 689 690 * fix a puts()/putc() usage goof in file.c 691 692 * make file.c compile with gcc warnings and pass lint 693 6942006-12-11 16:49 Christos Zoulas <christos@astron.com> 695 696 * fix byteswapping issue 697 698 * report the number of bytes we tried to 699 allocate when allocation fails 700 701 * add a few missed cases in the strength routine 702 7032006-12-08 16:32 Christos Zoulas <christos@astron.com> 704 705 * store and print the line number of the magic 706 entry for debugging. 707 708 * if the magic entry did not print anything, 709 don't treat it as a match 710 711 * change the magic strength algorithm to take 712 into account the relationship op. 713 714 * fix a bug in search where we could accidentally 715 return a match. 716 717 * propagate the error return from match to 718 file_softmagic. 719 7202006-11-25 13:35 Christos Zoulas <christos@astron.com> 721 722 * Don't store the current offset in the magic 723 struct, because it needs to be restored and 724 it was not done properly all the time. Bug 725 found by: Arkadiusz Miskiewicz 726 727 * Fix problem in the '\0' separator; and don't 728 print it as an additional separator; print 729 it as the only separator. 730 7312006-11-17 10:51 Christos Zoulas <christos@astron.com> 732 733 * Added a -0 option to print a '\0' separator 734 Etienne Buira <etienne.buira@free.fr> 735 7362006-10-31 15:14 Christos Zoulas <christos@astron.com> 737 738 * Check offset before copying (Mike Frysinger) 739 740 * merge duplicated code 741 742 * add quad date support 743 744 * make sure that we nul terminate desc (Ryoji Kanai) 745 746 * don't process elf notes multiple times 747 748 * allow -z to report empty compressed files 749 750 * use calloc to initialize the ascii buffers (Jos van den Oever) 751 7522006-06-08 11:11 Christos Zoulas <christos@astron.com> 753 754 * QNX fixes (Mike Gorchak) 755 756 * Add quad support. 757 758 * FIFO checks (Dr. Werner Fink) 759 760 * Linux ELF fixes (Dr. Werner Fink) 761 762 * Magic format checks (Dr. Werner Fink) 763 764 * Magic format function improvent (Karl Chen) 765 7662006-05-03 11:11 Christos Zoulas <christos@astron.com> 767 768 * Pick up some elf changes and some constant fixes from SUSE 769 770 * Identify gnu tar vs. posix tar 771 772 * When keep going, don't print spurious newlines (Radek Vok�l) 773 7742006-04-01 12:02 Christos Zoulas <christos@astron.com> 775 776 * Use calloc instead of malloc (Mike Frysinger) 777 778 * Fix configure script to detect wctypes.h (Mike Frysinger) 779 7802006-03-02 16:06 Christos Zoulas <christos@astron.com> 781 782 * Print empty if the file is (Mike Frysinger) 783 784 * Don't try to read past the end of the buffer (Mike Frysinger) 785 786 * Sort magic entries by strength [experimental] 787 7882005-11-29 13:26 Christos Zoulas <christos@astron.com> 789 790 * Use iswprint() to convert the output string. 791 (Bastien Nocera) 792 7932005-10-31 8:54 Christos Zoulas <christos@astron.com> 794 795 * Fix regression where the core info was not completely processed 796 (Radek Vok�l) 797 7982005-10-20 11:15 Christos Zoulas <christos@astron.com> 799 800 * Middle Endian magic (Diomidis Spinellis) 801 8022005-10-17 11:15 Christos Zoulas <christos@astron.com> 803 804 * Open with O_BINARY for CYGWIN (Corinna Vinschen) 805 806 * Don't close stdin (Arkadiusz Miskiewicz) 807 808 * Look for note sections in non executables. 809 8102005-09-20 13:33 Christos Zoulas <christos@astron.com> 811 812 * Don't print SVR4 Style in core files multiple times 813 (Radek Vok�l) 814 8152005-08-27 04:09 Christos Zoulas <christos@astron.com> 816 817 * Cygwin changes Corinna Vinschen 818 8192005-08-18 09:53 Christos Zoulas <christos@astron.com> 820 821 * Remove erroreous mention of /etc/magic in the file man page 822 This is gentoo bug 101639. (Mike Frysinger) 823 824 * Cross-compile support and detection (Mike Frysinger) 825 8262005-08-12 10:17 Christos Zoulas <christos@astron.com> 827 828 * Add -h flag and dereference symlinks if POSIXLY_CORRECT 829 is set. 830 8312005-07-29 13:57 Christos Zoulas <christos@astron.com> 832 833 * Avoid search and regex buffer overflows (Kelledin) 834 8352005-07-12 11:48 Christos Zoulas <christos@astron.com> 836 837 * Provide stub implementations for {v,}nsprintf() for older 838 OS's that don't have them. 839 * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 840 to AC_TYPE_MBSTATE_T. 841 8422005-06-25 11:48 Christos Zoulas <christos@astron.com> 843 844 * Dynamically allocate the string buffers and make the 845 default read size 256K. 846 8472005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 848 849 * Dragonfly ELF note support 850 8512005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 852 853 * Avoid NULL pointer dereference in time conversion. 854 8552005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 856 857 * Add indirect magic offset support, and search mode. 858 8592005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 860 861 * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 862 If a CRLF text file happens to have CR at offset HOWMANY - 1 863 (currently 0xffff), it should not be counted as CR line 864 terminator. 865 If a line has length exactly MAXLINELEN, it should not yet be 866 treated as a ``very long line'', as MAXLINELEN is ``longest sane 867 line length''. 868 With CRLF, the line length was not computed correctly, and even 869 lines of length MAXLINELEN - 1 were treated as ``very long''. 870 8712004-12-07 14:15 Christos Zoulas <christos@astron.com> 872 873 * bzip2 needs a lot of input buffer space on some files 874 before it can begin uncompressing. This makes file -z 875 fail on some bz2 files. Fix it by giving it a copy of 876 the file descriptor to read as much as it wants if we 877 have access to it. <christos@astron.com> 878 8792004-11-24 12:39 Christos Zoulas <christos@astron.com> 880 881 * Stack smash fix, and ELF more conservative reading. 882 Jakub Bogusz <qboosh@pld-linux.org> 883 8842004-11-20 18:50 Christos Zoulas <christos@astron.com> 885 886 * New FreeBSD version parsing code: 887 Jon Noack <noackjr@alumni.rice.edu> 888 889 * Hackish support for ucs16 strings <christos@astron.com> 890 8912004-11-13 03:07 Christos Zoulas <christos@astron.com> 892 893 * print the file name and line number in syntax errors. 894 8952004 10-12 10:50 Christos Zoulas <christos@astron.com> 896 897 * Fix stack overwriting on 0 length strings: Tim Waugh 898 <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 899 9002004-09-27 11:30 Christos Zoulas <christos@astron.com> 901 902 * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 903 904 * Fix small memory leaks; caught by: Tamas Sarlos 905 <stamas@csillag.ilab.sztaki.hu> 906 9072004-07-24 16:33 Christos Zoulas <christos@astron.com> 908 909 * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 910 911 * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 912 913 * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 914 915 * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 916 9172004-04-12 10:55 Christos Zoulas <christos@astron.com> 918 919 * make sure that magic formats match magic types during compilation 920 921 * fix broken sgi magic file 922 9232004-04-06 20:36 Christos Zoulas <christos@astron.com> 924 925 * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 926 927 * magic fixes 928 9292004-03-22 15:25 Christos Zoulas <christos@astron.com> 930 931 * Lots of mime fixes 932 (Joerg Ostertag) <ostertag@rechengilde.de> 933 934 * FreeBSD ELF version handling 935 (Edwin Groothuis) <edwin@mavetju.org> 936 937 * correct cleanup in all cases; don't just close the file. 938 (Christos Zoulas) <christos@astron.com> 939 940 * add gettext message catalogue support 941 (Michael Piefel) <piefel@debian.org> 942 943 * better printout for unreadable files 944 (Michael Piefel) <piefel@debian.org> 945 946 * compensate for missing MAXPATHLEN 947 (Michael Piefel) <piefel@debian.org> 948 949 * add wide character string length computation 950 (Michael Piefel) <piefel@debian.org> 951 952 * Avoid infinite loops caused by bad elf alignments 953 or name and description note sizes. Reported by 954 (Mikael Magnusson) <mmikael@comhem.se> 955 9562004-03-09 13:55 Christos Zoulas <christos@astron.com> 957 958 * Fix possible memory leak on error and add missing regfree 959 (Dmitry V. Levin) <ldv@altlinux.org> 960 9612003-12-23 12:12 Christos Zoulas <christos@astron.com> 962 963 * fix -k flag (Maciej W. Rozycki) 964 9652003-11-18 14:10 Christos Zoulas <christos@astron.com> 966 967 * Try to give us much info as possible on corrupt elf files. 968 (Willy Tarreau) <willy@w.ods.org> 969 * Updated python bindings (Brett Funderburg) 970 <brettf@deepfile.com> 971 9722003-11-11 15:03 Christos Zoulas <christos@astron.com> 973 974 * Include file.h first, because it includes config.h 975 breaks largefile test macros otherwise. 976 (Paul Eggert <eggert@CS.UCLA.EDU> via 977 Lars Hecking <lhecking@nmrc.ie>) 978 9792003-10-14 21:39 Christos Zoulas <christos@astron.com> 980 981 * Python bindings (Brett Funderburg) <brettf@deepfile.com> 982 * Don't lookup past the end of the buffer 983 (Chad Hanson) <chanson@tcs-sec.com> 984 * Add MAGIC_ERROR and api on magic_errno() 985 9862003-10-08 12:40 Christos Zoulas <christos@astron.com> 987 988 * handle error conditions from compile as fatal 989 (Antti Kantee) <pooka@netbsd.org> 990 * handle magic filename parsing sanely 991 * more magic fixes. 992 * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 993 * describe magic file handling 994 (Bryan Henderson) <bryanh@giraffe-data.com> 995 9962003-09-12 15:09 Christos Zoulas <christos@astron.com> 997 998 * update magic files. 999 * remove largefile support from file.h; it breaks things on most OS's 1000 10012003-08-10 10:25 Christos Zoulas <christos@astron.com> 1002 1003 * fix unmapping'ing of mmaped files. 1004 10052003-07-10 12:03 Christos Zoulas <christos@astron.com> 1006 1007 * don't exit with -1 on error; always exit 1 (Marty Leisner) 1008 * restore utimes code. 1009 10102003-06-10 17:03 Christos Zoulas <christos@astron.com> 1011 1012 * make sure we don't access uninitialized memory. 1013 * pass lint 1014 * #ifdef __cplusplus in magic.h 1015 10162003-05-25 19:23 Christos Zoulas <christos@astron.com> 1017 1018 * rename cvs magic file to revision to deal with 1019 case insensitive filesystems. 1020 10212003-05-23 17:03 Christos Zoulas <christos@astron.com> 1022 1023 * documentation fixes from Michael Piefel <piefel@debian.org> 1024 * magic fixes (various) 1025 * revert basename magic in .mgc name determination 1026 * buffer protection in uncompress, 1027 signness issues, 1028 close files 1029 Maciej W. Rozycki <macro@ds2.pg.gda.pl 1030 10312003-04-21 20:12 Christos Zoulas <christos@astron.com> 1032 1033 * fix zsh magic 1034 10352003-04-04 16:59 Christos Zoulas <christos@astron.com> 1036 1037 * fix operand sort order in string. 1038 10392003-04-02 17:30 Christos Zoulas <christos@astron.com> 1040 1041 * cleanup namespace in magic.h 1042 10432003-04-02 13:50 Christos Zoulas <christos@astron.com> 1044 1045 * Magic additions (Alex Ott) 1046 * Fix bug that broke VPATH compilation (Peter Breitenlohner) 1047 10482003-03-28 16:03 Christos Zoulas <christos@astron.com> 1049 1050 * remove packed attribute from magic struct. 1051 * make the magic struct properly aligned. 1052 * bump version number of compiled files to 2. 1053 10542003-03-27 13:10 Christos Zoulas <christos@astron.com> 1055 1056 * separate tar detection and run it before softmagic. 1057 * fix reversed symlink test. 1058 * fix version printing. 1059 * make separator a string instead of a char. 1060 * update manual page and sort options. 1061 10622003-03-26 11:00 Christos Zoulas <christos@astron.com> 1063 1064 * Pass lint 1065 * make NULL in magic_file mean stdin 1066 * Fix "-" argument to file to pass NULL to magic_file 1067 * avoid pointer casts by using memcpy 1068 * rename magic_buf -> magic_buffer 1069 * keep only the first error 1070 * manual page: new sentence, new line 1071 * fix typo in api function (magic_buf -> magic_buffer) 1072