"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/ChangeLog" (18 Oct 2018, 51635 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ChangeLog": 5.34_vs_5.35.

    1 2018-10-18  19:32  Christos Zoulas <christos@zoulas.com>
    2 
    3 	* release 5.35
    4 
    5 2018-09-10  20:38  Christos Zoulas <christos@zoulas.com>
    6 
    7 	* Add FreeBSD ELF core file support (John Baldwin)
    8 
    9 2018-08-20  18:40  Christos Zoulas <christos@zoulas.com>
   10 
   11 	* PR/30: Allow all parameter values to be set (don't treat 0 specially)
   12 	* handle default annotations on the softmagic match instead at the
   13 	  end.
   14 
   15 2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>
   16 
   17 	* PR/23: Recognize JSON files
   18 
   19 2018-07-25  10:17  Christos Zoulas <christos@zoulas.com>
   20 
   21 	* PR/18: file --mime-encoding should not print mime-type
   22 
   23 2018-07-25   8:50  Christos Zoulas <christos@zoulas.com>
   24 
   25 	* release 5.34
   26 
   27 2018-06-22  16:38  Christos Zoulas <christos@zoulas.com>
   28 
   29 	* Add Quad indirect offsets
   30 
   31 2018-05-24  14:10  Christos Zoulas <christos@zoulas.com>
   32 
   33 	* Enable parsing of ELF dynamic sections to handle PIE better
   34 
   35 2018-04-15  14:52  Christos Zoulas <christos@zoulas.com>
   36 
   37 	* release 5.33
   38 
   39 2018-02-24  14:50  Christos Zoulas <christos@zoulas.com>
   40 
   41 	* extend the support for ${x?:} expansions for magic descriptions
   42 
   43 2018-02-21  16:25  Christos Zoulas <christos@zoulas.com>
   44 
   45 	* add support for ${x?:} in mime types to handle
   46 	  pie binaries.
   47 
   48 2017-11-03   9:23  Christos Zoulas <christos@zoulas.com>
   49 
   50 	* add support for negative offsets (offsets from the end of file)
   51 
   52 2017-09-26   8:22  Christos Zoulas <christos@zoulas.com>
   53 
   54 	* close the file on error when writing magic (Steve Grubb)
   55 
   56 2017-09-24  12:02  Christos Zoulas <christos@zoulas.com>
   57 
   58 	* seccomp support (Paul Moore)
   59 
   60 2017-09-02  11:53  Christos Zoulas <christos@zoulas.com>
   61 
   62 	* release 5.32
   63 
   64 2017-08-28  16:37  Christos Zoulas <christos@zoulas.com>
   65 
   66 	* Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)
   67 
   68 2017-08-27  03:55  Christos Zoulas <christos@zoulas.com>
   69 
   70 	* Fix always true condition (Thomas Jarosch)
   71 
   72 2017-05-24  17:30  Christos Zoulas <christos@zoulas.com>
   73 
   74 	* pickier parsing of numeric values in magic files.
   75 
   76 2017-05-23  17:55  Christos Zoulas <christos@zoulas.com>
   77 
   78 	* PR/615 add magic_getflags()
   79 
   80 2017-05-23  13:55  Christos Zoulas <christos@zoulas.com>
   81 
   82 	* release 5.31
   83 
   84 2017-03-17  20:32  Christos Zoulas <christos@zoulas.com>
   85 
   86 	* remove trailing spaces from magic files
   87 	* refactor is_tar
   88 	* better bounds checks for cdf
   89 
   90 2017-02-10  12:24  Christos Zoulas <christos@zoulas.com>
   91 
   92 	* release 5.30
   93 
   94 2017-02-07  23:27  Christos Zoulas <christos@zoulas.com>
   95 
   96 	* If we exceeded the offset in a search return no match
   97 	  (Christoph Biedl)
   98 	* Be more lenient on corrupt CDF files (Christoph Biedl)
   99 
  100 2017-02-04  16:46  Christos Zoulas <christos@zoulas.com>
  101 
  102 	* pacify ubsan sign extension (oss-fuzz/524)
  103 
  104 2017-02-01  12:42  Christos Zoulas <christos@zoulas.com>
  105 
  106 	* off by one in cdf parsing (PR/593)
  107 	* report debugging sections in elf (PR/591)
  108 
  109 2016-11-06  10:52  Christos Zoulas <christos@zoulas.com>
  110 
  111 	* Allow @@@ in extensions
  112 	* Add missing overflow check in der magic (Jonas Wagner)
  113 
  114 2016-10-25  10:40  Christos Zoulas <christos@zoulas.com>
  115 
  116 	* release 5.29
  117 
  118 2016-10-24  11:20  Christos Zoulas <christos@zoulas.com>
  119 
  120 	* der getlength overflow (Jonas Wagner)
  121 	* multiple magic file load failure (Christoph Biedl)
  122 
  123 2016-10-17  11:26  Christos Zoulas <christos@zoulas.com>
  124 
  125 	* CDF parsing improvements (Guy Helmer)
  126 
  127 2016-07-20   7:26  Christos Zoulas <christos@zoulas.com>
  128 
  129 	* Add support for signed indirect offsets
  130 
  131 2016-07-18   7:41  Christos Zoulas <christos@zoulas.com>
  132 
  133 	* cat /dev/null | file - should print empty (Christoph Biedl)
  134 
  135 2016-07-05  15:20  Christos Zoulas <christos@zoulas.com>
  136 
  137 	* Bump string size from 64 to 96.
  138 
  139 2016-06-13  20:20  Christos Zoulas <christos@zoulas.com>
  140 
  141 	* PR/556: Fix separators on annotations.
  142 
  143 2016-06-13  19:40  Christos Zoulas <christos@zoulas.com>
  144 
  145 	* release 5.28
  146 	* fix leak on allocation failure
  147 
  148 2016-06-01   1:20  Christos Zoulas <christos@zoulas.com>
  149 
  150 	* PR/555: Avoid overflow for offset > nbytes
  151 	* PR/550: Segv on DER parsing:
  152 	    - use the correct variable for length
  153 	    - set offset to 0 on failure.
  154 
  155 2016-05-13  12:00  Christos Zoulas <christos@zoulas.com>
  156 
  157 	* release 5.27
  158 
  159 2016-04-18   9:35  Christos Zoulas <christos@zoulas.com>
  160 
  161 	* Errors comparing DER entries or computing offsets
  162 	  are just indications of malformed non-DER files.
  163 	  Don't print them.
  164 	* Offset comparison was off-by-one.
  165 	* Fix compression code (Werner Fink)
  166 	* Put new bytes constant in the right file (not the generated one)
  167 
  168 2016-04-16  18:34  Christos Zoulas <christos@zoulas.com>
  169 
  170 	* release 5.26
  171 
  172 2016-03-31  13:50  Christos Zoulas <christos@zoulas.com>
  173 
  174 	* make the number of bytes read from files configurable.
  175 
  176 2016-03-21  13:40  Christos Zoulas <christos@zoulas.com>
  177 
  178 	* Add bounds checks for DER code (discovered by Thomas Jarosch)
  179 	* Change indirect recursion limit to indirect use count and
  180 	  bump from 15 to 50 to prevent abuse.
  181 
  182 2016-03-13  20:39  Christos Zoulas <christos@zoulas.com>
  183 
  184 	* Add -00 which prints filename\0description\0
  185 
  186 2016-03-01  13:28  Christos Zoulas <christos@zoulas.com>
  187 
  188 	* Fix ID3 indirect parsing
  189 
  190 2016-01-19  10:18  Christos Zoulas <christos@zoulas.com>
  191 
  192 	* add DER parsing capability
  193 
  194 2015-11-13  10:35  Christos Zoulas <christos@zoulas.com>
  195 
  196 	* provide dprintf(3) for the OS's that don't have it.
  197 
  198 2015-11-11  16:25  Christos Zoulas <christos@zoulas.com>
  199 
  200 	* redo the compression code report decompression errors
  201 
  202 2015-11-10  23:25  Christos Zoulas <christos@zoulas.com>
  203 
  204 	* REG_STARTEND code is not working as expected, delete it.
  205 
  206 2015-11-09  16:05  Christos Zoulas <christos@zoulas.com>
  207 
  208 	* Add zlib support if we have it.
  209 
  210 2015-11-05  11:22  Christos Zoulas <christos@zoulas.com>
  211 
  212 	* PR/492: compression forking was broken with magic_buffer.
  213 
  214 2015-09-16   9:50  Christos Zoulas <christos@zoulas.com>
  215 
  216 	* release 5.25
  217 
  218 2015-09-11  13:25  Christos Zoulas <christos@zoulas.com>
  219 
  220 	* add a limit to the length of regex searches
  221 
  222 2015-09-08   9:50  Christos Zoulas <christos@zoulas.com>
  223 
  224 	* fix problems with --parameter (Christoph Biedl)
  225 
  226 2015-07-11  10:35  Christos Zoulas <christos@zoulas.com>
  227 
  228 	* Windows fixes PR/466 (Jason Hood)
  229 
  230 2015-07-09  10:35  Christos Zoulas <christos@zoulas.com>
  231 
  232 	* release 5.24
  233 
  234 2015-06-11   8:52  Christos Zoulas <christos@zoulas.com>
  235 
  236 	* redo long option encoding to fix off-by-one in 5.23
  237 
  238 2015-06-10  13:50  Christos Zoulas <christos@zoulas.com>
  239 
  240 	* release 5.23
  241 
  242 2015-06-09  16:10  Christos Zoulas <christos@zoulas.com>
  243 
  244 	* Fix issue with regex range for magic with offset
  245 	* Always return true from mget with USE (success to mget not match
  246 	  indication). Fixes mime evaluation after USE magic
  247 	* PR/459: Don't insert magic entries to the list if there are parsing
  248 	  errors for them.
  249 
  250 2015-06-03  16:00  Christos Zoulas <christos@zoulas.com>
  251 
  252 	* PR/455: Add utf-7 encoding
  253 
  254 2015-06-03  14:30  Christos Zoulas <christos@zoulas.com>
  255 
  256 	* PR/455: Implement -Z, look inside, but don't report on compression
  257 	* PR/454: Fix allocation error on bad magic.
  258 
  259 2015-05-29  10:30  Christos Zoulas <christos@zoulas.com>
  260 
  261 	* handle MAGIC_CONTINUE everywhere, not just in softmagic
  262 
  263 2015-05-21  14:30  Christos Zoulas <christos@zoulas.com>
  264 
  265 	* don't print descriptions for NAME types when mime.
  266 
  267 2015-04-09  15:59  Christos Zoulas <christos@zoulas.com>
  268 
  269 	* Add --extension to list the known extensions for this file type
  270 	  Idea by Andrew J Roazen
  271 
  272 2015-02-14  12:23  Christos Zoulas <christos@zoulas.com>
  273 
  274 	* Bump file search buffer size to 1M.
  275 
  276 2015-01-09  14:35  Christos Zoulas <christos@zoulas.com>
  277 
  278 	* Fix multiple issues with date formats reported by Christoph Biedl:
  279 		- T_LOCAL meaning was reversed
  280 		- Arithmetic did not work
  281 	  Also stop adjusting daylight savings for gmt printing.
  282 
  283 2015-01-05  13:00  Christos Zoulas <christos@zoulas.com>
  284 
  285 	* PR/411: Fix memory corruption from corrupt cdf file.
  286 
  287 2015-01-02  15:15  Christos Zoulas <christos@zoulas.com>
  288 
  289 	* release 5.22
  290 
  291 2015-01-01  12:01  Christos Zoulas <christos@zoulas.com>
  292 
  293 	* add indirect relative for TIFF/Exif
  294 
  295 2014-12-16  18:10  Christos Zoulas <christos@zoulas.com>
  296 
  297 	* restructure elf note printing to avoid repeated messages
  298 	* add note limit, suggested by Alexander Cherepanov
  299 
  300 2014-12-16  16:53  Christos Zoulas <christos@zoulas.com>
  301 
  302 	* Bail out on partial pread()'s (Alexander Cherepanov)
  303 	* Fix incorrect bounds check in file_printable (Alexander Cherepanov)
  304 
  305 2014-12-11  20:01  Christos Zoulas <christos@zoulas.com>
  306 
  307 	* PR/405: ignore SIGPIPE from uncompress programs
  308 	* change printable -> file_printable and use it in
  309 	  more places for safety
  310 	* in ELF, instead of "(uses dynamic libraries)" when PT_INTERP
  311 	  is present print the interpreter name.
  312 
  313 2014-12-10  20:01  Christos Zoulas <christos@zoulas.com>
  314 
  315 	* release 5.21
  316 
  317 2014-11-27  18:40  Christos Zoulas <christos@zoulas.com>
  318 
  319 	* Allow setting more parameters from the command line.
  320 	* Split name/use and indirect magic recursion limits.
  321 
  322 2014-11-27  11:12  Christos Zoulas <christos@zoulas.com>
  323 
  324 	* Adjust ELF parameters and the default recursion
  325 	  level.
  326 	* Allow setting the recursion level dynamically.
  327 
  328 2014-11-24   8:55  Christos Zoulas <christos@zoulas.com>
  329 
  330 	* The following fixes resulted from Thomas Jarosch's fuzzing
  331 	  tests that revealed severe performance issues on pathological
  332 	  input:
  333 	    - limit number of elf program and sections processing
  334 	    - abort elf note processing quickly
  335 	    - reduce the number of recursion levels from 20 to 10
  336 	    - preserve error messages in indirect magic handling
  337 
  338 	This is tracked as CVE-2014-8116 and CVE-2014-8117
  339 
  340 2014-11-12  10:30  Christos Zoulas <christos@zoulas.com>
  341 
  342 	* fix bogus free in the user buffer case.
  343 
  344 2014-11-11  12:35  Christos Zoulas <christos@zoulas.com>
  345 
  346 	* fix out of bounds read for pascal strings
  347 	* fix memory leak (not freeing the head of each mlist)
  348 
  349 2014-11-07  10:25  Christos Zoulas <christos@zoulas.com>
  350 
  351 	* When printing strings from a file, convert them to printable
  352 	  on a byte by byte basis, so that we don't get issues with
  353 	  locale's trying to interpret random byte streams as UTF-8 and
  354 	  having printf error out with EILSEQ.
  355 
  356 2014-10-17  11:48  Christos Zoulas <christos@zoulas.com>
  357 
  358 	* fix bounds in note reading (Francisco Alonso / Red Hat)
  359 
  360 2014-10-11  15:02  Christos Zoulas <christos@zoulas.com>
  361 
  362 	* fix autoconf glue for setlocale and locale_t; some OS's
  363 	  have locale_t in xlocale.h
  364 
  365 2014-10-10  15:01  Christos Zoulas <christos@zoulas.com>
  366 
  367 	* release 5.20
  368 
  369 2014-08-17  10:01  Christos Zoulas <christos@zoulas.com>
  370 
  371 	* recognize encrypted CDF documents
  372 
  373 2014-08-04   9:18  Christos Zoulas <christos@zoulas.com>
  374 
  375 	* add magic_load_buffers from Brooks Davis
  376 
  377 2014-07-24  16:40  Christos Zoulas <christos@zoulas.com>
  378 
  379 	* add thumbs.db support
  380 
  381 2014-06-12  12:28  Christos Zoulas <christos@zoulas.com>
  382 
  383 	* release 5.19
  384 
  385 2014-06-09   9:04  Christos Zoulas <christos@zoulas.com>
  386 
  387 	* Misc buffer overruns and missing buffer size tests in cdf parsing
  388 	  (Francisco Alonso, Jan Kaluza)
  389 
  390 2014-06-02  14:50  Christos Zoulas <christos@zoulas.com>
  391 
  392 	* Enforce limit of 8K on regex searches that have no limits
  393 	* Allow the l modifier for regex to mean line count. Default
  394 	  to byte count. If line count is specified, assume a max
  395 	  of 80 characters per line to limit the byte count.
  396 	* Don't allow conversions to be used for dates, allowing
  397 	  the mask field to be used as an offset.
  398 
  399 2014-05-30  12:51  Christos Zoulas <christos@zoulas.com>
  400 
  401 	* Make the range operator limit the length of the
  402 	  regex search.
  403 
  404 2014-05-14  19:23  Christos Zoulas <christos@zoulas.com>
  405 
  406 	* PR/347: Windows fixes
  407 	* PR/352: Hangul word processor recognition
  408 	* PR/354: Encoding irregularities in text files
  409 
  410 2014-05-06  6:12  Christos Zoulas <christos@zoulas.com>
  411 
  412 	* Fix uninitialized title in CDF files (Jan Kaluza)
  413 
  414 2014-05-04  14:55  Christos Zoulas <christos@zoulas.com>
  415 
  416 	* PR/351: Fix compilation of empty files
  417 
  418 2014-04-30  17:39  Christos Zoulas <christos@zoulas.com>
  419 
  420 	* Fix integer formats: We don't specify 'l' or
  421 	  'h' and 'hh' specifiers anymore, only 'll' for
  422 	  quads and nothing for the rest. This is so that
  423 	  magic writing is simpler.
  424 
  425 2014-04-01  15:25  Christos Zoulas <christos@zoulas.com>
  426 
  427 	* PR/341: Jan Kaluza, fix memory leak
  428 	* PR/342: Jan Kaluza, fix out of bounds read
  429 
  430 2014-03-28  15:25  Christos Zoulas <christos@zoulas.com>
  431 
  432 	* Fix issue with long formats not matching fmtcheck
  433 
  434 2014-03-26  11:25  Christos Zoulas <christos@zoulas.com>
  435 
  436 	* release 5.18
  437 
  438 2014-03-15  17:45  Christos Zoulas <christos@zoulas.com>
  439 
  440 	* add fmtcheck(3) for those who don't have it
  441 
  442 2014-03-14  15:12  Christos Zoulas <christos@zoulas.com>
  443 
  444 	* prevent mime entries from being attached to magic
  445 	  entries with no descriptions
  446 
  447 	* adjust magic strength for regex type
  448 
  449 	* remove superfluous ascmagic with encoding test
  450 
  451 2014-03-06  12:01  Christos Zoulas <christos@zoulas.com>
  452 
  453 	* fix regression fix echo -ne "\012\013\014" | file -i -
  454 	  which printed "binary" instead of "application/octet-stream"
  455 
  456 	* add size_t overflow check for magic file size
  457 
  458 2014-02-27  16:01  Christos Zoulas <christos@zoulas.com>
  459 
  460 	* experimental support for matching with CFD CLSID
  461 
  462 2014-02-18  13:04  Kimmo Suominen (kimmo@suominen.com)
  463 
  464 	* Cache old LC_CTYPE locale before setting it to "C", so
  465 	  we can use it to restore LC_CTYPE instead of asking
  466 	  setlocale() to scan the environment variables.
  467 
  468 2014-02-12  18:21  Christos Zoulas <christos@zoulas.com>
  469 
  470 	* Count recursion levels through indirect magic
  471 
  472 2014-02-11  10:40  Christos Zoulas <christos@zoulas.com>
  473 
  474 	* Prevent infinite recursion on files with indirect offsets of 0
  475 
  476 2014-01-30  21:00  Christos Zoulas <christos@zoulas.com>
  477 
  478 	* Add -E flag that makes file print filesystem errors to stderr
  479 	  and exit.
  480 
  481 2014-01-08  17:20  Christos Zoulas <christos@zoulas.com>
  482 
  483 	* mime printing could print results from multiple magic entries
  484 	  if there were multiple matches.
  485 	* in some cases overflow was not detected when computing offsets
  486 	  in softmagic.
  487 
  488 2013-12-05  12:00  Christos Zoulas <christos@zoulas.com>
  489 
  490 	* use strcasestr() to for cdf strings
  491 	* reset to the "C" locale while doing regex operations, or case
  492 	  insensitive comparisons; this is provisional
  493 
  494 2013-11-19  20:10  Christos Zoulas <christos@zoulas.com>
  495 
  496 	* always leave magic file loaded, don't unload for magic_check, etc.
  497 	* fix default encoding to binary instead of unknown which broke recently
  498 	* handle empty and one byte files, less specially so that
  499 	  --mime-encoding does not break completely.
  500 		`
  501 2013-11-06  14:40  Christos Zoulas <christos@zoulas.com>
  502 
  503 	* fix erroneous non-zero exit code from non-existent file and message
  504 
  505 2013-10-29  14:25  Christos Zoulas <christos@zoulas.com>
  506 
  507 	* add CDF MSI file detection (Guy Helmer)
  508 
  509 2013-09-03  11:56  Christos Zoulas <christos@zoulas.com>
  510 
  511 	* Don't mix errors and regular output if there was an error
  512 	* in magic_descriptor() don't close the file and try to restore
  513 	  its position
  514 
  515 2013-05-30  17:25  Christos Zoulas <christos@zoulas.com>
  516 
  517 	* Don't treat magic as an error if offset was past EOF (Christoph Biedl)
  518 
  519 2013-05-28  17:25  Christos Zoulas <christos@zoulas.com>
  520 
  521 	* Fix spacing issues in softmagic and elf (Jan Kaluza)
  522 
  523 2013-05-02  18:00  Christos Zoulas <christos@zoulas.com>
  524 
  525 	* Fix segmentation fault with multiple magic_load commands.
  526 
  527 2013-04-22  11:20  Christos Zoulas <christos@zoulas.com>
  528 
  529 	* The way "default" was implemented was not very useful
  530 	  because the "if something was printed at that level"
  531 	  was not easily controlled by the user, and the format
  532 	  was bound to a string which is too restrictive. Add
  533 	  a "clear" for that level keyword and make "default"
  534 	  void. This way one can do:
  535 
  536 		>>13	clear	x
  537 		>>13	lelong	1	foo
  538 		>>13	lelong	2	bar
  539 		>>13	default	x
  540 		>>>13	lelong	x	unknown %x
  541 
  542 2013-03-25  13:20  Christos Zoulas <christos@zoulas.com>
  543 
  544 	* disallow strength setting in "name" entries
  545 
  546 2013-03-06  21:24  Christos Zoulas <christos@zoulas.com>
  547 
  548 	* fix recursive magic separator printing
  549 
  550 2013-02-26  19:28  Christos Zoulas <christos@zoulas.com>
  551 
  552 	* limit recursion level for mget
  553 	* fix pread() related breakage in cdf
  554 	* handle offsets properly in recursive "use"
  555 
  556 2013-02-18  10:39  Christos Zoulas <christos@zoulas.com>
  557 
  558 	* add elf reading of debug info to determine if file is stripped
  559 	  (Jan Kaluza)
  560 	* use pread()
  561 
  562 2013-01-25  18:05  Christos Zoulas <christos@zoulas.com>
  563 
  564 	* change mime description size from 64 to 80 to accommodate OOXML.
  565 
  566 2013-01-11  14:50  Christos Zoulas <christos@zoulas.com>
  567 
  568 	* Warn about inconsistent continuation levels.
  569 	* Change fsmagic to add a space after it prints.
  570 
  571 2013-01-10  21:00  Christos Zoulas <christos@zoulas.com>
  572 
  573 	* Make getline public so that file can link against it.
  574 	  Perhaps it is better to rename it, or hide it differently.
  575 	  Fixes builds on platforms that do not provide it.
  576 
  577 2013-01-07  16:30  Christos Zoulas <christos@zoulas.com>
  578 
  579 	* Add SuS d{,1,2,4,8}, u{,1,2,4,8} and document
  580 	  what long, int, short, etc is (Guy Harris)
  581 
  582 2013-01-06  11:20  Christos Zoulas <christos@zoulas.com>
  583 
  584 	* add magic_version function and constant
  585 	* Redo memory allocation and de-allocation.
  586 	  (prevents double frees on non mmap platforms)
  587 	* Fix bug with name/use having to do with passing
  588 	  found state from the parent to the child and back.
  589 
  590 2012-12-19   8:47  Christos Zoulas <christos@zoulas.com>
  591 
  592 	* Only print elf capabilities for archs we know (Jan Kaluza)
  593 
  594 2012-10-30  19:14  Christos Zoulas <christos@zoulas.com>
  595 
  596 	* Add "name" and "use" file types in order to look
  597 	  inside mach-o files.
  598 
  599 2012-09-06  10:40  Christos Zoulas <christos@zoulas.com>
  600 
  601 	* make --version exit 0 (Matthew Schultz)
  602 	* add string/T (Jan Kaluza)
  603 
  604 2012-08-09  2:15  Christos Zoulas <christos@zoulas.com>
  605 
  606 	* add z and t modifiers for our own vasprintf
  607 	* search for $HOME/.magic.mgc if it is there first
  608 	* fix reads from a pipe, and preserve errno
  609 
  610 2012-05-15  13:12  Christos Zoulas <christos@zoulas.com>
  611 
  612 	* use ctime_r, asctime_r
  613 
  614 2012-04-06  17:18  Christos Zoulas <christos@zoulas.com>
  615 
  616 	* Fixes for indirect offsets to handle apple disk formats
  617 
  618 2012-04-03  18:26  Christos Zoulas <christos@zoulas.com>
  619 
  620 	* Add windows date field types
  621 	* More info for windows shortcuts (incomplete)
  622 
  623 2012-02-20  17:33  Christos Zoulas <christos@zoulas.com>
  624 
  625 	* Fix CDF parsing issues found by CERT's fuzzing tool (Will Dormann)
  626 
  627 2011-12-15  12:17  Chris Metcalf <cmetcalf@tilera.com>
  628 
  629 	* Support Tilera architectures (tile64, tilepro, tilegx).
  630 
  631 2011-12-16  16:33  Reuben Thomas <rrt@sc3d.org>
  632 
  633 	* Add magic for /usr/bin/env Perl scripts
  634 	* Weaken generic script magic to avoid clashing with
  635 	language-specific magic.
  636 
  637 2011-12-08  13:37  Reuben Thomas <rrt@sc3d.org>
  638 
  639 	* Simplify if (p) free(p) to free(p).
  640 
  641 2011-12-08  13:07  Reuben Thomas <rrt@sc3d.org>
  642 
  643 	* Remove hardwired token finding (names.h), turning it into soft
  644 	magic. Patterns are either anchored regexs or search/8192. English
  645 	language detection and PL/1 detection have been removed as they
  646 	were too fragile. -e tokens is still accepted for backwards
  647 	compatibility.
  648 	* Move 3ds patterns (which are commented out anyway) into autodesk
  649 	(they were, oddly, in c-lang).
  650 
  651 2011-12-06  00:16  Reuben Thomas <rrt@sc3d.org>
  652 
  653 	* Tweak strength of generic hash-bang detectors to be less than
  654 	specific ones.
  655 	* Make an inconsistent description of Python scripts consistent.
  656 
  657 2011-12-05  23:58  Reuben Thomas <rrt@sc3d.org>
  658 
  659 	* Fix minor error in file(1).
  660 
  661 2011-11-05  00:00  Reuben Thomas <rrt@sc3d.org>
  662 
  663 	* Fix issue #150 (I hope).
  664 
  665 2011-09-22  12:57  Christos Zoulas <christos@zoulas.com>
  666 
  667 	* Python3 binding fixes from Kelly Anderson
  668 
  669 2011-09-20  11:32  Christos Zoulas <christos@zoulas.com>
  670 
  671 	* If a string type magic entry is marked as text or binary
  672 	  only match text files against text entries and binary
  673 	  files against binary entries.
  674 
  675 2011-09-01  12:12  Christos Zoulas <christos@zoulas.com>
  676 
  677 	* Don't wait for any subprocess, just the one we forked.
  678 
  679 2011-08-26  16:40  Christos Zoulas <christos@zoulas.com>
  680 
  681 	* If the application name is not set in a cdf file, try to see
  682 	  if it has a directory with the application name on it.
  683 
  684 2011-08-17  14:32  Christos Zoulas <christos@zoulas.com>
  685 
  686 	* Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
  687 
  688 2011-08-14  09:03  Christos Zoulas <christos@zoulas.com>
  689 
  690 	* Don't use variable string formats.
  691 
  692 2011-07-12  12:32  Reuben Thomas <rrt@sc3d.org>
  693 
  694 	* Fix detection of Zip files (Mantis #128).
  695 	* Make some minor improvements to file(1).
  696 	* Rename MIME types for filesystem objects for consistency with
  697 	  xdg-utils. Typically this means that application/x-foo becomes
  698 	  inode/foo, but some names also change slightly, e.g.
  699 	  application/x-character-device becomes inode/chardevice.
  700 
  701 2011-05-10  20:57  Christos Zoulas <christos@zoulas.com>
  702 
  703 	* fix mingw compilation (Abradoks)
  704 
  705 2011-05-10  20:57  Christos Zoulas <christos@zoulas.com>
  706 
  707 	* remove patchlevel.h
  708 	* Fix read past allocated memory caused by double-incrementing
  709 	  a pointer in a loop (reported by Roberto Maar)
  710 
  711 2011-03-30  15:45  Christos Zoulas <christos@zoulas.com>
  712 
  713 	* Fix cdf string buffer setting (Sven Anders)
  714 
  715 2011-03-20  16:35  Christos Zoulas <christos@zoulas.com>
  716 
  717 	* Eliminate MAXPATHLEN and use dynamic allocation for
  718 	  path and file buffers.
  719 
  720 2011-03-15  18:15  Christos Zoulas <christos@zoulas.com>
  721 
  722 	* binary tests on magic entries with masks could spuriously
  723 	  get converted to ascii.
  724 
  725 2011-03-12  18:06  Reuben Thomas <rrt@sc3d.org>
  726 
  727 	* Improve file.man (remove BUGS, present email addresses consistently).
  728 
  729 2011-03-07  19:38  Christos Zoulas <christos@zoulas.com>
  730 
  731 	* add lrzip support (from Ville Skytta)
  732 
  733 2011-02-10  16:36  Christos Zoulas <christos@zoulas.com>
  734 
  735 	* fix CDF bounds checking (Guy Helmer)
  736 
  737 2011-02-10  12:03  Christos Zoulas <christos@zoulas.com>
  738 
  739 	* add cdf_ctime() that prints a meaningful error when time cannot
  740 	  be converted.
  741 
  742 2011-02-02  20:40  Christos Zoulas <christos@zoulas.com>
  743 
  744 	* help and version output to stdout.
  745 
  746 	* When matching softmagic for ascii files, don't just print
  747 	  the softmagic classification, keep going and print the
  748 	  text classification too. This fixes broken troff files when
  749 	  we moved them from keyword recognition to softmagic
  750 	  (they stopped printing "with CRLF" etc.)
  751 	  Reported by Doug McIlroy.
  752 
  753 2011-01-16  19:31  Reuben Thomas <rrt@sc3d.org>
  754 
  755 	* Fix two potential buffer overruns in apprentice_list.
  756 
  757 2011-01-14  22:33  Reuben Thomas <rrt@sc3d.org>
  758 
  759 	* New Python binding in pure Python.
  760 	* Update libmagic(3).
  761 
  762 2011-01-06  21:40  Reuben Thomas <rrt@sc3d.org>
  763 
  764 	* Fix Python bindings (including recent Python 3 compatibility
  765 	  update).
  766 
  767 2011-01-04  18:43  Reuben Thomas <rrt@sc3d.org>
  768 
  769 	* magic/Makefile.am: make it easier to recover from magic build failures.
  770 	* Fix pstring length specifier parsing to avoid generating invalid
  771 	  magic files.
  772 	* Add pstring length "J" (for "JPEG") to specify that the length
  773 	  include itself.
  774 	* Fix JPEG comment parsing at last using pstring/HJ!
  775 	* Ignore section 5 man pages in doc/.cvsignore.
  776 
  777 2010-12-22  13:12  Christos Zoulas <christos@zoulas.com>
  778 
  779 	* Add pstring/BHhLl to specify the type of the length of pascal
  780 	  strings.
  781 
  782 2010-11-26  18:39  Reuben Thomas <rrt@sc3d.org>
  783 
  784 	* Fix "-e soft": it was ignored when softmagic was called
  785 	  during asciimagic.
  786 	* Improve comments and use "unsigned char" in tar.h/is_tar.c.
  787 
  788 2010-11-05  17:26  Reuben Thomas <rrt@sc3d.org>
  789 
  790 	* Make bug reporting addresses more visible.
  791 
  792 2010-11-01  18:35  Reuben Thomas <rrt@sc3d.org>
  793 
  794 	* Add tcl magic from Gustaf Neumann
  795 
  796 2010-10-24  10:42  Christos Zoulas <christos@zoulas.com>
  797 
  798 	* Fix the whitespace comparing code (Christopher Chittleborough)
  799 
  800 2010-10-06  21:05  Christos Zoulas <christos@zoulas.com>
  801 
  802 	* allow string/t to work (Jan Kaluza)
  803 
  804 2010-09-20  22:11  Reuben Thomas <rrt@sc3d.org>
  805 
  806 	* Apply some patches from Ubuntu and Fedora.
  807 
  808 2010-09-20  21:16  Reuben Thomas <rrt@sc3d.org>
  809 
  810 	* Apply all patches from Debian package 5.04-6 which have not
  811 	  already been applied and are not Debian-specific.
  812 
  813 2010-09-20  15:24  Reuben Thomas <rrt@sc3d.org>
  814 
  815 	* Minor security fix to softmagic.c (don't use untrusted
  816 	  string as printf format).
  817 
  818 2010-07-21  12:20  Christos Zoulas <christos@zoulas.com>
  819 
  820 	* MINGW32 portability from LRN
  821 
  822 	* Don't warn about escaping magic regex chars when we are in a regex.
  823 
  824 2010-07-19  10:55  Christos Zoulas <christos@zoulas.com>
  825 
  826 	* Only try to print prpsinfo for core files. (Jan Kaluza)
  827 
  828 2010-04-22  12:55  Christos Zoulas <christos@zoulas.com>
  829 
  830 	* Try more elf offsets for Debian core files.  (Arnaud Giersch)
  831 
  832 2010-02-20  15:18  Reuben Thomas <rrt@sc3d.org>
  833 
  834 	* Clarify which sort of CDF we mean.
  835 
  836 2010-02-14  22:58  Reuben Thomas <rrt@sc3d.org>
  837 
  838 	* Re-jig Zip file type magic so that unsupported special
  839 	  Zip types (those with "mimetype" at offset 30) can be
  840 	  recognized.
  841 
  842 2010-02-02  21:50  Reuben Thomas <rrt@sc3d.org>
  843 
  844 	* Add support for OCF (EPUB) files (application/epub+zip)
  845 
  846 2010-01-28  18:25  Christos Zoulas <christos@zoulas.com>
  847 
  848 	* Fix core-dump from unbound loop:
  849 	  https://bugzilla.redhat.com/show_bug.cgi?id=533245
  850 
  851 2010-01-22  15:45  Christos Zoulas <christos@zoulas.com>
  852 
  853 	* print proper mime for crystal reports file
  854 
  855 	* print the last summary information of a cdf document, not the
  856 	  first so that nested documents print the right info
  857 
  858 2010-01-16  18:42  Charles Longeau <chl@tuxfamily.org>
  859 
  860 	* bring back some fixes from OpenBSD:
  861 		- make gcc2 builds file
  862 		- fix typos in a magic file comment
  863 
  864 2009-11-17  18:35  Christos Zoulas <christos@zoulas.com>
  865 
  866 	* ctime/asctime can return NULL on some OS's although
  867 	  they should not (Toshit Antani)
  868 
  869 2009-09-14  13:49  Christos Zoulas <christos@zoulas.com>
  870 
  871 	* Centralize magic path handling routines and remove the
  872 	  special-casing from file.c so that the python module for
  873 	  example comes up with the same magic path (Fixes ~/.magic
  874 	  handling) (from Gab)
  875 
  876 2009-09-11  23:38  Reuben Thomas <rrt@sc3d.org>
  877 
  878 	* When magic argument is a directory, read the files in
  879 	  strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
  880 
  881 2009-09-11  13:11  Reuben Thomas <rrt@sc3d.org>
  882 
  883 	* Combine overlapping epoc and psion magic files into one (epoc).
  884 
  885 	* Add some more EPOC MIME types.
  886 
  887 2009-08-19  15:55  Christos Zoulas <christos@zoulas.com>
  888 
  889 	* Fix 3 bugs (From Ian Darwin):
  890 	    - file_showstr could move one past the end of the array
  891 	    - parse_apple did not nul terminate the string in the overflow case
  892 	    - parse_mime truncated the wrong string in the overflow case
  893 
  894 2009-08-12  12:28  Robert Byrnes  <byrnes@wildpumpkin.net>
  895 
  896 	* Include Localstuff when compiling magic.
  897 
  898 2009-07-15  10:05  Christos Zoulas <christos@zoulas.com>
  899 
  900 	* Fix logic for including mygetopts.h
  901 
  902 	* Make cdf.c compile again with debugging
  903 
  904 	* Add the necessary field handling for crystal reports files to work
  905 
  906 2009-06-23 01:34  Reuben Thomas <rrt@sc3d.org>
  907 
  908 	* Stop "(if" identifying Lisp files, that's plain dumb!
  909 
  910 2009-06-09 22:13  Reuben Thomas <rrt@sc3d.org>
  911 
  912 	* Add a couple of missing MP3 MIME types.
  913 
  914 2009-05-27 23:00  Reuben Thomas <rrt@sc3d.org>
  915 
  916 	* Add full range of hash-bang tests for Python and Ruby.
  917 
  918 	* Add MIME types for Python and Ruby scripts.
  919 
  920 2009-05-13  10:44  Christos Zoulas <christos@zoulas.com>
  921 
  922 	* off by one in parsing hw capabilities in elf
  923 	  (Cheng Renquan)
  924 
  925 2009-05-08  13:40  Christos Zoulas <christos@zoulas.com>
  926 
  927 	* lint fixes and more from NetBSD
  928 
  929 2009-05-06  10:25  Christos Zoulas <christos@zoulas.com>
  930 
  931 	* Avoid null dereference in cdf code (Drew Yao)
  932 
  933 	* More cdf bounds checks and overflow checks
  934 
  935 2009-05-01  18:37  Christos Zoulas <christos@zoulas.com>
  936 
  937 	* Buffer overflow fixes from Drew Yao
  938 
  939 2009-04-30  17:10  Christos Zoulas <christos@zoulas.com>
  940 
  941 	* Fix more cdf lossage. All the documents I have
  942 	  right now print the correct information.
  943 
  944 2009-03-27  18:43  Christos Zoulas <christos@zoulas.com>
  945 
  946 	* don't print \012- separators in the same magic entry
  947 	  if it consists of multiple magic printing lines.
  948 
  949 2009-03-23  10:20  Christos Zoulas <christos@zoulas.com>
  950 
  951 	* Avoid file descriptor leak in compress code from
  952 	  (Daniel Novotny)
  953 
  954 2009-03-18  16:50  Christos Zoulas <christos@zoulas.com>
  955 
  956 	* Allow escaping of relation characters, so that we can say \^[A-Z]
  957 	  and the ^ is not eaten as a relation char.
  958 
  959 	* Fix troff and fortran to their previous glory using
  960 	  regex. This was broken since their removel from ascmagic.
  961 
  962 2009-03-10  16:50  Christos Zoulas <christos@zoulas.com>
  963 
  964 	* don't use strlen in strndup() (Toby Peterson)
  965 
  966 2009-03-10  7:45  Christos Zoulas <christos@zoulas.com>
  967 
  968 	* avoid c99 syntax.
  969 
  970 2009-02-23 15:45  Christos Zoulas <christos@zoulas.com>
  971 
  972 	* make the cdf code use the buffer first if available,
  973 	  and then the fd code.
  974 
  975 2009-02-13 13:45  Christos Zoulas <christos@zoulas.com>
  976 
  977 	* look for struct option to determine if getopt.h is usable for IRIX.
  978 
  979 	* sanitize cdf document strings
  980 
  981 2009-02-04 13:25  Christos Zoulas <christos@zoulas.com>
  982 
  983 	* fix OS/2 warnings.
  984 
  985 2008-12-12 15:50  Christos Zoulas <christos@zoulas.com>
  986 
  987 	* fix initial offset calculation for non 4K sector files
  988 
  989 	* add loop limits to avoid DoS attacks by constructing
  990 	  looping sector references.
  991 
  992 2008-12-03 13:05  Christos Zoulas <christos@zoulas.com>
  993 
  994 	* fix memory botches on cdf file parsing.
  995 
  996 	* exit with non-zero value for any error, not just for the last
  997 	  file processed.
  998 
  999 2008-11-09 20:42  Charles Longeau <chl@tuxfamily.org>
 1000 
 1001 	* Replace all str{cpy,cat} functions with strl{cpy,cat}
 1002 	* Ensure that strl{cpy,cat} are included in libmagic,
 1003 	  as needed.
 1004 
 1005 2008-11-06 18:18  Christos Zoulas <christos@zoulas.com>
 1006 
 1007 	* Handle ID3 format files.
 1008 
 1009 2008-11-06 23:00  Reuben Thomas <rrt@sc3d.org>
 1010 
 1011 	* Fix --mime, --mime-type and --mime-encoding under new scheme.
 1012 
 1013 	* Rename "ascii" to "text" and add "encoding" test.
 1014 
 1015 	* Return a precise ("utf-16le" or "utf-16be") MIME charset for
 1016 	  UTF-16.
 1017 
 1018 	* Fix error in comment caused by automatic indentation adding
 1019 	  words!
 1020 
 1021 2008-11-06 10:35  Christos Zoulas <christos@astron.com>
 1022 
 1023 	* use memchr instead of strchr because the string
 1024 	  might not be NUL terminated (Scott MacVicar)
 1025 
 1026 2008-11-03 07:31  Reuben Thomas <rrt@sc3d.org>
 1027 
 1028 	* Fix a printf with a non-literal format string.
 1029 
 1030 	* Fix formatting and punctuation of help for "--apple".
 1031 
 1032 2008-10-30 11:00  Reuben Thomas <rrt@sc3d.org>
 1033 
 1034 	* Correct words counts in comments of struct magic.
 1035 
 1036 	* Fix handle_annotation to allow both Apple and MIME types to be
 1037 	  printed, and to return correct code if MIME type is
 1038 	  printed (1, not 0) or if there's an error (-1 not 1).
 1039 
 1040 	* Fix output of charset for MIME type (precede with semi-colon;
 1041 	  fixes Debian bug #501460).
 1042 
 1043 	* Fix potential attacks via conversion specifications in magic
 1044 	  strings.
 1045 
 1046 	* Add a FIXME for Debian bug #488562 (magic files should be
 1047 	  read in a defined order, by sorting the names).
 1048 
 1049 2008-10-18 16:45  Christos Zoulas <christos@astron.com>
 1050 
 1051 	* Added APPLE file creator/type
 1052 
 1053 2008-10-12 10:20  Christos Zoulas <christos@astron.com>
 1054 
 1055 	* Added CDF parsing
 1056 
 1057 2008-10-09 16:40  Christos Zoulas <christos@astron.com>
 1058 
 1059 	* filesystem and msdos patches (Joerg Jenderek)
 1060 
 1061 2008-10-09 13:20  Christos Zoulas <christos@astron.com>
 1062 
 1063 	* correct --exclude documentation issues: remove troff and fortran
 1064 	  and rename "token" to "tokens". (Randy McMurchy)
 1065 
 1066 2008-10-01 10:30  Christos Zoulas <christos@astron.com>
 1067 
 1068 	* Read ~/.magic in addition to the default magic file not instead
 1069 	  of, as documented in the man page.
 1070 
 1071 2008-09-10 21:30  Reuben Thomas  <rrt@sc3d.org>
 1072 
 1073 	* Comment out graphviz patterns, as they match too many files.
 1074 
 1075 2008-08-30 12:54  Christos Zoulas <christos@astron.com>
 1076 
 1077 	* Don't eat trailing \n in magic enties.
 1078 
 1079 	* Cast defines to allow compilation using a c++ compiler.
 1080 
 1081 2008-08-25 23:56  Reuben Thomas  <rrt@sc3d.org>
 1082 
 1083 	* Add text/x-lua MIME type for Lua scripts.
 1084 
 1085 	* Escape { in regex in graphviz patterns.
 1086 
 1087 2008-07-26 00:59  Reuben Thomas  <rrt@sc3d.org>
 1088 
 1089 	* Add MIME types for special files.
 1090 
 1091 	* Use access to give more accurate information for files that
 1092 	  can't be opened.
 1093 
 1094 	* Add a TODO list.
 1095 
 1096 2008-07-02 11:15  Christos Zoulas  <christos@astron.com>
 1097 
 1098 	* add !:strength op to adjust magic strength (experimental)
 1099 
 1100 2008-06-16 21:41  Reuben Thomas  <rrt@sc3d.org>
 1101 
 1102 	* Fix automake error in configure.ac.
 1103 
 1104 	* Add MIME type for Psion Sketch files.
 1105 
 1106 2008-06-05 08:59  Christos Zoulas  <christos@astron.com>
 1107 
 1108 	* Don't print warnings about bad namesize in stripped
 1109 	  binaries with PT_NOTE is still there, and the actual
 1110 	  note is gone (Jakub Jelinek)
 1111 
 1112 2008-05-28 15:12  Robert Byrnes  <byrnes@wildpumpkin.net>
 1113 
 1114 	* magic/Magdir/elf:
 1115 	  Note invalid byte order for little-endian SPARC32PLUS.
 1116 	  Add SPARC V9 vendor extensions and memory model.
 1117 
 1118 	* src/elfclass.h:
 1119 	  Pass target machine to doshn (for Solaris hardware capabilities).
 1120 
 1121 	* src/readelf.c (doshn):
 1122 	  Add support for Solaris hardware/software capabilities.
 1123 
 1124 	* src/readelf.h:
 1125 	  Ditto.
 1126 
 1127 	* src/vasprintf.c (dispatch):
 1128 	  Add support for ll modifier.
 1129 
 1130 2008-05-16 10:25  Christos Zoulas  <christos@astron.com>
 1131 
 1132 	* Fix compiler warnings.
 1133 
 1134 	* remove stray printf, and fix a vprintf bug. (Martin Dorey)
 1135 
 1136 2008-05-06 00:13  Robert Byrnes  <byrnes@wildpumpkin.net>
 1137 
 1138 	* src/Makefile.am:
 1139 	  Ensure that getopt_long and [v]asprintf are included in libmagic,
 1140 	  as needed.
 1141 
 1142 	  Remove unnecessary EXTRA_DIST.
 1143 
 1144 	* src/Makefile.in:
 1145 	  Rerun automake.
 1146 
 1147 	* src/vasprintf.c (dispatch):
 1148 	  Fix variable precision bug: be sure to step past '*'.
 1149 
 1150 	* src/vasprintf.c (core):
 1151 	  Remove unreachable code.
 1152 
 1153 	* src/apprentice.c (set_test_type):
 1154 	  Add cast to avoid compiler warning.
 1155 
 1156 2008-04-22 23:45  Christos Zoulas  <christos@astron.com>
 1157 
 1158 	* Add magic submission guidelines (Abel Cheung)
 1159 
 1160 	* split msdos and windows magic (Abel Cheung)
 1161 
 1162 2008-04-04 11:00  Christos Zoulas  <christos@astron.com>
 1163 
 1164 	* >= <= is not supported, so fix the magic and warn about it.
 1165 	  reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
 1166 
 1167 2008-03-27 16:16  Robert Byrnes  <byrnes@wildpumpkin.net>
 1168 
 1169 	* src/readelf.c (donote):
 1170 	  ELF core file command name/line bug fixes and enhancements:
 1171 
 1172 	  Try larger offsets first to avoid false matches
 1173 	  from earlier data that happen to look like strings;
 1174 	  this primarily affected SunOS 5.x 32-bit Intel core files.
 1175 
 1176 	  Add support for command line (instead of just short name)
 1177 	  for SunOS 5.x.
 1178 
 1179 	  Add information about NT_PSINFO for SunOS 5.x.
 1180 
 1181 	  Only trim whitespace from end of command line.
 1182 
 1183 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
 1184 
 1185 	* Change strength of ! from MULT to 0, as it matches almost
 1186 		  anything (Reuben Thomas)
 1187 
 1188 	* Debian fixes (Reuben Thomas)
 1189 
 1190 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
 1191 
 1192 	* Clarify UTF-8 BOM message (Reuben Thomas)
 1193 
 1194 	* Add HTML comment to token list in names.h
 1195 
 1196 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
 1197 
 1198 	* Debian fixes (Reuben Thomas)
 1199 
 1200 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
 1201 
 1202 	* !:mime annotations in magic files (Reuben Thomas)
 1203 
 1204 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
 1205 
 1206 	* zero out utime/utimes structs (Gavin Atkinson)
 1207 
 1208 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
 1209 
 1210 	* reduce writable data from Diego "Flameeyes" Petten
 1211 
 1212 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
 1213 
 1214 	* strtof detection
 1215 
 1216 	* remove bogus regex magic that could cause a DoS
 1217 
 1218 	* better mismatch version message
 1219 
 1220 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
 1221 
 1222 	* bring back some fixes from OpenBSD
 1223 
 1224 	* treat ELF dynamic objects as executables
 1225 
 1226 	* fix gcc warnings
 1227 
 1228 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
 1229 
 1230 	* make sure we have zlib.h and libz to compile the builtin
 1231 	  decompress code
 1232 
 1233 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
 1234 
 1235  	* float and double magic support (Behan Webster)
 1236 
 1237 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
 1238 
 1239 	* Convert fortran to a soft test (Reuben Thomas)
 1240 
 1241 2007-10-23  5:25 Christos Zoulas <christos@astron.com>
 1242 
 1243 	* Add --with-filename, and --no-filename (Reuben Thomas)
 1244 
 1245 2007-10-23  3:59 Christos Zoulas <christos@astron.com>
 1246 
 1247 	* Rest of the mime split (Reuben Thomas)
 1248 
 1249 	* Make usage message generated from the flags so that
 1250 	  they stay consistent (Reuben Thomas)
 1251 
 1252 2007-10-20  3:06 Christos Zoulas <christos@astron.com>
 1253 
 1254 	* typo in comment, missing ifdef QUICK, remove unneeded code
 1255 		(Charles Longeau)
 1256 
 1257 2007-10-17  3:33 Christos Zoulas <christos@astron.com>
 1258 
 1259 	* Fix problem printing -\012 in some entries
 1260 
 1261 	* Separate magic type and encoding flags (Reuben Thomas)
 1262 
 1263 2007-10-09  3:55 Christos Zoulas <christos@astron.com>
 1264 
 1265 	* configure fix for int64 and strndup (Reuben Thomas)
 1266 
 1267 2007-09-26  4:45 Christos Zoulas <christos@astron.com>
 1268 
 1269 	* Add magic_descriptor() function.
 1270 
 1271 	* Fix regression in elf reading code where the core name was
 1272 	  not being printed.
 1273 
 1274 	* Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
 1275 
 1276 2007-08-19  6:30 Christos Zoulas <christos@astron.com>
 1277 
 1278 	* Make mime format consistent so that it can
 1279 	  be easily parsed:
 1280 	      mimetype [charset=character-set] [encoding=encoding-mime-type]
 1281 
 1282 	  Remove spurious extra text from some MIME type printouts
 1283 	  (mostly in is_tar).
 1284 
 1285 	  Fix one case where -i produced nothing at all (for a 1-byte file,
 1286 	  which is now classed as application/octet-stream).
 1287 
 1288 	  Remove 7/8bit classifications, since they were arbitrary
 1289 	  and not based on the file data.
 1290 
 1291 	  This work was done by Reuben Thomas
 1292 
 1293 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
 1294 
 1295 	* Fix another integer overflow (Colin Percival)
 1296 
 1297 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
 1298 
 1299 	* make sure that all of struct magic_set is initialized appropriately
 1300 	  (Brett)
 1301 
 1302 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
 1303 
 1304 	* reset left bytes in the buffer (Dmitry V. Levin)
 1305 
 1306 	* compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
 1307 	  (Peter Avalos)
 1308 
 1309 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
 1310 
 1311 	* fix fortran and nroff reversed tests (Dmitry V. Levin)
 1312 
 1313 	* fix exclude option (Dmitry V. Levin)
 1314 
 1315 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
 1316 
 1317 	* fix integer underflow in file_printf which can lead to
 1318 	  to exploitable heap overflow (Jean-Sebastien Guay-Lero)
 1319 
 1320 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
 1321 
 1322 	* make socket/pipe reading more robust
 1323 
 1324 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
 1325 
 1326 	* Centralize all the tests in file_buffer.
 1327 
 1328 	* Add exclude flag.
 1329 
 1330 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
 1331 
 1332 	* Move the "type" detection code from parse() into its own table
 1333 	  driven routine.  This avoids maintaining multiple lists in
 1334 	  file.h.
 1335 
 1336 	* Add an optional conditional field (ust before the type field).
 1337 	  This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
 1338 	  likely to go away.
 1339 
 1340 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
 1341 
 1342 	* Fix an initialization bug in check_mem().
 1343 
 1344 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
 1345 
 1346 	* Add a "default" type to print a message if nothing previously
 1347 	  matched at that level or since the last default at that
 1348 	  level.  This is useful for setting up switch-like statements.
 1349 	  It can also be used to do if/else constructions without a
 1350 	  redundant second test.
 1351 
 1352 	* Fix the "x" special case test so that one can test for that
 1353 	  string with "=x".
 1354 
 1355 	* Allow "search" to search the entire buffer if the "/N"
 1356 	  search count is missing.
 1357 
 1358 	* Make "regex" work!  It now starts its search at the
 1359 	  specified offset and takes an (optional) "/N" line count to
 1360 	  specify the search range; otherwise it searches to the end
 1361 	  of the file.  The match is now grabbed correctly for format
 1362 	  strings and the offset set to the end of the match.
 1363 
 1364 	* Add a "/s" flag to "regex" and "search" to set the offset to
 1365 	  the start of the match.  By default the offset is set to the
 1366 	  end of the match, as it is with other tests.  This is mostly
 1367 	  useful for "regex".
 1368 
 1369 	* Make "search", "string" and "pstring" use the same
 1370 	  file_strncmp() routine so that they support the same flags;
 1371 	  "bestring16" and "lestring16" call the same routine, but
 1372 	  with flags = 0.  Also add a "/C" flag (in analogy to "/c")
 1373 	  to ignore the case on uppercase (lowercase) characters in
 1374 	  the test string.
 1375 
 1376 	* Strict adherence to C style string escapes.  A warnings are
 1377 	  printed when compiling.  Note: previously "\a" was
 1378 	  incorrectly translated to 'a' instead of an <alert> (i.e.,
 1379 	  BELL, typically 0x07).
 1380 
 1381 	* Make this compile with "-Wall -Wextra" and all the warning
 1382 	  flags used with WARNS=4 in the NetBSD source.  Also make it
 1383 	  pass lint.
 1384 
 1385 	* Many "cleanups" and hopefully not too many new bugs!
 1386 
 1387 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
 1388 
 1389 	* make several more files compile with gcc warnings
 1390 	  on and also make them pass lint.
 1391 
 1392 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
 1393 
 1394 	* fix a puts()/putc() usage goof in file.c
 1395 
 1396 	* make file.c compile with gcc warnings and pass lint
 1397 
 1398 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
 1399 
 1400 	* fix byteswapping issue
 1401 
 1402 	* report the number of bytes we tried to
 1403 	  allocate when allocation fails
 1404 
 1405 	* add a few missed cases in the strength routine
 1406 
 1407 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
 1408 
 1409 	* store and print the line number of the magic
 1410 	  entry for debugging.
 1411 
 1412 	* if the magic entry did not print anything,
 1413 	  don't treat it as a match
 1414 
 1415 	* change the magic strength algorithm to take
 1416 	  into account the relationship op.
 1417 
 1418 	* fix a bug in search where we could accidentally
 1419 	  return a match.
 1420 
 1421 	* propagate the error return from match to
 1422 	  file_softmagic.
 1423 
 1424 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
 1425 
 1426 	* Don't store the current offset in the magic
 1427 	  struct, because it needs to be restored and
 1428 	  it was not done properly all the time. Bug
 1429 	  found by: Arkadiusz Miskiewicz
 1430 
 1431 	* Fix problem in the '\0' separator; and don't
 1432 	  print it as an additional separator; print
 1433 	  it as the only separator.
 1434 
 1435 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
 1436 
 1437 	* Added a -0 option to print a '\0' separator
 1438 	  Etienne Buira <etienne.buira@free.fr>
 1439 
 1440 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
 1441 
 1442 	* Check offset before copying (Mike Frysinger)
 1443 
 1444 	* merge duplicated code
 1445 
 1446 	* add quad date support
 1447 
 1448 	* make sure that we nul terminate desc (Ryoji Kanai)
 1449 
 1450 	* don't process elf notes multiple times
 1451 
 1452 	* allow -z to report empty compressed files
 1453 
 1454 	* use calloc to initialize the ascii buffers (Jos van den Oever)
 1455 
 1456 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
 1457 
 1458 	* QNX fixes (Mike Gorchak)
 1459 
 1460 	* Add quad support.
 1461 
 1462 	* FIFO checks (Dr. Werner Fink)
 1463 
 1464 	* Linux ELF fixes (Dr. Werner Fink)
 1465 
 1466 	* Magic format checks (Dr. Werner Fink)
 1467 
 1468 	* Magic format function improvent (Karl Chen)
 1469 
 1470 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
 1471 
 1472 	* Pick up some elf changes and some constant fixes from SUSE
 1473 
 1474 	* Identify gnu tar vs. posix tar
 1475 
 1476 	* When keep going, don't print spurious newlines (Radek Vokal)
 1477 
 1478 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
 1479 
 1480 	* Use calloc instead of malloc (Mike Frysinger)
 1481 
 1482 	* Fix configure script to detect wctypes.h (Mike Frysinger)
 1483 
 1484 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
 1485 
 1486 	* Print empty if the file is (Mike Frysinger)
 1487 
 1488 	* Don't try to read past the end of the buffer (Mike Frysinger)
 1489 
 1490 	* Sort magic entries by strength [experimental]
 1491 
 1492 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
 1493 
 1494 	* Use iswprint() to convert the output string.
 1495 	    (Bastien Nocera)
 1496 
 1497 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
 1498 
 1499 	* Fix regression where the core info was not completely processed
 1500 	    (Radek Vokal)
 1501 
 1502 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
 1503 
 1504 	* Middle Endian magic (Diomidis Spinellis)
 1505 
 1506 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
 1507 
 1508 	* Open with O_BINARY for CYGWIN (Corinna Vinschen)
 1509 
 1510 	* Don't close stdin (Arkadiusz Miskiewicz)
 1511 
 1512 	* Look for note sections in non executables.
 1513 
 1514 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
 1515 
 1516 	* Don't print SVR4 Style in core files multiple times
 1517 	    (Radek Vokal)
 1518 
 1519 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
 1520 
 1521 	* Cygwin changes Corinna Vinschen
 1522 
 1523 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
 1524 
 1525 	* Remove erroreous mention of /etc/magic in the file man page
 1526 	  This is gentoo bug 101639. (Mike Frysinger)
 1527 
 1528 	* Cross-compile support and detection (Mike Frysinger)
 1529 
 1530 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
 1531 
 1532 	* Add -h flag and dereference symlinks if POSIXLY_CORRECT
 1533 	  is set.
 1534 
 1535 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
 1536 
 1537 	* Avoid search and regex buffer overflows (Kelledin)
 1538 
 1539 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
 1540 
 1541 	* Provide stub implementations for {v,}nsprintf() for older
 1542 	  OS's that don't have them.
 1543 	* Change mbstate_t autoconf detection macro from AC_MBSTATE_T
 1544 	  to AC_TYPE_MBSTATE_T.
 1545 
 1546 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
 1547 
 1548 	* Dynamically allocate the string buffers and make the
 1549 	  default read size 256K.
 1550 
 1551 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
 1552 
 1553 	* Dragonfly ELF note support
 1554 
 1555 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
 1556 
 1557 	* Avoid NULL pointer dereference in time conversion.
 1558 
 1559 2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
 1560 
 1561 	* Add indirect magic offset support, and search mode.
 1562 
 1563 2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
 1564 
 1565 	* src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
 1566 	  If a CRLF text file happens to have CR at offset HOWMANY - 1
 1567 	  (currently 0xffff), it should not be counted as CR line
 1568 	  terminator.
 1569 	  If a line has length exactly MAXLINELEN, it should not yet be
 1570 	  treated as a ``very long line'', as MAXLINELEN is ``longest sane
 1571 	  line length''.
 1572 	  With CRLF, the line length was not computed correctly, and even
 1573 	  lines of length MAXLINELEN - 1 were treated as ``very long''.
 1574 
 1575 2004-12-07 14:15  Christos Zoulas  <christos@astron.com>
 1576 
 1577 	* bzip2 needs a lot of input buffer space on some files
 1578 	  before it can begin uncompressing. This makes file -z
 1579 	  fail on some bz2 files. Fix it by giving it a copy of
 1580 	  the file descriptor to read as much as it wants if we
 1581 	  have access to it. <christos@astron.com>
 1582 
 1583 2004-11-24 12:39  Christos Zoulas  <christos@astron.com>
 1584 
 1585 	* Stack smash fix, and ELF more conservative reading.
 1586 	  Jakub Bogusz <qboosh@pld-linux.org>
 1587 
 1588 2004-11-20 18:50  Christos Zoulas  <christos@astron.com>
 1589 
 1590 	* New FreeBSD version parsing code:
 1591 	  Jon Noack <noackjr@alumni.rice.edu>
 1592 
 1593 	* Hackish support for ucs16 strings <christos@astron.com>
 1594 
 1595 2004-11-13 03:07  Christos Zoulas  <christos@astron.com>
 1596 
 1597 	* print the file name and line number in syntax errors.
 1598 
 1599 2004 10-12 10:50  Christos Zoulas  <christos@astron.com>
 1600 
 1601 	* Fix stack overwriting on 0 length strings: Tim Waugh
 1602 	    <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
 1603 
 1604 2004-09-27 11:30  Christos Zoulas  <christos@astron.com>
 1605 
 1606 	* Remove 3rd and 4th copyright clause; approved by Ian Darwin.
 1607 
 1608 	* Fix small memory leaks; caught by: Tamas Sarlos
 1609 	    <stamas@csillag.ilab.sztaki.hu>
 1610 
 1611 2004-07-24 16:33  Christos Zoulas  <christos@astron.com>
 1612 
 1613 	* magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
 1614 
 1615 	* FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
 1616 
 1617 	* utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
 1618 
 1619   	* errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
 1620 
 1621 2004-04-12 10:55  Christos Zoulas  <christos@astron.com>
 1622 
 1623 	* make sure that magic formats match magic types during compilation
 1624 
 1625 	* fix broken sgi magic file
 1626 
 1627 2004-04-06 20:36  Christos Zoulas  <christos@astron.com>
 1628 
 1629 	* detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
 1630 
 1631 	* magic fixes
 1632 
 1633 2004-03-22 15:25  Christos Zoulas  <christos@astron.com>
 1634 
 1635 	* Lots of mime fixes
 1636 	  (Joerg Ostertag) <ostertag@rechengilde.de>
 1637 
 1638 	* FreeBSD ELF version handling
 1639 	  (Edwin Groothuis) <edwin@mavetju.org>
 1640 
 1641 	* correct cleanup in all cases; don't just close the file.
 1642 	  (Christos Zoulas) <christos@astron.com>
 1643 
 1644 	* add gettext message catalogue support
 1645 	  (Michael Piefel) <piefel@debian.org>
 1646 
 1647 	* better printout for unreadable files
 1648 	  (Michael Piefel) <piefel@debian.org>
 1649 
 1650 	* compensate for missing MAXPATHLEN
 1651 	  (Michael Piefel) <piefel@debian.org>
 1652 
 1653 	* add wide character string length computation
 1654 	  (Michael Piefel) <piefel@debian.org>
 1655 
 1656 	* Avoid infinite loops caused by bad elf alignments
 1657 	  or name and description note sizes. Reported by
 1658 	  (Mikael Magnusson) <mmikael@comhem.se>
 1659 
 1660 2004-03-09 13:55  Christos Zoulas  <christos@astron.com>
 1661 
 1662 	* Fix possible memory leak on error and add missing regfree
 1663 	  (Dmitry V. Levin) <ldv@altlinux.org>
 1664 
 1665 2003-12-23 12:12  Christos Zoulas  <christos@astron.com>
 1666 
 1667 	* fix -k flag (Maciej W. Rozycki)
 1668 
 1669 2003-11-18 14:10  Christos Zoulas  <christos@astron.com>
 1670 
 1671 	* Try to give us much info as possible on corrupt elf files.
 1672 	  (Willy Tarreau) <willy@w.ods.org>
 1673 	* Updated python bindings (Brett Funderburg)
 1674 	   <brettf@deepfile.com>
 1675 
 1676 2003-11-11 15:03  Christos Zoulas  <christos@astron.com>
 1677 
 1678 	* Include file.h first, because it includes config.h
 1679 	  breaks largefile test macros otherwise.
 1680 	  (Paul Eggert <eggert@CS.UCLA.EDU> via
 1681 	   Lars Hecking <lhecking@nmrc.ie>)
 1682 
 1683 2003-10-14 21:39  Christos Zoulas  <christos@astron.com>
 1684 
 1685 	* Python bindings (Brett Funderburg) <brettf@deepfile.com>
 1686 	* Don't lookup past the end of the buffer
 1687 	  (Chad Hanson) <chanson@tcs-sec.com>
 1688 	* Add MAGIC_ERROR and api on magic_errno()
 1689 
 1690 2003-10-08 12:40  Christos Zoulas  <christos@astron.com>
 1691 
 1692 	* handle error conditions from compile as fatal
 1693 	  (Antti Kantee) <pooka@netbsd.org>
 1694 	* handle magic filename parsing sanely
 1695 	* more magic fixes.
 1696 	* fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
 1697 	* describe magic file handling
 1698 	  (Bryan Henderson) <bryanh@giraffe-data.com>
 1699 
 1700 2003-09-12 15:09  Christos Zoulas  <christos@astron.com>
 1701 
 1702 	* update magic files.
 1703 	* remove largefile support from file.h; it breaks things on most OS's
 1704 
 1705 2003-08-10 10:25  Christos Zoulas  <christos@astron.com>
 1706 
 1707 	* fix unmapping'ing of mmaped files.
 1708 
 1709 2003-07-10 12:03  Christos Zoulas  <christos@astron.com>
 1710 
 1711 	* don't exit with -1 on error; always exit 1 (Marty Leisner)
 1712 	* restore utimes code.
 1713 
 1714 2003-06-10 17:03  Christos Zoulas  <christos@astron.com>
 1715 
 1716 	* make sure we don't access uninitialized memory.
 1717 	* pass lint
 1718 	* #ifdef __cplusplus in magic.h
 1719 
 1720 2003-05-25 19:23  Christos Zoulas  <christos@astron.com>
 1721 
 1722 	* rename cvs magic file to revision to deal with
 1723 	  case insensitive filesystems.
 1724 
 1725 2003-05-23 17:03  Christos Zoulas  <christos@astron.com>
 1726 
 1727 	* documentation fixes from Michael Piefel <piefel@debian.org>
 1728 	* magic fixes (various)
 1729 	* revert basename magic in .mgc name determination
 1730 	* buffer protection in uncompress,
 1731 	  signness issues,
 1732 	  close files
 1733 	  Maciej W. Rozycki <macro@ds2.pg.gda.pl
 1734 
 1735 2003-04-21 20:12  Christos Zoulas  <christos@astron.com>
 1736 
 1737 	* fix zsh magic
 1738 
 1739 2003-04-04 16:59  Christos Zoulas  <christos@astron.com>
 1740 
 1741 	* fix operand sort order in string.
 1742 
 1743 2003-04-02 17:30  Christos Zoulas  <christos@astron.com>
 1744 
 1745 	* cleanup namespace in magic.h
 1746 
 1747 2003-04-02 13:50  Christos Zoulas  <christos@astron.com>
 1748 
 1749 	* Magic additions (Alex Ott)
 1750 	* Fix bug that broke VPATH compilation (Peter Breitenlohner)
 1751 
 1752 2003-03-28 16:03  Christos Zoulas  <christos@astron.com>
 1753 
 1754 	* remove packed attribute from magic struct.
 1755 	* make the magic struct properly aligned.
 1756 	* bump version number of compiled files to 2.
 1757 
 1758 2003-03-27 13:10  Christos Zoulas  <christos@astron.com>
 1759 
 1760 	* separate tar detection and run it before softmagic.
 1761 	* fix reversed symlink test.
 1762 	* fix version printing.
 1763 	* make separator a string instead of a char.
 1764 	* update manual page and sort options.
 1765 
 1766 2003-03-26 11:00  Christos Zoulas  <christos@astron.com>
 1767 
 1768 	* Pass lint
 1769 	* make NULL in magic_file mean stdin
 1770 	* Fix "-" argument to file to pass NULL to magic_file
 1771 	* avoid pointer casts by using memcpy
 1772 	* rename magic_buf -> magic_buffer
 1773 	* keep only the first error
 1774 	* manual page: new sentence, new line
 1775 	* fix typo in api function (magic_buf -> magic_buffer)