ChangeLog 31 KB

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