12014-06-12 12:28 Christos Zoulas <christos@zoulas.com> 2 3 * release 5.19 4 52014-06-09 9:04 Christos Zoulas <christos@zoulas.com> 6 7 * Misc buffer overruns and missing buffer size tests in cdf parsing 8 (Francisco Alonso, Jan Kaluza) 9 102014-06-02 14:50 Christos Zoulas <christos@zoulas.com> 11 12 * Enforce limit of 8K on regex searches that have no limits 13 * Allow the l modifier for regex to mean line count. Default 14 to byte count. If line count is specified, assume a max 15 of 80 characters per line to limit the byte count. 16 * Don't allow conversions to be used for dates, allowing 17 the mask field to be used as an offset. 18 192014-05-30 12:51 Christos Zoulas <christos@zoulas.com> 20 21 * Make the range operator limit the length of the 22 regex search. 23 242014-05-14 19:23 Christos Zoulas <christos@zoulas.com> 25 26 * PR/347: Windows fixes 27 * PR/352: Hangul word processor recognition 28 * PR/354: Encoding irregularities in text files 29 302014-05-06 6:12 Christos Zoulas <christos@zoulas.com> 31 32 * Fix uninitialized title in CDF files (Jan Kaluza) 33 342014-05-04 14:55 Christos Zoulas <christos@zoulas.com> 35 36 * PR/351: Fix compilation of empty files 37 382014-04-30 17:39 Christos Zoulas <christos@zoulas.com> 39 40 * Fix integer formats: We don't specify 'l' or 41 'h' and 'hh' specifiers anymore, only 'll' for 42 quads and nothing for the rest. This is so that 43 magic writing is simpler. 44 452014-04-01 15:25 Christos Zoulas <christos@zoulas.com> 46 47 * PR/341: Jan Kaluza, fix memory leak 48 * PR/342: Jan Kaluza, fix out of bounds read 49 502014-03-28 15:25 Christos Zoulas <christos@zoulas.com> 51 52 * Fix issue with long formats not matching fmtcheck 53 542014-03-26 11:25 Christos Zoulas <christos@zoulas.com> 55 56 * release 5.18 57 582014-03-15 17:45 Christos Zoulas <christos@zoulas.com> 59 60 * add fmtcheck(3) for those who don't have it 61 622014-03-14 15:12 Christos Zoulas <christos@zoulas.com> 63 64 * prevent mime entries from being attached to magic 65 entries with no descriptions 66 67 * adjust magic strength for regex type 68 69 * remove superfluous ascmagic with encoding test 70 712014-03-06 12:01 Christos Zoulas <christos@zoulas.com> 72 73 * fix regression fix echo -ne "\012\013\014" | file -i - 74 which printed "binary" instead of "application/octet-stream" 75 76 * add size_t overflow check for magic file size 77 782014-02-27 16:01 Christos Zoulas <christos@zoulas.com> 79 80 * experimental support for matching with CFD CLSID 81 822014-02-18 13:04 Kimmo Suominen (kimmo@suominen.com) 83 84 * Cache old LC_CTYPE locale before setting it to "C", so 85 we can use it to restore LC_CTYPE instead of asking 86 setlocale() to scan the environment variables. 87 882014-02-12 18:21 Christos Zoulas <christos@zoulas.com> 89 90 * Count recursion levels through indirect magic 91 922014-02-11 10:40 Christos Zoulas <christos@zoulas.com> 93 94 * Prevent infinite recursion on files with indirect offsets of 0 95 962014-01-30 21:00 Christos Zoulas <christos@zoulas.com> 97 98 * Add -E flag that makes file print filesystem errors to stderr 99 and exit. 100 1012014-01-08 17:20 Christos Zoulas <christos@zoulas.com> 102 103 * mime printing could print results from multiple magic entries 104 if there were multiple matches. 105 * in some cases overflow was not detected when computing offsets 106 in softmagic. 107 1082013-12-05 12:00 Christos Zoulas <christos@zoulas.com> 109 110 * use strcasestr() to for cdf strings 111 * reset to the "C" locale while doing regex operations, or case 112 insensitive comparisons; this is provisional 113 1142013-11-19 20:10 Christos Zoulas <christos@zoulas.com> 115 116 * always leave magic file loaded, don't unload for magic_check, etc. 117 * fix default encoding to binary instead of unknown which broke recently 118 * handle empty and one byte files, less specially so that 119 --mime-encoding does not break completely. 120 ` 1212013-11-06 14:40 Christos Zoulas <christos@zoulas.com> 122 123 * fix erroneous non-zero exit code from non-existant file and message 124 1252013-10-29 14:25 Christos Zoulas <christos@zoulas.com> 126 127 * add CDF MSI file detection (Guy Helmer) 128 1292013-09-03 11:56 Christos Zoulas <christos@zoulas.com> 130 131 * Don't mix errors and regular output if there was an error 132 * in magic_descriptor() don't close the file and try to restore 133 its position 134 1352013-05-30 17:25 Christos Zoulas <christos@zoulas.com> 136 137 * Don't treat magic as an error if offset was past EOF (Christoph Biedl) 138 1392013-05-28 17:25 Christos Zoulas <christos@zoulas.com> 140 141 * Fix spacing issues in softmagic and elf (Jan Kaluza) 142 1432013-05-02 18:00 Christos Zoulas <christos@zoulas.com> 144 145 * Fix segmentation fault with multiple magic_load commands. 146 1472013-04-22 11:20 Christos Zoulas <christos@zoulas.com> 148 149 * The way "default" was implemented was not very useful 150 because the "if something was printed at that level" 151 was not easily controlled by the user, and the format 152 was bound to a string which is too restrictive. Add 153 a "clear" for that level keyword and make "default" 154 void. This way one can do: 155 156 >>13 clear x 157 >>13 lelong 1 foo 158 >>13 lelong 2 bar 159 >>13 default x 160 >>>13 lelong x unknown %x 161 1622013-03-25 13:20 Christos Zoulas <christos@zoulas.com> 163 164 * disallow strength setting in "name" entries 165 1662013-03-06 21:24 Christos Zoulas <christos@zoulas.com> 167 168 * fix recursive magic separator printing 169 1702013-02-26 19:28 Christos Zoulas <christos@zoulas.com> 171 172 * limit recursion level for mget 173 * fix pread() related breakage in cdf 174 * handle offsets properly in recursive "use" 175 1762013-02-18 10:39 Christos Zoulas <christos@zoulas.com> 177 178 * add elf reading of debug info to determine if file is stripped 179 (Jan Kaluza) 180 * use pread() 181 1822013-01-25 18:05 Christos Zoulas <christos@zoulas.com> 183 184 * change mime description size from 64 to 80 to accommodate OOXML. 185 1862013-01-11 14:50 Christos Zoulas <christos@zoulas.com> 187 188 * Warn about inconsistent continuation levels. 189 * Change fsmagic to add a space after it prints. 190 1912013-01-10 21:00 Christos Zoulas <christos@zoulas.com> 192 193 * Make getline public so that file can link against it. 194 Perhaps it is better to rename it, or hide it differently. 195 Fixes builds on platforms that do not provide it. 196 1972013-01-07 16:30 Christos Zoulas <christos@zoulas.com> 198 199 * Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document 200 what long, int, short, etc is (Guy Harris) 201 2022013-01-06 11:20 Christos Zoulas <christos@zoulas.com> 203 204 * add magic_version function and constant 205 * Redo memory allocation and de-allocation. 206 (prevents double frees on non mmap platforms) 207 * Fix bug with name/use having to do with passing 208 found state from the parent to the child and back. 209 2102012-12-19 8:47 Christos Zoulas <christos@zoulas.com> 211 212 * Only print elf capabilities for archs we know (Jan Kaluza) 213 2142012-10-30 19:14 Christos Zoulas <christos@zoulas.com> 215 216 * Add "name" and "use" file types in order to look 217 inside mach-o files. 218 2192012-09-06 10:40 Christos Zoulas <christos@zoulas.com> 220 221 * make --version exit 0 (Matthew Schultz) 222 * add string/T (Jan Kaluza) 223 2242012-08-09 2:15 Christos Zoulas <christos@zoulas.com> 225 226 * add z and t modifiers for our own vasprintf 227 * search for $HOME/.magic.mgc if it is there first 228 * fix reads from a pipe, and preserve errno 229 2302012-05-15 13:12 Christos Zoulas <christos@zoulas.com> 231 232 * use ctime_r, asctime_r 233 2342012-04-06 17:18 Christos Zoulas <christos@zoulas.com> 235 236 * Fixes for indirect offsets to handle apple disk formats 237 2382012-04-03 18:26 Christos Zoulas <christos@zoulas.com> 239 240 * Add windows date field types 241 * More info for windows shortcuts (incomplete) 242 2432012-02-20 17:33 Christos Zoulas <christos@zoulas.com> 244 245 * Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann) 246 2472011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com> 248 249 * Support Tilera architectures (tile64, tilepro, tilegx). 250 2512011-12-16 16:33 Reuben Thomas <rrt@sc3d.org> 252 253 * Add magic for /usr/bin/env Perl scripts 254 * Weaken generic script magic to avoid clashing with 255 language-specific magic. 256 2572011-12-08 13:37 Reuben Thomas <rrt@sc3d.org> 258 259 * Simplify if (p) free(p) to free(p). 260 2612011-12-08 13:07 Reuben Thomas <rrt@sc3d.org> 262 263 * Remove hardwired token finding (names.h), turning it into soft 264 magic. Patterns are either anchored regexs or search/8192. English 265 language detection and PL/1 detection have been removed as they 266 were too fragile. -e tokens is still accepted for backwards 267 compatibility. 268 * Move 3ds patterns (which are commented out anyway) into autodesk 269 (they were, oddly, in c-lang). 270 2712011-12-06 00:16 Reuben Thomas <rrt@sc3d.org> 272 273 * Tweak strength of generic hash-bang detectors to be less than 274 specific ones. 275 * Make an inconsistent description of Python scripts consistent. 276 2772011-12-05 23:58 Reuben Thomas <rrt@sc3d.org> 278 279 * Fix minor error in file(1). 280 2812011-11-05 00:00 Reuben Thomas <rrt@sc3d.org> 282 283 * Fix issue #150 (I hope). 284 2852011-09-22 12:57 Christos Zoulas <christos@zoulas.com> 286 287 * Python3 binding fixes from Kelly Anderson 288 2892011-09-20 11:32 Christos Zoulas <christos@zoulas.com> 290 291 * If a string type magic entry is marked as text or binary 292 only match text files against text entries and binary 293 files against binary entries. 294 2952011-09-01 12:12 Christos Zoulas <christos@zoulas.com> 296 297 * Don't wait for any subprocess, just the one we forked. 298 2992011-08-26 16:40 Christos Zoulas <christos@zoulas.com> 300 301 * If the application name is not set in a cdf file, try to see 302 if it has a directory with the application name on it. 303 3042011-08-17 14:32 Christos Zoulas <christos@zoulas.com> 305 306 * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza 307 3082011-08-14 09:03 Christos Zoulas <christos@zoulas.com> 309 310 * Don't use variable string formats. 311 3122011-07-12 12:32 Reuben Thomas <rrt@sc3d.org> 313 314 * Fix detection of Zip files (Mantis #128). 315 * Make some minor improvements to file(1). 316 * Rename MIME types for filesystem objects for consistency with 317 xdg-utils. Typically this means that application/x-foo becomes 318 inode/foo, but some names also change slightly, e.g. 319 application/x-character-device becomes inode/chardevice. 320 3212011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 322 323 * fix mingw compilation (Abradoks) 324 3252011-05-10 20:57 Christos Zoulas <christos@zoulas.com> 326 327 * remove patchlevel.h 328 * Fix read past allocated memory caused by double-incrementing 329 a pointer in a loop (reported by Roberto Maar) 330 3312011-03-30 15:45 Christos Zoulas <christos@zoulas.com> 332 333 * Fix cdf string buffer setting (Sven Anders) 334 3352011-03-20 16:35 Christos Zoulas <christos@zoulas.com> 336 337 * Eliminate MAXPATHLEN and use dynamic allocation for 338 path and file buffers. 339 3402011-03-15 18:15 Christos Zoulas <christos@zoulas.com> 341 342 * binary tests on magic entries with masks could spuriously 343 get converted to ascii. 344 3452011-03-12 18:06 Reuben Thomas <rrt@sc3d.org> 346 347 * Improve file.man (remove BUGS, present email addresses consistently). 348 3492011-03-07 19:38 Christos Zoulas <christos@zoulas.com> 350 351 * add lrzip support (from Ville Skytta) 352 3532011-02-10 16:36 Christos Zoulas <christos@zoulas.com> 354 355 * fix CDF bounds checking (Guy Helmer) 356 3572011-02-10 12:03 Christos Zoulas <christos@zoulas.com> 358 359 * add cdf_ctime() that prints a meaningful error when time cannot 360 be converted. 361 3622011-02-02 20:40 Christos Zoulas <christos@zoulas.com> 363 364 * help and version output to stdout. 365 366 * When matching softmagic for ascii files, don't just print 367 the softmagic classification, keep going and print the 368 text classification too. This fixes broken troff files when 369 we moved them from keyword recognition to softmagic 370 (they stopped printing "with CRLF" etc.) 371 Reported by Doug McIlroy. 372 3732011-01-16 19:31 Reuben Thomas <rrt@sc3d.org> 374 375 * Fix two potential buffer overruns in apprentice_list. 376 3772011-01-14 22:33 Reuben Thomas <rrt@sc3d.org> 378 379 * New Python binding in pure Python. 380 * Update libmagic(3). 381 3822011-01-06 21:40 Reuben Thomas <rrt@sc3d.org> 383 384 * Fix Python bindings (including recent Python 3 compatibility 385 update). 386 3872011-01-04 18:43 Reuben Thomas <rrt@sc3d.org> 388 389 * magic/Makefile.am: make it easier to recover from magic build failures. 390 * Fix pstring length specifier parsing to avoid generating invalid 391 magic files. 392 * Add pstring length "J" (for "JPEG") to specify that the length 393 include itself. 394 * Fix JPEG comment parsing at last using pstring/HJ! 395 * Ignore section 5 man pages in doc/.cvsignore. 396 3972010-12-22 13:12 Christos Zoulas <christos@zoulas.com> 398 399 * Add pstring/BHhLl to specify the type of the length of pascal 400 strings. 401 4022010-11-26 18:39 Reuben Thomas <rrt@sc3d.org> 403 404 * Fix "-e soft": it was ignored when softmagic was called 405 during asciimagic. 406 * Improve comments and use "unsigned char" in tar.h/is_tar.c. 407 4082010-11-05 17:26 Reuben Thomas <rrt@sc3d.org> 409 410 * Make bug reporting addresses more visible. 411 4122010-11-01 18:35 Reuben Thomas <rrt@sc3d.org> 413 414 * Add tcl magic from Gustaf Neumann 415 4162010-10-24 10:42 Christos Zoulas <christos@zoulas.com> 417 418 * Fix the whitespace comparing code (Christopher Chittleborough) 419 4202010-10-06 21:05 Christos Zoulas <christos@zoulas.com> 421 422 * allow string/t to work (Jan Kaluza) 423 4242010-09-20 22:11 Reuben Thomas <rrt@sc3d.org> 425 426 * Apply some patches from Ubuntu and Fedora. 427 4282010-09-20 21:16 Reuben Thomas <rrt@sc3d.org> 429 430 * Apply all patches from Debian package 5.04-6 which have not 431 already been applied and are not Debian-specific. 432 4332010-09-20 15:24 Reuben Thomas <rrt@sc3d.org> 434 435 * Minor security fix to softmagic.c (don't use untrusted 436 string as printf format). 437 4382010-07-21 12:20 Christos Zoulas <christos@zoulas.com> 439 440 * MINGW32 portability from LRN 441 442 * Don't warn about escaping magic regex chars when we are in a regex. 443 4442010-07-19 10:55 Christos Zoulas <christos@zoulas.com> 445 446 * Only try to print prpsinfo for core files. (Jan Kaluza) 447 4482010-04-22 12:55 Christos Zoulas <christos@zoulas.com> 449 450 * Try more elf offsets for Debian core files. (Arnaud Giersch) 451 4522010-02-20 15:18 Reuben Thomas <rrt@sc3d.org> 453 454 * Clarify which sort of CDF we mean. 455 4562010-02-14 22:58 Reuben Thomas <rrt@sc3d.org> 457 458 * Re-jig Zip file type magic so that unsupported special 459 Zip types (those with "mimetype" at offset 30) can be 460 recognized. 461 4622010-02-02 21:50 Reuben Thomas <rrt@sc3d.org> 463 464 * Add support for OCF (EPUB) files (application/epub+zip) 465 4662010-01-28 18:25 Christos Zoulas <christos@zoulas.com> 467 468 * Fix core-dump from unbound loop: 469 https://bugzilla.redhat.com/show_bug.cgi?id=533245 470 4712010-01-22 15:45 Christos Zoulas <christos@zoulas.com> 472 473 * print proper mime for crystal reports file 474 475 * print the last summary information of a cdf document, not the 476 first so that nested documents print the right info 477 4782010-01-16 18:42 Charles Longeau <chl@tuxfamily.org> 479 480 * bring back some fixes from OpenBSD: 481 - make gcc2 builds file 482 - fix typos in a magic file comment 483 4842009-11-17 18:35 Christos Zoulas <christos@zoulas.com> 485 486 * ctime/asctime can return NULL on some OS's although 487 they should not (Toshit Antani) 488 4892009-09-14 13:49 Christos Zoulas <christos@zoulas.com> 490 491 * Centralize magic path handling routines and remove the 492 special-casing from file.c so that the python module for 493 example comes up with the same magic path (Fixes ~/.magic 494 handling) (from Gab) 495 4962009-09-11 23:38 Reuben Thomas <rrt@sc3d.org> 497 498 * When magic argument is a directory, read the files in 499 strcmp-sorted order (fixes Debian bug #488562 and our own FIXME). 500 5012009-09-11 13:11 Reuben Thomas <rrt@sc3d.org> 502 503 * Combine overlapping epoc and psion magic files into one (epoc). 504 505 * Add some more EPOC MIME types. 506 5072009-08-19 15:55 Christos Zoulas <christos@zoulas.com> 508 509 * Fix 3 bugs (From Ian Darwin): 510 - file_showstr could move one past the end of the array 511 - parse_apple did not nul terminate the string in the overflow case 512 - parse_mime truncated the wrong string in the overflow case 513 5142009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net> 515 516 * Include Localstuff when compiling magic. 517 5182009-07-15 10:05 Christos Zoulas <christos@zoulas.com> 519 520 * Fix logic for including mygetopts.h 521 522 * Make cdf.c compile again with debugging 523 524 * Add the necessary field handling for crystal reports files to work 525 5262009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> 527 528 * Stop "(if" identifying Lisp files, that's plain dumb! 529 5302009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> 531 532 * Add a couple of missing MP3 MIME types. 533 5342009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> 535 536 * Add full range of hash-bang tests for Python and Ruby. 537 538 * Add MIME types for Python and Ruby scripts. 539 5402009-05-13 10:44 Christos Zoulas <christos@zoulas.com> 541 542 * off by one in parsing hw capabilities in elf 543 (Cheng Renquan) 544 5452009-05-08 13:40 Christos Zoulas <christos@zoulas.com> 546 547 * lint fixes and more from NetBSD 548 5492009-05-06 10:25 Christos Zoulas <christos@zoulas.com> 550 551 * Avoid null dereference in cdf code (Drew Yao) 552 553 * More cdf bounds checks and overflow checks 554 5552009-05-01 18:37 Christos Zoulas <christos@zoulas.com> 556 557 * Buffer overflow fixes from Drew Yao 558 5592009-04-30 17:10 Christos Zoulas <christos@zoulas.com> 560 561 * Fix more cdf lossage. All the documents I have 562 right now print the correct information. 563 5642009-03-27 18:43 Christos Zoulas <christos@zoulas.com> 565 566 * don't print \012- separators in the same magic entry 567 if it consists of multiple magic printing lines. 568 5692009-03-23 10:20 Christos Zoulas <christos@zoulas.com> 570 571 * Avoid file descriptor leak in compress code from 572 (Daniel Novotny) 573 5742009-03-18 16:50 Christos Zoulas <christos@zoulas.com> 575 576 * Allow escaping of relation characters, so that we can say \^[A-Z] 577 and the ^ is not eaten as a relation char. 578 579 * Fix troff and fortran to their previous glory using 580 regex. This was broken since their removel from ascmagic. 581 5822009-03-10 16:50 Christos Zoulas <christos@zoulas.com> 583 584 * don't use strlen in strndup() (Toby Peterson) 585 5862009-03-10 7:45 Christos Zoulas <christos@zoulas.com> 587 588 * avoid c99 syntax. 589 5902009-02-23 15:45 Christos Zoulas <christos@zoulas.com> 591 592 * make the cdf code use the buffer first if available, 593 and then the fd code. 594 5952009-02-13 13:45 Christos Zoulas <christos@zoulas.com> 596 597 * look for struct option to determine if getopt.h is usable for IRIX. 598 599 * sanitize cdf document strings 600 6012009-02-04 13:25 Christos Zoulas <christos@zoulas.com> 602 603 * fix OS/2 warnings. 604 6052008-12-12 15:50 Christos Zoulas <christos@zoulas.com> 606 607 * fix initial offset calculation for non 4K sector files 608 609 * add loop limits to avoid DoS attacks by constructing 610 looping sector references. 611 6122008-12-03 13:05 Christos Zoulas <christos@zoulas.com> 613 614 * fix memory botches on cdf file parsing. 615 616 * exit with non-zero value for any error, not just for the last 617 file processed. 618 6192008-11-09 20:42 Charles Longeau <chl@tuxfamily.org> 620 621 * Replace all str{cpy,cat} functions with strl{cpy,cat} 622 * Ensure that strl{cpy,cat} are included in libmagic, 623 as needed. 624 6252008-11-06 18:18 Christos Zoulas <christos@zoulas.com> 626 627 * Handle ID3 format files. 628 6292008-11-06 23:00 Reuben Thomas <rrt@sc3d.org> 630 631 * Fix --mime, --mime-type and --mime-encoding under new scheme. 632 633 * Rename "ascii" to "text" and add "encoding" test. 634 635 * Return a precise ("utf-16le" or "utf-16be") MIME charset for 636 UTF-16. 637 638 * Fix error in comment caused by automatic indentation adding 639 words! 640 6412008-11-06 10:35 Christos Zoulas <christos@astron.com> 642 643 * use memchr instead of strchr because the string 644 might not be NUL terminated (Scott MacVicar) 645 6462008-11-03 07:31 Reuben Thomas <rrt@sc3d.org> 647 648 * Fix a printf with a non-literal format string. 649 650 * Fix formatting and punctuation of help for "--apple". 651 6522008-10-30 11:00 Reuben Thomas <rrt@sc3d.org> 653 654 * Correct words counts in comments of struct magic. 655 656 * Fix handle_annotation to allow both Apple and MIME types to be 657 printed, and to return correct code if MIME type is 658 printed (1, not 0) or if there's an error (-1 not 1). 659 660 * Fix output of charset for MIME type (precede with semi-colon; 661 fixes Debian bug #501460). 662 663 * Fix potential attacks via conversion specifications in magic 664 strings. 665 666 * Add a FIXME for Debian bug #488562 (magic files should be 667 read in a defined order, by sorting the names). 668 6692008-10-18 16:45 Christos Zoulas <christos@astron.com> 670 671 * Added APPLE file creator/type 672 6732008-10-12 10:20 Christos Zoulas <christos@astron.com> 674 675 * Added CDF parsing 676 6772008-10-09 16:40 Christos Zoulas <christos@astron.com> 678 679 * filesystem and msdos patches (Joerg Jenderek) 680 6812008-10-09 13:20 Christos Zoulas <christos@astron.com> 682 683 * correct --exclude documentation issues: remove troff and fortran 684 and rename "token" to "tokens". (Randy McMurchy) 685 6862008-10-01 10:30 Christos Zoulas <christos@astron.com> 687 688 * Read ~/.magic in addition to the default magic file not instead 689 of, as documented in the man page. 690 6912008-09-10 21:30 Reuben Thomas <rrt@sc3d.org> 692 693 * Comment out graphviz patterns, as they match too many files. 694 6952008-08-30 12:54 Christos Zoulas <christos@astron.com> 696 697 * Don't eat trailing \n in magic enties. 698 699 * Cast defines to allow compilation using a c++ compiler. 700 7012008-08-25 23:56 Reuben Thomas <rrt@sc3d.org> 702 703 * Add text/x-lua MIME type for Lua scripts. 704 705 * Escape { in regex in graphviz patterns. 706 7072008-07-26 00:59 Reuben Thomas <rrt@sc3d.org> 708 709 * Add MIME types for special files. 710 711 * Use access to give more accurate information for files that 712 can't be opened. 713 714 * Add a TODO list. 715 7162008-07-02 11:15 Christos Zoulas <christos@astron.com> 717 718 * add !:strength op to adjust magic strength (experimental) 719 7202008-06-16 21:41 Reuben Thomas <rrt@sc3d.org> 721 722 * Fix automake error in configure.ac. 723 724 * Add MIME type for Psion Sketch files. 725 7262008-06-05 08:59 Christos Zoulas <christos@astron.com> 727 728 * Don't print warnings about bad namesize in stripped 729 binaries with PT_NOTE is still there, and the actual 730 note is gone (Jakub Jelinek) 731 7322008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net> 733 734 * magic/Magdir/elf: 735 Note invalid byte order for little-endian SPARC32PLUS. 736 Add SPARC V9 vendor extensions and memory model. 737 738 * src/elfclass.h: 739 Pass target machine to doshn (for Solaris hardware capabilities). 740 741 * src/readelf.c (doshn): 742 Add support for Solaris hardware/software capabilities. 743 744 * src/readelf.h: 745 Ditto. 746 747 * src/vasprintf.c (dispatch): 748 Add support for ll modifier. 749 7502008-05-16 10:25 Christos Zoulas <christos@astron.com> 751 752 * Fix compiler warnings. 753 754 * remove stray printf, and fix a vprintf bug. (Martin Dorey) 755 7562008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net> 757 758 * src/Makefile.am: 759 Ensure that getopt_long and [v]asprintf are included in libmagic, 760 as needed. 761 762 Remove unnecessary EXTRA_DIST. 763 764 * src/Makefile.in: 765 Rerun automake. 766 767 * src/vasprintf.c (dispatch): 768 Fix variable precision bug: be sure to step past '*'. 769 770 * src/vasprintf.c (core): 771 Remove unreachable code. 772 773 * src/apprentice.c (set_test_type): 774 Add cast to avoid compiler warning. 775 7762008-04-22 23:45 Christos Zoulas <christos@astron.com> 777 778 * Add magic submission guidelines (Abel Cheung) 779 780 * split msdos and windows magic (Abel Cheung) 781 7822008-04-04 11:00 Christos Zoulas <christos@astron.com> 783 784 * >= <= is not supported, so fix the magic and warn about it. 785 reported by: Thien-Thi Nguyen <ttn@gnuvola.org> 786 7872008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net> 788 789 * src/readelf.c (donote): 790 ELF core file command name/line bug fixes and enhancements: 791 792 Try larger offsets first to avoid false matches 793 from earlier data that happen to look like strings; 794 this primarily affected SunOS 5.x 32-bit Intel core files. 795 796 Add support for command line (instead of just short name) 797 for SunOS 5.x. 798 799 Add information about NT_PSINFO for SunOS 5.x. 800 801 Only trim whitespace from end of command line. 802 8032007-02-11 01:36 Reuben Thomas <rrt@sc3d.org> 804 805 * Change strength of ! from MULT to 0, as it matches almost 806 anything (Reuben Thomas) 807 808 * Debian fixes (Reuben Thomas) 809 8102007-02-11 00:17 Reuben Thomas <rrt@sc3d.org> 811 812 * Clarify UTF-8 BOM message (Reuben Thomas) 813 814 * Add HTML comment to token list in names.h 815 8162007-02-04 15:50 Christos Zoulas <christos@astron.com> 817 818 * Debian fixes (Reuben Thomas) 819 8202007-02-04 11:31 Christos Zoulas <christos@astron.com> 821 822 * !:mime annotations in magic files (Reuben Thomas) 823 8242007-01-29 15:35 Christos Zoulas <christos@astron.com> 825 826 * zero out utime/utimes structs (Gavin Atkinson) 827 8282007-01-26 13:45 Christos Zoulas <christos@astron.com> 829 830 * reduce writable data from Diego "Flameeyes" Petten 831 8322007-12-28 15:06 Christos Zoulas <christos@astron.com> 833 834 * strtof detection 835 836 * remove bogus regex magic that could cause a DoS 837 838 * better mismatch version message 839 8402007-12-27 11:35 Christos Zoulas <christos@astron.com> 841 842 * bring back some fixes from OpenBSD 843 844 * treat ELF dynamic objects as executables 845 846 * fix gcc warnings 847 8482007-12-01 19:55 Christos Zoulas <christos@astron.com> 849 850 * make sure we have zlib.h and libz to compile the builtin 851 decompress code 852 8532007-10-28 20:48 Christos Zoulas <christos@astron.com> 854 855 * float and double magic support (Behan Webster) 856 8572007-10-28 20:48 Christos Zoulas <christos@astron.com> 858 859 * Convert fortran to a soft test (Reuben Thomas) 860 8612007-10-23 5:25 Christos Zoulas <christos@astron.com> 862 863 * Add --with-filename, and --no-filename (Reuben Thomas) 864 8652007-10-23 3:59 Christos Zoulas <christos@astron.com> 866 867 * Rest of the mime split (Reuben Thomas) 868 869 * Make usage message generated from the flags so that 870 they stay consistent (Reuben Thomas) 871 8722007-10-20 3:06 Christos Zoulas <christos@astron.com> 873 874 * typo in comment, missing ifdef QUICK, remove unneeded code 875 (Charles Longeau) 876 8772007-10-17 3:33 Christos Zoulas <christos@astron.com> 878 879 * Fix problem printing -\012 in some entries 880 881 * Separate magic type and encoding flags (Reuben Thomas) 882 8832007-10-09 3:55 Christos Zoulas <christos@astron.com> 884 885 * configure fix for int64 and strndup (Reuben Thomas) 886 8872007-09-26 4:45 Christos Zoulas <christos@astron.com> 888 889 * Add magic_descriptor() function. 890 891 * Fix regression in elf reading code where the core name was 892 not being printed. 893 894 * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson) 895 8962007-08-19 6:30 Christos Zoulas <christos@astron.com> 897 898 * Make mime format consistent so that it can 899 be easily parsed: 900 mimetype [charset=character-set] [encoding=encoding-mime-type] 901 902 Remove spurious extra text from some MIME type printouts 903 (mostly in is_tar). 904 905 Fix one case where -i produced nothing at all (for a 1-byte file, 906 which is now classed as application/octet-stream). 907 908 Remove 7/8bit classifications, since they were arbitrary 909 and not based on the file data. 910 911 This work was done by Reuben Thomas 912 9132007-05-24 10:00 Christos Zoulas <christos@astron.com> 914 915 * Fix another integer overflow (Colin Percival) 916 9172007-03-26 13:58 Christos Zoulas <christos@astron.com> 918 919 * make sure that all of struct magic_set is initialized appropriately 920 (Brett) 921 9222007-03-25 17:44 Christos Zoulas <christos@astron.com> 923 924 * reset left bytes in the buffer (Dmitry V. Levin) 925 926 * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS 927 (Peter Avalos) 928 9292007-03-15 10:51 Christos Zoulas <christos@astron.com> 930 931 * fix fortran and nroff reversed tests (Dmitry V. Levin) 932 933 * fix exclude option (Dmitry V. Levin) 934 9352007-02-08 17:30 Christos Zoulas <christos@astron.com> 936 937 * fix integer underflow in file_printf which can lead to 938 to exploitable heap overflow (Jean-Sebastien Guay-Lero) 939 9402007-02-05 11:35 Christos Zoulas <christos@astron.com> 941 942 * make socket/pipe reading more robust 943 9442007-01-25 16:01 Christos Zoulas <christos@astron.com> 945 946 * Centralize all the tests in file_buffer. 947 948 * Add exclude flag. 949 9502007-01-18 05:29 Anon Ymous <do@not.spam.me> 951 952 * Move the "type" detection code from parse() into its own table 953 driven routine. This avoids maintaining multiple lists in 954 file.h. 955 956 * Add an optional conditional field (ust before the type field). 957 This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is 958 likely to go away. 959 9602007-01-16 23:24 Anon Ymous <do@not.spam.me> 961 962 * Fix an initialization bug in check_mem(). 963 9642007-01-16 14:58 Anon Ymous <do@not.spam.me> 965 966 * Add a "default" type to print a message if nothing previously 967 matched at that level or since the last default at that 968 level. This is useful for setting up switch-like statements. 969 It can also be used to do if/else constructions without a 970 redundant second test. 971 972 * Fix the "x" special case test so that one can test for that 973 string with "=x". 974 975 * Allow "search" to search the entire buffer if the "/N" 976 search count is missing. 977 978 * Make "regex" work! It now starts its search at the 979 specified offset and takes an (optional) "/N" line count to 980 specify the search range; otherwise it searches to the end 981 of the file. The match is now grabbed correctly for format 982 strings and the offset set to the end of the match. 983 984 * Add a "/s" flag to "regex" and "search" to set the offset to 985 the start of the match. By default the offset is set to the 986 end of the match, as it is with other tests. This is mostly 987 useful for "regex". 988 989 * Make "search", "string" and "pstring" use the same 990 file_strncmp() routine so that they support the same flags; 991 "bestring16" and "lestring16" call the same routine, but 992 with flags = 0. Also add a "/C" flag (in analogy to "/c") 993 to ignore the case on uppercase (lowercase) characters in 994 the test string. 995 996 * Strict adherence to C style string escapes. A warnings are 997 printed when compiling. Note: previously "\a" was 998 incorrectly translated to 'a' instead of an <alert> (i.e., 999 BELL, typically 0x07). 1000 1001 * Make this compile with "-Wall -Wextra" and all the warning 1002 flags used with WARNS=4 in the NetBSD source. Also make it 1003 pass lint. 1004 1005 * Many "cleanups" and hopefully not too many new bugs! 1006 10072007-01-16 14:56 Anon Ymous <do@not.spam.me> 1008 1009 * make several more files compile with gcc warnings 1010 on and also make them pass lint. 1011 10122007-01-16 14:54 Anon Ymous <do@not.spam.me> 1013 1014 * fix a puts()/putc() usage goof in file.c 1015 1016 * make file.c compile with gcc warnings and pass lint 1017 10182006-12-11 16:49 Christos Zoulas <christos@astron.com> 1019 1020 * fix byteswapping issue 1021 1022 * report the number of bytes we tried to 1023 allocate when allocation fails 1024 1025 * add a few missed cases in the strength routine 1026 10272006-12-08 16:32 Christos Zoulas <christos@astron.com> 1028 1029 * store and print the line number of the magic 1030 entry for debugging. 1031 1032 * if the magic entry did not print anything, 1033 don't treat it as a match 1034 1035 * change the magic strength algorithm to take 1036 into account the relationship op. 1037 1038 * fix a bug in search where we could accidentally 1039 return a match. 1040 1041 * propagate the error return from match to 1042 file_softmagic. 1043 10442006-11-25 13:35 Christos Zoulas <christos@astron.com> 1045 1046 * Don't store the current offset in the magic 1047 struct, because it needs to be restored and 1048 it was not done properly all the time. Bug 1049 found by: Arkadiusz Miskiewicz 1050 1051 * Fix problem in the '\0' separator; and don't 1052 print it as an additional separator; print 1053 it as the only separator. 1054 10552006-11-17 10:51 Christos Zoulas <christos@astron.com> 1056 1057 * Added a -0 option to print a '\0' separator 1058 Etienne Buira <etienne.buira@free.fr> 1059 10602006-10-31 15:14 Christos Zoulas <christos@astron.com> 1061 1062 * Check offset before copying (Mike Frysinger) 1063 1064 * merge duplicated code 1065 1066 * add quad date support 1067 1068 * make sure that we nul terminate desc (Ryoji Kanai) 1069 1070 * don't process elf notes multiple times 1071 1072 * allow -z to report empty compressed files 1073 1074 * use calloc to initialize the ascii buffers (Jos van den Oever) 1075 10762006-06-08 11:11 Christos Zoulas <christos@astron.com> 1077 1078 * QNX fixes (Mike Gorchak) 1079 1080 * Add quad support. 1081 1082 * FIFO checks (Dr. Werner Fink) 1083 1084 * Linux ELF fixes (Dr. Werner Fink) 1085 1086 * Magic format checks (Dr. Werner Fink) 1087 1088 * Magic format function improvent (Karl Chen) 1089 10902006-05-03 11:11 Christos Zoulas <christos@astron.com> 1091 1092 * Pick up some elf changes and some constant fixes from SUSE 1093 1094 * Identify gnu tar vs. posix tar 1095 1096 * When keep going, don't print spurious newlines (Radek Vokal) 1097 10982006-04-01 12:02 Christos Zoulas <christos@astron.com> 1099 1100 * Use calloc instead of malloc (Mike Frysinger) 1101 1102 * Fix configure script to detect wctypes.h (Mike Frysinger) 1103 11042006-03-02 16:06 Christos Zoulas <christos@astron.com> 1105 1106 * Print empty if the file is (Mike Frysinger) 1107 1108 * Don't try to read past the end of the buffer (Mike Frysinger) 1109 1110 * Sort magic entries by strength [experimental] 1111 11122005-11-29 13:26 Christos Zoulas <christos@astron.com> 1113 1114 * Use iswprint() to convert the output string. 1115 (Bastien Nocera) 1116 11172005-10-31 8:54 Christos Zoulas <christos@astron.com> 1118 1119 * Fix regression where the core info was not completely processed 1120 (Radek Vokal) 1121 11222005-10-20 11:15 Christos Zoulas <christos@astron.com> 1123 1124 * Middle Endian magic (Diomidis Spinellis) 1125 11262005-10-17 11:15 Christos Zoulas <christos@astron.com> 1127 1128 * Open with O_BINARY for CYGWIN (Corinna Vinschen) 1129 1130 * Don't close stdin (Arkadiusz Miskiewicz) 1131 1132 * Look for note sections in non executables. 1133 11342005-09-20 13:33 Christos Zoulas <christos@astron.com> 1135 1136 * Don't print SVR4 Style in core files multiple times 1137 (Radek Vokal) 1138 11392005-08-27 04:09 Christos Zoulas <christos@astron.com> 1140 1141 * Cygwin changes Corinna Vinschen 1142 11432005-08-18 09:53 Christos Zoulas <christos@astron.com> 1144 1145 * Remove erroreous mention of /etc/magic in the file man page 1146 This is gentoo bug 101639. (Mike Frysinger) 1147 1148 * Cross-compile support and detection (Mike Frysinger) 1149 11502005-08-12 10:17 Christos Zoulas <christos@astron.com> 1151 1152 * Add -h flag and dereference symlinks if POSIXLY_CORRECT 1153 is set. 1154 11552005-07-29 13:57 Christos Zoulas <christos@astron.com> 1156 1157 * Avoid search and regex buffer overflows (Kelledin) 1158 11592005-07-12 11:48 Christos Zoulas <christos@astron.com> 1160 1161 * Provide stub implementations for {v,}nsprintf() for older 1162 OS's that don't have them. 1163 * Change mbstate_t autoconf detection macro from AC_MBSTATE_T 1164 to AC_TYPE_MBSTATE_T. 1165 11662005-06-25 11:48 Christos Zoulas <christos@astron.com> 1167 1168 * Dynamically allocate the string buffers and make the 1169 default read size 256K. 1170 11712005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de> 1172 1173 * Dragonfly ELF note support 1174 11752005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it> 1176 1177 * Avoid NULL pointer dereference in time conversion. 1178 11792005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch> 1180 1181 * Add indirect magic offset support, and search mode. 1182 11832005-01-12 00:00 Stepan Kasal <kasal@ucw.cz> 1184 1185 * src/ascmagic.c (file_ascmagic): Fix three bugs about text files: 1186 If a CRLF text file happens to have CR at offset HOWMANY - 1 1187 (currently 0xffff), it should not be counted as CR line 1188 terminator. 1189 If a line has length exactly MAXLINELEN, it should not yet be 1190 treated as a ``very long line'', as MAXLINELEN is ``longest sane 1191 line length''. 1192 With CRLF, the line length was not computed correctly, and even 1193 lines of length MAXLINELEN - 1 were treated as ``very long''. 1194 11952004-12-07 14:15 Christos Zoulas <christos@astron.com> 1196 1197 * bzip2 needs a lot of input buffer space on some files 1198 before it can begin uncompressing. This makes file -z 1199 fail on some bz2 files. Fix it by giving it a copy of 1200 the file descriptor to read as much as it wants if we 1201 have access to it. <christos@astron.com> 1202 12032004-11-24 12:39 Christos Zoulas <christos@astron.com> 1204 1205 * Stack smash fix, and ELF more conservative reading. 1206 Jakub Bogusz <qboosh@pld-linux.org> 1207 12082004-11-20 18:50 Christos Zoulas <christos@astron.com> 1209 1210 * New FreeBSD version parsing code: 1211 Jon Noack <noackjr@alumni.rice.edu> 1212 1213 * Hackish support for ucs16 strings <christos@astron.com> 1214 12152004-11-13 03:07 Christos Zoulas <christos@astron.com> 1216 1217 * print the file name and line number in syntax errors. 1218 12192004 10-12 10:50 Christos Zoulas <christos@astron.com> 1220 1221 * Fix stack overwriting on 0 length strings: Tim Waugh 1222 <twaugh@redhat.com> Ned Ludd <solar@gentoo.org> 1223 12242004-09-27 11:30 Christos Zoulas <christos@astron.com> 1225 1226 * Remove 3rd and 4th copyright clause; approved by Ian Darwin. 1227 1228 * Fix small memory leaks; caught by: Tamas Sarlos 1229 <stamas@csillag.ilab.sztaki.hu> 1230 12312004-07-24 16:33 Christos Zoulas <christos@astron.com> 1232 1233 * magic.mime update Danny Milosavljevic <danny.milo@gmx.net> 1234 1235 * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com> 1236 1237 * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com> 1238 1239 * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org> 1240 12412004-04-12 10:55 Christos Zoulas <christos@astron.com> 1242 1243 * make sure that magic formats match magic types during compilation 1244 1245 * fix broken sgi magic file 1246 12472004-04-06 20:36 Christos Zoulas <christos@astron.com> 1248 1249 * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com> 1250 1251 * magic fixes 1252 12532004-03-22 15:25 Christos Zoulas <christos@astron.com> 1254 1255 * Lots of mime fixes 1256 (Joerg Ostertag) <ostertag@rechengilde.de> 1257 1258 * FreeBSD ELF version handling 1259 (Edwin Groothuis) <edwin@mavetju.org> 1260 1261 * correct cleanup in all cases; don't just close the file. 1262 (Christos Zoulas) <christos@astron.com> 1263 1264 * add gettext message catalogue support 1265 (Michael Piefel) <piefel@debian.org> 1266 1267 * better printout for unreadable files 1268 (Michael Piefel) <piefel@debian.org> 1269 1270 * compensate for missing MAXPATHLEN 1271 (Michael Piefel) <piefel@debian.org> 1272 1273 * add wide character string length computation 1274 (Michael Piefel) <piefel@debian.org> 1275 1276 * Avoid infinite loops caused by bad elf alignments 1277 or name and description note sizes. Reported by 1278 (Mikael Magnusson) <mmikael@comhem.se> 1279 12802004-03-09 13:55 Christos Zoulas <christos@astron.com> 1281 1282 * Fix possible memory leak on error and add missing regfree 1283 (Dmitry V. Levin) <ldv@altlinux.org> 1284 12852003-12-23 12:12 Christos Zoulas <christos@astron.com> 1286 1287 * fix -k flag (Maciej W. Rozycki) 1288 12892003-11-18 14:10 Christos Zoulas <christos@astron.com> 1290 1291 * Try to give us much info as possible on corrupt elf files. 1292 (Willy Tarreau) <willy@w.ods.org> 1293 * Updated python bindings (Brett Funderburg) 1294 <brettf@deepfile.com> 1295 12962003-11-11 15:03 Christos Zoulas <christos@astron.com> 1297 1298 * Include file.h first, because it includes config.h 1299 breaks largefile test macros otherwise. 1300 (Paul Eggert <eggert@CS.UCLA.EDU> via 1301 Lars Hecking <lhecking@nmrc.ie>) 1302 13032003-10-14 21:39 Christos Zoulas <christos@astron.com> 1304 1305 * Python bindings (Brett Funderburg) <brettf@deepfile.com> 1306 * Don't lookup past the end of the buffer 1307 (Chad Hanson) <chanson@tcs-sec.com> 1308 * Add MAGIC_ERROR and api on magic_errno() 1309 13102003-10-08 12:40 Christos Zoulas <christos@astron.com> 1311 1312 * handle error conditions from compile as fatal 1313 (Antti Kantee) <pooka@netbsd.org> 1314 * handle magic filename parsing sanely 1315 * more magic fixes. 1316 * fix a memory leak (Illes Marton) <illes.marton@balabit.hu> 1317 * describe magic file handling 1318 (Bryan Henderson) <bryanh@giraffe-data.com> 1319 13202003-09-12 15:09 Christos Zoulas <christos@astron.com> 1321 1322 * update magic files. 1323 * remove largefile support from file.h; it breaks things on most OS's 1324 13252003-08-10 10:25 Christos Zoulas <christos@astron.com> 1326 1327 * fix unmapping'ing of mmaped files. 1328 13292003-07-10 12:03 Christos Zoulas <christos@astron.com> 1330 1331 * don't exit with -1 on error; always exit 1 (Marty Leisner) 1332 * restore utimes code. 1333 13342003-06-10 17:03 Christos Zoulas <christos@astron.com> 1335 1336 * make sure we don't access uninitialized memory. 1337 * pass lint 1338 * #ifdef __cplusplus in magic.h 1339 13402003-05-25 19:23 Christos Zoulas <christos@astron.com> 1341 1342 * rename cvs magic file to revision to deal with 1343 case insensitive filesystems. 1344 13452003-05-23 17:03 Christos Zoulas <christos@astron.com> 1346 1347 * documentation fixes from Michael Piefel <piefel@debian.org> 1348 * magic fixes (various) 1349 * revert basename magic in .mgc name determination 1350 * buffer protection in uncompress, 1351 signness issues, 1352 close files 1353 Maciej W. Rozycki <macro@ds2.pg.gda.pl 1354 13552003-04-21 20:12 Christos Zoulas <christos@astron.com> 1356 1357 * fix zsh magic 1358 13592003-04-04 16:59 Christos Zoulas <christos@astron.com> 1360 1361 * fix operand sort order in string. 1362 13632003-04-02 17:30 Christos Zoulas <christos@astron.com> 1364 1365 * cleanup namespace in magic.h 1366 13672003-04-02 13:50 Christos Zoulas <christos@astron.com> 1368 1369 * Magic additions (Alex Ott) 1370 * Fix bug that broke VPATH compilation (Peter Breitenlohner) 1371 13722003-03-28 16:03 Christos Zoulas <christos@astron.com> 1373 1374 * remove packed attribute from magic struct. 1375 * make the magic struct properly aligned. 1376 * bump version number of compiled files to 2. 1377 13782003-03-27 13:10 Christos Zoulas <christos@astron.com> 1379 1380 * separate tar detection and run it before softmagic. 1381 * fix reversed symlink test. 1382 * fix version printing. 1383 * make separator a string instead of a char. 1384 * update manual page and sort options. 1385 13862003-03-26 11:00 Christos Zoulas <christos@astron.com> 1387 1388 * Pass lint 1389 * make NULL in magic_file mean stdin 1390 * Fix "-" argument to file to pass NULL to magic_file 1391 * avoid pointer casts by using memcpy 1392 * rename magic_buf -> magic_buffer 1393 * keep only the first error 1394 * manual page: new sentence, new line 1395 * fix typo in api function (magic_buf -> magic_buffer) 1396