ChangeLog 33 KB

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