ChangeLog 35 KB

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