ChangeLog 31 KB

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