ChangeLog 34 KB

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