ChangeLog 35 KB

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