ChangeLog 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  1. 2011-12-15 12:17 Chris Metcalf <cmetcalf@tilera.com>
  2. * Support Tilera architectures (tile64, tilepro, tilegx).
  3. 2011-12-16 16:33 Reuben Thomas <rrt@sc3d.org>
  4. * Add magic for /usr/bin/env Perl scripts
  5. * Weaken generic script magic to avoid clashing with
  6. language-specific magic.
  7. 2011-12-08 13:37 Reuben Thomas <rrt@sc3d.org>
  8. * Simplify if (p) free(p) to free(p).
  9. 2011-12-08 13:07 Reuben Thomas <rrt@sc3d.org>
  10. * Remove hardwired token finding (names.h), turning it into soft
  11. magic. Patterns are either anchored regexs or search/8192. English
  12. language detection and PL/1 detection have been removed as they
  13. were too fragile. -e tokens is still accepted for backwards
  14. compatibility.
  15. * Move 3ds patterns (which are commented out anyway) into autodesk
  16. (they were, oddly, in c-lang).
  17. 2011-12-06 00:16 Reuben Thomas <rrt@sc3d.org>
  18. * Tweak strength of generic hash-bang detectors to be less than
  19. specific ones.
  20. * Make an inconsistent description of Python scripts consistent.
  21. 2011-12-05 23:58 Reuben Thomas <rrt@sc3d.org>
  22. * Fix minor error in file(1).
  23. 2011-11-05 00:00 Reuben Thomas <rrt@sc3d.org>
  24. * Fix issue #150 (I hope).
  25. 2011-09-22 12:57 Christos Zoulas <christos@zoulas.com>
  26. * Python3 binding fixes from Kelly Anderson
  27. 2011-09-20 11:32 Christos Zoulas <christos@zoulas.com>
  28. * If a string type magic entry is marked as text or binary
  29. only match text files against text entries and binary
  30. files against binary entries.
  31. 2011-09-01 12:12 Christos Zoulas <christos@zoulas.com>
  32. * Don't wait for any subprocess, just the one we forked.
  33. 2011-08-26 16:40 Christos Zoulas <christos@zoulas.com>
  34. * If the application name is not set in a cdf file, try to see
  35. if it has a directory with the application name on it.
  36. 2011-08-17 14:32 Christos Zoulas <christos@zoulas.com>
  37. * Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
  38. 2011-08-14 09:03 Christos Zoulas <christos@zoulas.com>
  39. * Don't use variable string formats.
  40. 2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org>
  41. * Fix detection of Zip files (Mantis #128).
  42. * Make some minor improvements to file(1).
  43. * Rename MIME types for filesystem objects for consistency with
  44. xdg-utils. Typically this means that application/x-foo becomes
  45. inode/foo, but some names also change slightly, e.g.
  46. application/x-character-device becomes inode/chardevice.
  47. 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
  48. * fix mingw compilation (Abradoks)
  49. 2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
  50. * remove patchlevel.h
  51. * Fix read past allocated memory caused by double-incrementing
  52. a pointer in a loop (reported by Roberto Maar)
  53. 2011-03-30 15:45 Christos Zoulas <christos@zoulas.com>
  54. * Fix cdf string buffer setting (Sven Anders)
  55. 2011-03-20 16:35 Christos Zoulas <christos@zoulas.com>
  56. * Eliminate MAXPATHLEN and use dynamic allocation for
  57. path and file buffers.
  58. 2011-03-15 18:15 Christos Zoulas <christos@zoulas.com>
  59. * binary tests on magic entries with masks could spuriously
  60. get converted to ascii.
  61. 2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org>
  62. * Improve file.man (remove BUGS, present email addresses consistently).
  63. 2011-03-07 19:38 Christos Zoulas <christos@zoulas.com>
  64. * add lrzip support (from Ville Skytta)
  65. 2011-02-10 16:36 Christos Zoulas <christos@zoulas.com>
  66. * fix CDF bounds checking (Guy Helmer)
  67. 2011-02-10 12:03 Christos Zoulas <christos@zoulas.com>
  68. * add cdf_ctime() that prints a meaningful error when time cannot
  69. be converted.
  70. 2011-02-02 20:40 Christos Zoulas <christos@zoulas.com>
  71. * help and version output to stdout.
  72. * When matching softmagic for ascii files, don't just print
  73. the softmagic classification, keep going and print the
  74. text classification too. This fixes broken troff files when
  75. we moved them from keyword recognition to softmagic
  76. (they stopped printing "with CRLF" etc.)
  77. Reported by Doug McIlroy.
  78. 2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org>
  79. * Fix two potential buffer overruns in apprentice_list.
  80. 2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org>
  81. * New Python binding in pure Python.
  82. * Update libmagic(3).
  83. 2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org>
  84. * Fix Python bindings (including recent Python 3 compatibility
  85. update).
  86. 2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org>
  87. * magic/Makefile.am: make it easier to recover from magic build failures.
  88. * Fix pstring length specifier parsing to avoid generating invalid
  89. magic files.
  90. * Add pstring length "J" (for "JPEG") to specify that the length
  91. include itself.
  92. * Fix JPEG comment parsing at last using pstring/HJ!
  93. * Ignore section 5 man pages in doc/.cvsignore.
  94. 2010-12-22 13:12 Christos Zoulas <christos@zoulas.com>
  95. * Add pstring/BHhLl to specify the type of the length of pascal
  96. strings.
  97. 2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org>
  98. * Fix "-e soft": it was ignored when softmagic was called
  99. during asciimagic.
  100. * Improve comments and use "unsigned char" in tar.h/is_tar.c.
  101. 2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org>
  102. * Make bug reporting addresses more visible.
  103. 2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org>
  104. * Add tcl magic from Gustaf Neumann
  105. 2010-10-24 10:42 Christos Zoulas <christos@zoulas.com>
  106. * Fix the whitespace comparing code (Christopher Chittleborough)
  107. 2010-10-06 21:05 Christos Zoulas <christos@zoulas.com>
  108. * allow string/t to work (Jan Kaluza)
  109. 2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org>
  110. * Apply some patches from Ubuntu and Fedora.
  111. 2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org>
  112. * Apply all patches from Debian package 5.04-6 which have not
  113. already been applied and are not Debian-specific.
  114. 2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org>
  115. * Minor security fix to softmagic.c (don't use untrusted
  116. string as printf format).
  117. 2010-07-21 12:20 Christos Zoulas <christos@zoulas.com>
  118. * MINGW32 portability from LRN
  119. * Don't warn about escaping magic regex chars when we are in a regex.
  120. 2010-07-19 10:55 Christos Zoulas <christos@zoulas.com>
  121. * Only try to print prpsinfo for core files. (Jan Kaluza)
  122. 2010-04-22 12:55 Christos Zoulas <christos@zoulas.com>
  123. * Try more elf offsets for Debian core files. (Arnaud Giersch)
  124. 2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org>
  125. * Clarify which sort of CDF we mean.
  126. 2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org>
  127. * Re-jig Zip file type magic so that unsupported special
  128. Zip types (those with "mimetype" at offset 30) can be
  129. recognized.
  130. 2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org>
  131. * Add support for OCF (EPUB) files (application/epub+zip)
  132. 2010-01-28 18:25 Christos Zoulas <christos@zoulas.com>
  133. * Fix core-dump from unbound loop:
  134. https://bugzilla.redhat.com/show_bug.cgi?id=533245
  135. 2010-01-22 15:45 Christos Zoulas <christos@zoulas.com>
  136. * print proper mime for crystal reports file
  137. * print the last summary information of a cdf document, not the
  138. first so that nested documents print the right info
  139. 2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org>
  140. * bring back some fixes from OpenBSD:
  141. - make gcc2 builds file
  142. - fix typos in a magic file comment
  143. 2009-11-17 18:35 Christos Zoulas <christos@zoulas.com>
  144. * ctime/asctime can return NULL on some OS's although
  145. they should not (Toshit Antani)
  146. 2009-09-14 13:49 Christos Zoulas <christos@zoulas.com>
  147. * Centralize magic path handling routines and remove the
  148. special-casing from file.c so that the python module for
  149. example comes up with the same magic path (Fixes ~/.magic
  150. handling) (from Gab)
  151. 2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org>
  152. * When magic argument is a directory, read the files in
  153. strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
  154. 2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org>
  155. * Combine overlapping epoc and psion magic files into one (epoc).
  156. * Add some more EPOC MIME types.
  157. 2009-08-19 15:55 Christos Zoulas <christos@zoulas.com>
  158. * Fix 3 bugs (From Ian Darwin):
  159. - file_showstr could move one past the end of the array
  160. - parse_apple did not nul terminate the string in the overflow case
  161. - parse_mime truncated the wrong string in the overflow case
  162. 2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net>
  163. * Include Localstuff when compiling magic.
  164. 2009-07-15 10:05 Christos Zoulas <christos@zoulas.com>
  165. * Fix logic for including mygetopts.h
  166. * Make cdf.c compile again with debugging
  167. * Add the necessary field handling for crystal reports files to work
  168. 2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org>
  169. * Stop "(if" identifying Lisp files, that's plain dumb!
  170. 2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org>
  171. * Add a couple of missing MP3 MIME types.
  172. 2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org>
  173. * Add full range of hash-bang tests for Python and Ruby.
  174. * Add MIME types for Python and Ruby scripts.
  175. 2009-05-13 10:44 Christos Zoulas <christos@zoulas.com>
  176. * off by one in parsing hw capabilities in elf
  177. (Cheng Renquan)
  178. 2009-05-08 13:40 Christos Zoulas <christos@zoulas.com>
  179. * lint fixes and more from NetBSD
  180. 2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
  181. * Avoid null dereference in cdf code (Drew Yao)
  182. * More cdf bounds checks and overflow checks
  183. 2009-05-01 18:37 Christos Zoulas <christos@zoulas.com>
  184. * Buffer overflow fixes from Drew Yao
  185. 2009-04-30 17:10 Christos Zoulas <christos@zoulas.com>
  186. * Fix more cdf lossage. All the documents I have
  187. right now print the correct information.
  188. 2009-03-27 18:43 Christos Zoulas <christos@zoulas.com>
  189. * don't print \012- separators in the same magic entry
  190. if it consists of multiple magic printing lines.
  191. 2009-03-23 10:20 Christos Zoulas <christos@zoulas.com>
  192. * Avoid file descriptor leak in compress code from
  193. (Daniel Novotny)
  194. 2009-03-18 16:50 Christos Zoulas <christos@zoulas.com>
  195. * Allow escaping of relation characters, so that we can say \^[A-Z]
  196. and the ^ is not eaten as a relation char.
  197. * Fix troff and fortran to their previous glory using
  198. regex. This was broken since their removel from ascmagic.
  199. 2009-03-10 16:50 Christos Zoulas <christos@zoulas.com>
  200. * don't use strlen in strndup() (Toby Peterson)
  201. 2009-03-10 7:45 Christos Zoulas <christos@zoulas.com>
  202. * avoid c99 syntax.
  203. 2009-02-23 15:45 Christos Zoulas <christos@zoulas.com>
  204. * make the cdf code use the buffer first if available,
  205. and then the fd code.
  206. 2009-02-13 13:45 Christos Zoulas <christos@zoulas.com>
  207. * look for struct option to determine if getopt.h is usable for IRIX.
  208. * sanitize cdf document strings
  209. 2009-02-04 13:25 Christos Zoulas <christos@zoulas.com>
  210. * fix OS/2 warnings.
  211. 2008-12-12 15:50 Christos Zoulas <christos@zoulas.com>
  212. * fix initial offset calculation for non 4K sector files
  213. * add loop limits to avoid DoS attacks by constructing
  214. looping sector references.
  215. 2008-12-03 13:05 Christos Zoulas <christos@zoulas.com>
  216. * fix memory botches on cdf file parsing.
  217. * exit with non-zero value for any error, not just for the last
  218. file processed.
  219. 2008-11-09 20:42 Charles Longeau <chl@tuxfamily.org>
  220. * Replace all str{cpy,cat} functions with strl{cpy,cat}
  221. * Ensure that strl{cpy,cat} are included in libmagic,
  222. as needed.
  223. 2008-11-06 18:18 Christos Zoulas <christos@zoulas.com>
  224. * Handle ID3 format files.
  225. 2008-11-06 23:00 Reuben Thomas <rrt@sc3d.org>
  226. * Fix --mime, --mime-type and --mime-encoding under new scheme.
  227. * Rename "ascii" to "text" and add "encoding" test.
  228. * Return a precise ("utf-16le" or "utf-16be") MIME charset for
  229. UTF-16.
  230. * Fix error in comment caused by automatic indentation adding
  231. words!
  232. 2008-11-06 10:35 Christos Zoulas <christos@astron.com>
  233. * use memchr instead of strchr because the string
  234. might not be NUL terminated (Scott MacVicar)
  235. 2008-11-03 07:31 Reuben Thomas <rrt@sc3d.org>
  236. * Fix a printf with a non-literal format string.
  237. * Fix formatting and punctuation of help for "--apple".
  238. 2008-10-30 11:00 Reuben Thomas <rrt@sc3d.org>
  239. * Correct words counts in comments of struct magic.
  240. * Fix handle_annotation to allow both Apple and MIME types to be
  241. printed, and to return correct code if MIME type is
  242. printed (1, not 0) or if there's an error (-1 not 1).
  243. * Fix output of charset for MIME type (precede with semi-colon;
  244. fixes Debian bug #501460).
  245. * Fix potential attacks via conversion specifications in magic
  246. strings.
  247. * Add a FIXME for Debian bug #488562 (magic files should be
  248. read in a defined order, by sorting the names).
  249. 2008-10-18 16:45 Christos Zoulas <christos@astron.com>
  250. * Added APPLE file creator/type
  251. 2008-10-12 10:20 Christos Zoulas <christos@astron.com>
  252. * Added CDF parsing
  253. 2008-10-09 16:40 Christos Zoulas <christos@astron.com>
  254. * filesystem and msdos patches (Joerg Jenderek)
  255. 2008-10-09 13:20 Christos Zoulas <christos@astron.com>
  256. * correct --exclude documentation issues: remove troff and fortran
  257. and rename "token" to "tokens". (Randy McMurchy)
  258. 2008-10-01 10:30 Christos Zoulas <christos@astron.com>
  259. * Read ~/.magic in addition to the default magic file not instead
  260. of, as documented in the man page.
  261. 2008-09-10 21:30 Reuben Thomas <rrt@sc3d.org>
  262. * Comment out graphviz patterns, as they match too many files.
  263. 2008-08-30 12:54 Christos Zoulas <christos@astron.com>
  264. * Don't eat trailing \n in magic enties.
  265. * Cast defines to allow compilation using a c++ compiler.
  266. 2008-08-25 23:56 Reuben Thomas <rrt@sc3d.org>
  267. * Add text/x-lua MIME type for Lua scripts.
  268. * Escape { in regex in graphviz patterns.
  269. 2008-07-26 00:59 Reuben Thomas <rrt@sc3d.org>
  270. * Add MIME types for special files.
  271. * Use access to give more accurate information for files that
  272. can't be opened.
  273. * Add a TODO list.
  274. 2008-07-02 11:15 Christos Zoulas <christos@astron.com>
  275. * add !:strength op to adjust magic strength (experimental)
  276. 2008-06-16 21:41 Reuben Thomas <rrt@sc3d.org>
  277. * Fix automake error in configure.ac.
  278. * Add MIME type for Psion Sketch files.
  279. 2008-06-05 08:59 Christos Zoulas <christos@astron.com>
  280. * Don't print warnings about bad namesize in stripped
  281. binaries with PT_NOTE is still there, and the actual
  282. note is gone (Jakub Jelinek)
  283. 2008-05-28 15:12 Robert Byrnes <byrnes@wildpumpkin.net>
  284. * magic/Magdir/elf:
  285. Note invalid byte order for little-endian SPARC32PLUS.
  286. Add SPARC V9 vendor extensions and memory model.
  287. * src/elfclass.h:
  288. Pass target machine to doshn (for Solaris hardware capabilities).
  289. * src/readelf.c (doshn):
  290. Add support for Solaris hardware/software capabilities.
  291. * src/readelf.h:
  292. Ditto.
  293. * src/vasprintf.c (dispatch):
  294. Add support for ll modifier.
  295. 2008-05-16 10:25 Christos Zoulas <christos@astron.com>
  296. * Fix compiler warnings.
  297. * remove stray printf, and fix a vprintf bug. (Martin Dorey)
  298. 2008-05-06 00:13 Robert Byrnes <byrnes@wildpumpkin.net>
  299. * src/Makefile.am:
  300. Ensure that getopt_long and [v]asprintf are included in libmagic,
  301. as needed.
  302. Remove unnecessary EXTRA_DIST.
  303. * src/Makefile.in:
  304. Rerun automake.
  305. * src/vasprintf.c (dispatch):
  306. Fix variable precision bug: be sure to step past '*'.
  307. * src/vasprintf.c (core):
  308. Remove unreachable code.
  309. * src/apprentice.c (set_test_type):
  310. Add cast to avoid compiler warning.
  311. 2008-04-22 23:45 Christos Zoulas <christos@astron.com>
  312. * Add magic submission guidelines (Abel Cheung)
  313. * split msdos and windows magic (Abel Cheung)
  314. 2008-04-04 11:00 Christos Zoulas <christos@astron.com>
  315. * >= <= is not supported, so fix the magic and warn about it.
  316. reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
  317. 2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
  318. * src/readelf.c (donote):
  319. ELF core file command name/line bug fixes and enhancements:
  320. Try larger offsets first to avoid false matches
  321. from earlier data that happen to look like strings;
  322. this primarily affected SunOS 5.x 32-bit Intel core files.
  323. Add support for command line (instead of just short name)
  324. for SunOS 5.x.
  325. Add information about NT_PSINFO for SunOS 5.x.
  326. Only trim whitespace from end of command line.
  327. 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
  328. * Change strength of ! from MULT to 0, as it matches almost
  329. anything (Reuben Thomas)
  330. * Debian fixes (Reuben Thomas)
  331. 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
  332. * Clarify UTF-8 BOM message (Reuben Thomas)
  333. * Add HTML comment to token list in names.h
  334. 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
  335. * Debian fixes (Reuben Thomas)
  336. 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
  337. * !:mime annotations in magic files (Reuben Thomas)
  338. 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
  339. * zero out utime/utimes structs (Gavin Atkinson)
  340. 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
  341. * reduce writable data from Diego "Flameeyes" Petten
  342. 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
  343. * strtof detection
  344. * remove bogus regex magic that could cause a DoS
  345. * better mismatch version message
  346. 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
  347. * bring back some fixes from OpenBSD
  348. * treat ELF dynamic objects as executables
  349. * fix gcc warnings
  350. 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
  351. * make sure we have zlib.h and libz to compile the builtin
  352. decompress code
  353. 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
  354. * float and double magic support (Behan Webster)
  355. 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
  356. * Convert fortran to a soft test (Reuben Thomas)
  357. 2007-10-23 5:25 Christos Zoulas <christos@astron.com>
  358. * Add --with-filename, and --no-filename (Reuben Thomas)
  359. 2007-10-23 3:59 Christos Zoulas <christos@astron.com>
  360. * Rest of the mime split (Reuben Thomas)
  361. * Make usage message generated from the flags so that
  362. they stay consistent (Reuben Thomas)
  363. 2007-10-20 3:06 Christos Zoulas <christos@astron.com>
  364. * typo in comment, missing ifdef QUICK, remove unneeded code
  365. (Charles Longeau)
  366. 2007-10-17 3:33 Christos Zoulas <christos@astron.com>
  367. * Fix problem printing -\012 in some entries
  368. * Separate magic type and encoding flags (Reuben Thomas)
  369. 2007-10-09 3:55 Christos Zoulas <christos@astron.com>
  370. * configure fix for int64 and strndup (Reuben Thomas)
  371. 2007-09-26 4:45 Christos Zoulas <christos@astron.com>
  372. * Add magic_descriptor() function.
  373. * Fix regression in elf reading code where the core name was
  374. not being printed.
  375. * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
  376. 2007-08-19 6:30 Christos Zoulas <christos@astron.com>
  377. * Make mime format consistent so that it can
  378. be easily parsed:
  379. mimetype [charset=character-set] [encoding=encoding-mime-type]
  380. Remove spurious extra text from some MIME type printouts
  381. (mostly in is_tar).
  382. Fix one case where -i produced nothing at all (for a 1-byte file,
  383. which is now classed as application/octet-stream).
  384. Remove 7/8bit classifications, since they were arbitrary
  385. and not based on the file data.
  386. This work was done by Reuben Thomas
  387. 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
  388. * Fix another integer overflow (Colin Percival)
  389. 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
  390. * make sure that all of struct magic_set is initialized appropriately
  391. (Brett)
  392. 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
  393. * reset left bytes in the buffer (Dmitry V. Levin)
  394. * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
  395. (Peter Avalos)
  396. 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
  397. * fix fortran and nroff reversed tests (Dmitry V. Levin)
  398. * fix exclude option (Dmitry V. Levin)
  399. 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
  400. * fix integer underflow in file_printf which can lead to
  401. to exploitable heap overflow (Jean-Sebastien Guay-Lero)
  402. 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
  403. * make socket/pipe reading more robust
  404. 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
  405. * Centralize all the tests in file_buffer.
  406. * Add exclude flag.
  407. 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
  408. * Move the "type" detection code from parse() into its own table
  409. driven routine. This avoids maintaining multiple lists in
  410. file.h.
  411. * Add an optional conditional field (ust before the type field).
  412. This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
  413. likely to go away.
  414. 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
  415. * Fix an initialization bug in check_mem().
  416. 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
  417. * Add a "default" type to print a message if nothing previously
  418. matched at that level or since the last default at that
  419. level. This is useful for setting up switch-like statements.
  420. It can also be used to do if/else constructions without a
  421. redundant second test.
  422. * Fix the "x" special case test so that one can test for that
  423. string with "=x".
  424. * Allow "search" to search the entire buffer if the "/N"
  425. search count is missing.
  426. * Make "regex" work! It now starts its search at the
  427. specified offset and takes an (optional) "/N" line count to
  428. specify the search range; otherwise it searches to the end
  429. of the file. The match is now grabbed correctly for format
  430. strings and the offset set to the end of the match.
  431. * Add a "/s" flag to "regex" and "search" to set the offset to
  432. the start of the match. By default the offset is set to the
  433. end of the match, as it is with other tests. This is mostly
  434. useful for "regex".
  435. * Make "search", "string" and "pstring" use the same
  436. file_strncmp() routine so that they support the same flags;
  437. "bestring16" and "lestring16" call the same routine, but
  438. with flags = 0. Also add a "/C" flag (in analogy to "/c")
  439. to ignore the case on uppercase (lowercase) characters in
  440. the test string.
  441. * Strict adherence to C style string escapes. A warnings are
  442. printed when compiling. Note: previously "\a" was
  443. incorrectly translated to 'a' instead of an <alert> (i.e.,
  444. BELL, typically 0x07).
  445. * Make this compile with "-Wall -Wextra" and all the warning
  446. flags used with WARNS=4 in the NetBSD source. Also make it
  447. pass lint.
  448. * Many "cleanups" and hopefully not too many new bugs!
  449. 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
  450. * make several more files compile with gcc warnings
  451. on and also make them pass lint.
  452. 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
  453. * fix a puts()/putc() usage goof in file.c
  454. * make file.c compile with gcc warnings and pass lint
  455. 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
  456. * fix byteswapping issue
  457. * report the number of bytes we tried to
  458. allocate when allocation fails
  459. * add a few missed cases in the strength routine
  460. 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
  461. * store and print the line number of the magic
  462. entry for debugging.
  463. * if the magic entry did not print anything,
  464. don't treat it as a match
  465. * change the magic strength algorithm to take
  466. into account the relationship op.
  467. * fix a bug in search where we could accidentally
  468. return a match.
  469. * propagate the error return from match to
  470. file_softmagic.
  471. 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
  472. * Don't store the current offset in the magic
  473. struct, because it needs to be restored and
  474. it was not done properly all the time. Bug
  475. found by: Arkadiusz Miskiewicz
  476. * Fix problem in the '\0' separator; and don't
  477. print it as an additional separator; print
  478. it as the only separator.
  479. 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
  480. * Added a -0 option to print a '\0' separator
  481. Etienne Buira <etienne.buira@free.fr>
  482. 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
  483. * Check offset before copying (Mike Frysinger)
  484. * merge duplicated code
  485. * add quad date support
  486. * make sure that we nul terminate desc (Ryoji Kanai)
  487. * don't process elf notes multiple times
  488. * allow -z to report empty compressed files
  489. * use calloc to initialize the ascii buffers (Jos van den Oever)
  490. 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
  491. * QNX fixes (Mike Gorchak)
  492. * Add quad support.
  493. * FIFO checks (Dr. Werner Fink)
  494. * Linux ELF fixes (Dr. Werner Fink)
  495. * Magic format checks (Dr. Werner Fink)
  496. * Magic format function improvent (Karl Chen)
  497. 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
  498. * Pick up some elf changes and some constant fixes from SUSE
  499. * Identify gnu tar vs. posix tar
  500. * When keep going, don't print spurious newlines (Radek Vokál)
  501. 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
  502. * Use calloc instead of malloc (Mike Frysinger)
  503. * Fix configure script to detect wctypes.h (Mike Frysinger)
  504. 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
  505. * Print empty if the file is (Mike Frysinger)
  506. * Don't try to read past the end of the buffer (Mike Frysinger)
  507. * Sort magic entries by strength [experimental]
  508. 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
  509. * Use iswprint() to convert the output string.
  510. (Bastien Nocera)
  511. 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
  512. * Fix regression where the core info was not completely processed
  513. (Radek Vokál)
  514. 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
  515. * Middle Endian magic (Diomidis Spinellis)
  516. 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
  517. * Open with O_BINARY for CYGWIN (Corinna Vinschen)
  518. * Don't close stdin (Arkadiusz Miskiewicz)
  519. * Look for note sections in non executables.
  520. 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
  521. * Don't print SVR4 Style in core files multiple times
  522. (Radek Vokál)
  523. 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
  524. * Cygwin changes Corinna Vinschen
  525. 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
  526. * Remove erroreous mention of /etc/magic in the file man page
  527. This is gentoo bug 101639. (Mike Frysinger)
  528. * Cross-compile support and detection (Mike Frysinger)
  529. 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
  530. * Add -h flag and dereference symlinks if POSIXLY_CORRECT
  531. is set.
  532. 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
  533. * Avoid search and regex buffer overflows (Kelledin)
  534. 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
  535. * Provide stub implementations for {v,}nsprintf() for older
  536. OS's that don't have them.
  537. * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
  538. to AC_TYPE_MBSTATE_T.
  539. 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
  540. * Dynamically allocate the string buffers and make the
  541. default read size 256K.
  542. 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
  543. * Dragonfly ELF note support
  544. 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
  545. * Avoid NULL pointer dereference in time conversion.
  546. 2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
  547. * Add indirect magic offset support, and search mode.
  548. 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
  549. * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
  550. If a CRLF text file happens to have CR at offset HOWMANY - 1
  551. (currently 0xffff), it should not be counted as CR line
  552. terminator.
  553. If a line has length exactly MAXLINELEN, it should not yet be
  554. treated as a ``very long line'', as MAXLINELEN is ``longest sane
  555. line length''.
  556. With CRLF, the line length was not computed correctly, and even
  557. lines of length MAXLINELEN - 1 were treated as ``very long''.
  558. 2004-12-07 14:15 Christos Zoulas <christos@astron.com>
  559. * bzip2 needs a lot of input buffer space on some files
  560. before it can begin uncompressing. This makes file -z
  561. fail on some bz2 files. Fix it by giving it a copy of
  562. the file descriptor to read as much as it wants if we
  563. have access to it. <christos@astron.com>
  564. 2004-11-24 12:39 Christos Zoulas <christos@astron.com>
  565. * Stack smash fix, and ELF more conservative reading.
  566. Jakub Bogusz <qboosh@pld-linux.org>
  567. 2004-11-20 18:50 Christos Zoulas <christos@astron.com>
  568. * New FreeBSD version parsing code:
  569. Jon Noack <noackjr@alumni.rice.edu>
  570. * Hackish support for ucs16 strings <christos@astron.com>
  571. 2004-11-13 03:07 Christos Zoulas <christos@astron.com>
  572. * print the file name and line number in syntax errors.
  573. 2004 10-12 10:50 Christos Zoulas <christos@astron.com>
  574. * Fix stack overwriting on 0 length strings: Tim Waugh
  575. <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
  576. 2004-09-27 11:30 Christos Zoulas <christos@astron.com>
  577. * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
  578. * Fix small memory leaks; caught by: Tamas Sarlos
  579. <stamas@csillag.ilab.sztaki.hu>
  580. 2004-07-24 16:33 Christos Zoulas <christos@astron.com>
  581. * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
  582. * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
  583. * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
  584. * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
  585. 2004-04-12 10:55 Christos Zoulas <christos@astron.com>
  586. * make sure that magic formats match magic types during compilation
  587. * fix broken sgi magic file
  588. 2004-04-06 20:36 Christos Zoulas <christos@astron.com>
  589. * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
  590. * magic fixes
  591. 2004-03-22 15:25 Christos Zoulas <christos@astron.com>
  592. * Lots of mime fixes
  593. (Joerg Ostertag) <ostertag@rechengilde.de>
  594. * FreeBSD ELF version handling
  595. (Edwin Groothuis) <edwin@mavetju.org>
  596. * correct cleanup in all cases; don't just close the file.
  597. (Christos Zoulas) <christos@astron.com>
  598. * add gettext message catalogue support
  599. (Michael Piefel) <piefel@debian.org>
  600. * better printout for unreadable files
  601. (Michael Piefel) <piefel@debian.org>
  602. * compensate for missing MAXPATHLEN
  603. (Michael Piefel) <piefel@debian.org>
  604. * add wide character string length computation
  605. (Michael Piefel) <piefel@debian.org>
  606. * Avoid infinite loops caused by bad elf alignments
  607. or name and description note sizes. Reported by
  608. (Mikael Magnusson) <mmikael@comhem.se>
  609. 2004-03-09 13:55 Christos Zoulas <christos@astron.com>
  610. * Fix possible memory leak on error and add missing regfree
  611. (Dmitry V. Levin) <ldv@altlinux.org>
  612. 2003-12-23 12:12 Christos Zoulas <christos@astron.com>
  613. * fix -k flag (Maciej W. Rozycki)
  614. 2003-11-18 14:10 Christos Zoulas <christos@astron.com>
  615. * Try to give us much info as possible on corrupt elf files.
  616. (Willy Tarreau) <willy@w.ods.org>
  617. * Updated python bindings (Brett Funderburg)
  618. <brettf@deepfile.com>
  619. 2003-11-11 15:03 Christos Zoulas <christos@astron.com>
  620. * Include file.h first, because it includes config.h
  621. breaks largefile test macros otherwise.
  622. (Paul Eggert <eggert@CS.UCLA.EDU> via
  623. Lars Hecking <lhecking@nmrc.ie>)
  624. 2003-10-14 21:39 Christos Zoulas <christos@astron.com>
  625. * Python bindings (Brett Funderburg) <brettf@deepfile.com>
  626. * Don't lookup past the end of the buffer
  627. (Chad Hanson) <chanson@tcs-sec.com>
  628. * Add MAGIC_ERROR and api on magic_errno()
  629. 2003-10-08 12:40 Christos Zoulas <christos@astron.com>
  630. * handle error conditions from compile as fatal
  631. (Antti Kantee) <pooka@netbsd.org>
  632. * handle magic filename parsing sanely
  633. * more magic fixes.
  634. * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
  635. * describe magic file handling
  636. (Bryan Henderson) <bryanh@giraffe-data.com>
  637. 2003-09-12 15:09 Christos Zoulas <christos@astron.com>
  638. * update magic files.
  639. * remove largefile support from file.h; it breaks things on most OS's
  640. 2003-08-10 10:25 Christos Zoulas <christos@astron.com>
  641. * fix unmapping'ing of mmaped files.
  642. 2003-07-10 12:03 Christos Zoulas <christos@astron.com>
  643. * don't exit with -1 on error; always exit 1 (Marty Leisner)
  644. * restore utimes code.
  645. 2003-06-10 17:03 Christos Zoulas <christos@astron.com>
  646. * make sure we don't access uninitialized memory.
  647. * pass lint
  648. * #ifdef __cplusplus in magic.h
  649. 2003-05-25 19:23 Christos Zoulas <christos@astron.com>
  650. * rename cvs magic file to revision to deal with
  651. case insensitive filesystems.
  652. 2003-05-23 17:03 Christos Zoulas <christos@astron.com>
  653. * documentation fixes from Michael Piefel <piefel@debian.org>
  654. * magic fixes (various)
  655. * revert basename magic in .mgc name determination
  656. * buffer protection in uncompress,
  657. signness issues,
  658. close files
  659. Maciej W. Rozycki <macro@ds2.pg.gda.pl
  660. 2003-04-21 20:12 Christos Zoulas <christos@astron.com>
  661. * fix zsh magic
  662. 2003-04-04 16:59 Christos Zoulas <christos@astron.com>
  663. * fix operand sort order in string.
  664. 2003-04-02 17:30 Christos Zoulas <christos@astron.com>
  665. * cleanup namespace in magic.h
  666. 2003-04-02 13:50 Christos Zoulas <christos@astron.com>
  667. * Magic additions (Alex Ott)
  668. * Fix bug that broke VPATH compilation (Peter Breitenlohner)
  669. 2003-03-28 16:03 Christos Zoulas <christos@astron.com>
  670. * remove packed attribute from magic struct.
  671. * make the magic struct properly aligned.
  672. * bump version number of compiled files to 2.
  673. 2003-03-27 13:10 Christos Zoulas <christos@astron.com>
  674. * separate tar detection and run it before softmagic.
  675. * fix reversed symlink test.
  676. * fix version printing.
  677. * make separator a string instead of a char.
  678. * update manual page and sort options.
  679. 2003-03-26 11:00 Christos Zoulas <christos@astron.com>
  680. * Pass lint
  681. * make NULL in magic_file mean stdin
  682. * Fix "-" argument to file to pass NULL to magic_file
  683. * avoid pointer casts by using memcpy
  684. * rename magic_buf -> magic_buffer
  685. * keep only the first error
  686. * manual page: new sentence, new line
  687. * fix typo in api function (magic_buf -> magic_buffer)