ChangeLog 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. 2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
  2. * src/readelf.c (donote):
  3. ELF core file command name/line bug fixes and enhancements:
  4. Try larger offsets first to avoid false matches
  5. from earlier data that happen to look like strings;
  6. this primarily affected SunOS 5.x 32-bit Intel core files.
  7. Add support for command line (instead of just short name)
  8. for SunOS 5.x.
  9. Add information about NT_PSINFO for SunOS 5.x.
  10. Only trim whitespace from end of command line.
  11. 2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
  12. * Change strength of ! from MULT to 0, as it matches almost
  13. anything (Reuben Thomas)
  14. * Debian fixes (Reuben Thomas)
  15. 2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
  16. * Clarify UTF-8 BOM message (Reuben Thomas)
  17. * Add HTML comment to token list in names.h
  18. 2007-02-04 15:50 Christos Zoulas <christos@astron.com>
  19. * Debian fixes (Reuben Thomas)
  20. 2007-02-04 11:31 Christos Zoulas <christos@astron.com>
  21. * !:mime annotations in magic files (Reuben Thomas)
  22. 2007-01-29 15:35 Christos Zoulas <christos@astron.com>
  23. * zero out utime/utimes structs (Gavin Atkinson)
  24. 2007-01-26 13:45 Christos Zoulas <christos@astron.com>
  25. * reduce writable data from Diego "Flameeyes" Petten
  26. 2007-12-28 15:06 Christos Zoulas <christos@astron.com>
  27. * strtof detection
  28. * remove bogus regex magic that could cause a DoS
  29. * better mismatch version message
  30. 2007-12-27 11:35 Christos Zoulas <christos@astron.com>
  31. * bring back some fixes from OpenBSD
  32. * treat ELF dynamic objects as executables
  33. * fix gcc warnings
  34. 2007-12-01 19:55 Christos Zoulas <christos@astron.com>
  35. * make sure we have zlib.h and libz to compile the builtin
  36. decompress code
  37. 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
  38. * float and double magic support (Behan Webster)
  39. 2007-10-28 20:48 Christos Zoulas <christos@astron.com>
  40. * Convert fortran to a soft test (Reuben Thomas)
  41. 2007-10-23 5:25 Christos Zoulas <christos@astron.com>
  42. * Add --with-filename, and --no-filename (Reuben Thomas)
  43. 2007-10-23 3:59 Christos Zoulas <christos@astron.com>
  44. * Rest of the mime split (Reuben Thomas)
  45. * Make usage message generated from the flags so that
  46. they stay consistent (Reuben Thomas)
  47. 2007-10-20 3:06 Christos Zoulas <christos@astron.com>
  48. * typo in comment, missing ifdef QUICK, remove unneeded code
  49. (Charles Longeau)
  50. 2007-10-17 3:33 Christos Zoulas <christos@astron.com>
  51. * Fix problem printing -\012 in some entries
  52. * Separate magic type and encoding flags (Reuben Thomas)
  53. 2007-10-09 3:55 Christos Zoulas <christos@astron.com>
  54. * configure fix for int64 and strndup (Reuben Thomas)
  55. 2007-09-26 4:45 Christos Zoulas <christos@astron.com>
  56. * Add magic_descriptor() function.
  57. * Fix regression in elf reading code where the core name was
  58. not being printed.
  59. * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
  60. 2007-08-19 6:30 Christos Zoulas <christos@astron.com>
  61. * Make mime format consistent so that it can
  62. be easily parsed:
  63. mimetype [charset=character-set] [encoding=encoding-mime-type]
  64. Remove spurious extra text from some MIME type printouts
  65. (mostly in is_tar).
  66. Fix one case where -i produced nothing at all (for a 1-byte file,
  67. which is now classed as application/octet-stream).
  68. Remove 7/8bit classifications, since they were arbitrary
  69. and not based on the file data.
  70. This work was done by Reuben Thomas
  71. 2007-05-24 10:00 Christos Zoulas <christos@astron.com>
  72. * Fix another integer overflow (Colin Percival)
  73. 2007-03-26 13:58 Christos Zoulas <christos@astron.com>
  74. * make sure that all of struct magic_set is initialized appropriately
  75. (Brett)
  76. 2007-03-25 17:44 Christos Zoulas <christos@astron.com>
  77. * reset left bytes in the buffer (Dmitry V. Levin)
  78. * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
  79. (Peter Avalos)
  80. 2007-03-15 10:51 Christos Zoulas <christos@astron.com>
  81. * fix fortran and nroff reversed tests (Dmitry V. Levin)
  82. * fix exclude option (Dmitry V. Levin)
  83. 2007-02-08 17:30 Christos Zoulas <christos@astron.com>
  84. * fix integer underflow in file_printf which can lead to
  85. to exploitable heap overflow (Jean-Sebastien Guay-Lero)
  86. 2007-02-05 11:35 Christos Zoulas <christos@astron.com>
  87. * make socket/pipe reading more robust
  88. 2007-01-25 16:01 Christos Zoulas <christos@astron.com>
  89. * Centralize all the tests in file_buffer.
  90. * Add exclude flag.
  91. 2007-01-18 05:29 Anon Ymous <do@not.spam.me>
  92. * Move the "type" detection code from parse() into its own table
  93. driven routine. This avoids maintaining multiple lists in
  94. file.h.
  95. * Add an optional conditional field (ust before the type field).
  96. This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
  97. likely to go away.
  98. 2007-01-16 23:24 Anon Ymous <do@not.spam.me>
  99. * Fix an initialization bug in check_mem().
  100. 2007-01-16 14:58 Anon Ymous <do@not.spam.me>
  101. * Add a "default" type to print a message if nothing previously
  102. matched at that level or since the last default at that
  103. level. This is useful for setting up switch-like statements.
  104. It can also be used to do if/else constructions without a
  105. redundant second test.
  106. * Fix the "x" special case test so that one can test for that
  107. string with "=x".
  108. * Allow "search" to search the entire buffer if the "/N"
  109. search count is missing.
  110. * Make "regex" work! It now starts its search at the
  111. specified offset and takes an (optional) "/N" line count to
  112. specify the search range; otherwise it searches to the end
  113. of the file. The match is now grabbed correctly for format
  114. strings and the offset set to the end of the match.
  115. * Add a "/s" flag to "regex" and "search" to set the offset to
  116. the start of the match. By default the offset is set to the
  117. end of the match, as it is with other tests. This is mostly
  118. useful for "regex".
  119. * Make "search", "string" and "pstring" use the same
  120. file_strncmp() routine so that they support the same flags;
  121. "bestring16" and "lestring16" call the same routine, but
  122. with flags = 0. Also add a "/C" flag (in analogy to "/c")
  123. to ignore the case on uppercase (lowercase) characters in
  124. the test string.
  125. * Strict adherence to C style string escapes. A warnings are
  126. printed when compiling. Note: previously "\a" was
  127. incorrectly translated to 'a' instead of an <alert> (i.e.,
  128. BELL, typically 0x07).
  129. * Make this compile with "-Wall -Wextra" and all the warning
  130. flags used with WARNS=4 in the NetBSD source. Also make it
  131. pass lint.
  132. * Many "cleanups" and hopefully not too many new bugs!
  133. 2007-01-16 14:56 Anon Ymous <do@not.spam.me>
  134. * make several more files compile with gcc warnings
  135. on and also make them pass lint.
  136. 2007-01-16 14:54 Anon Ymous <do@not.spam.me>
  137. * fix a puts()/putc() usage goof in file.c
  138. * make file.c compile with gcc warnings and pass lint
  139. 2006-12-11 16:49 Christos Zoulas <christos@astron.com>
  140. * fix byteswapping issue
  141. * report the number of bytes we tried to
  142. allocate when allocation fails
  143. * add a few missed cases in the strength routine
  144. 2006-12-08 16:32 Christos Zoulas <christos@astron.com>
  145. * store and print the line number of the magic
  146. entry for debugging.
  147. * if the magic entry did not print anything,
  148. don't treat it as a match
  149. * change the magic strength algorithm to take
  150. into account the relationship op.
  151. * fix a bug in search where we could accidentally
  152. return a match.
  153. * propagate the error return from match to
  154. file_softmagic.
  155. 2006-11-25 13:35 Christos Zoulas <christos@astron.com>
  156. * Don't store the current offset in the magic
  157. struct, because it needs to be restored and
  158. it was not done properly all the time. Bug
  159. found by: Arkadiusz Miskiewicz
  160. * Fix problem in the '\0' separator; and don't
  161. print it as an additional separator; print
  162. it as the only separator.
  163. 2006-11-17 10:51 Christos Zoulas <christos@astron.com>
  164. * Added a -0 option to print a '\0' separator
  165. Etienne Buira <etienne.buira@free.fr>
  166. 2006-10-31 15:14 Christos Zoulas <christos@astron.com>
  167. * Check offset before copying (Mike Frysinger)
  168. * merge duplicated code
  169. * add quad date support
  170. * make sure that we nul terminate desc (Ryoji Kanai)
  171. * don't process elf notes multiple times
  172. * allow -z to report empty compressed files
  173. * use calloc to initialize the ascii buffers (Jos van den Oever)
  174. 2006-06-08 11:11 Christos Zoulas <christos@astron.com>
  175. * QNX fixes (Mike Gorchak)
  176. * Add quad support.
  177. * FIFO checks (Dr. Werner Fink)
  178. * Linux ELF fixes (Dr. Werner Fink)
  179. * Magic format checks (Dr. Werner Fink)
  180. * Magic format function improvent (Karl Chen)
  181. 2006-05-03 11:11 Christos Zoulas <christos@astron.com>
  182. * Pick up some elf changes and some constant fixes from SUSE
  183. * Identify gnu tar vs. posix tar
  184. * When keep going, don't print spurious newlines (Radek Vokál)
  185. 2006-04-01 12:02 Christos Zoulas <christos@astron.com>
  186. * Use calloc instead of malloc (Mike Frysinger)
  187. * Fix configure script to detect wctypes.h (Mike Frysinger)
  188. 2006-03-02 16:06 Christos Zoulas <christos@astron.com>
  189. * Print empty if the file is (Mike Frysinger)
  190. * Don't try to read past the end of the buffer (Mike Frysinger)
  191. * Sort magic entries by strength [experimental]
  192. 2005-11-29 13:26 Christos Zoulas <christos@astron.com>
  193. * Use iswprint() to convert the output string.
  194. (Bastien Nocera)
  195. 2005-10-31 8:54 Christos Zoulas <christos@astron.com>
  196. * Fix regression where the core info was not completely processed
  197. (Radek Vokál)
  198. 2005-10-20 11:15 Christos Zoulas <christos@astron.com>
  199. * Middle Endian magic (Diomidis Spinellis)
  200. 2005-10-17 11:15 Christos Zoulas <christos@astron.com>
  201. * Open with O_BINARY for CYGWIN (Corinna Vinschen)
  202. * Don't close stdin (Arkadiusz Miskiewicz)
  203. * Look for note sections in non executables.
  204. 2005-09-20 13:33 Christos Zoulas <christos@astron.com>
  205. * Don't print SVR4 Style in core files multiple times
  206. (Radek Vokál)
  207. 2005-08-27 04:09 Christos Zoulas <christos@astron.com>
  208. * Cygwin changes Corinna Vinschen
  209. 2005-08-18 09:53 Christos Zoulas <christos@astron.com>
  210. * Remove erroreous mention of /etc/magic in the file man page
  211. This is gentoo bug 101639. (Mike Frysinger)
  212. * Cross-compile support and detection (Mike Frysinger)
  213. 2005-08-12 10:17 Christos Zoulas <christos@astron.com>
  214. * Add -h flag and dereference symlinks if POSIXLY_CORRECT
  215. is set.
  216. 2005-07-29 13:57 Christos Zoulas <christos@astron.com>
  217. * Avoid search and regex buffer overflows (Kelledin)
  218. 2005-07-12 11:48 Christos Zoulas <christos@astron.com>
  219. * Provide stub implementations for {v,}nsprintf() for older
  220. OS's that don't have them.
  221. * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
  222. to AC_TYPE_MBSTATE_T.
  223. 2005-06-25 11:48 Christos Zoulas <christos@astron.com>
  224. * Dynamically allocate the string buffers and make the
  225. default read size 256K.
  226. 2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
  227. * Dragonfly ELF note support
  228. 2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
  229. * Avoid NULL pointer dereference in time conversion.
  230. 2005-03-06 00:00 Joerg Walter <jwalt@mail.garni.ch>
  231. * Add indirect magic offset support, and search mode.
  232. 2005-01-12 00:00 Stepan Kasal <kasal@ucw.cz>
  233. * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
  234. If a CRLF text file happens to have CR at offset HOWMANY - 1
  235. (currently 0xffff), it should not be counted as CR line
  236. terminator.
  237. If a line has length exactly MAXLINELEN, it should not yet be
  238. treated as a ``very long line'', as MAXLINELEN is ``longest sane
  239. line length''.
  240. With CRLF, the line length was not computed correctly, and even
  241. lines of length MAXLINELEN - 1 were treated as ``very long''.
  242. 2004-12-07 14:15 Christos Zoulas <christos@astron.com>
  243. * bzip2 needs a lot of input buffer space on some files
  244. before it can begin uncompressing. This makes file -z
  245. fail on some bz2 files. Fix it by giving it a copy of
  246. the file descriptor to read as much as it wants if we
  247. have access to it. <christos@astron.com>
  248. 2004-11-24 12:39 Christos Zoulas <christos@astron.com>
  249. * Stack smash fix, and ELF more conservative reading.
  250. Jakub Bogusz <qboosh@pld-linux.org>
  251. 2004-11-20 18:50 Christos Zoulas <christos@astron.com>
  252. * New FreeBSD version parsing code:
  253. Jon Noack <noackjr@alumni.rice.edu>
  254. * Hackish support for ucs16 strings <christos@astron.com>
  255. 2004-11-13 03:07 Christos Zoulas <christos@astron.com>
  256. * print the file name and line number in syntax errors.
  257. 2004 10-12 10:50 Christos Zoulas <christos@astron.com>
  258. * Fix stack overwriting on 0 length strings: Tim Waugh
  259. <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
  260. 2004-09-27 11:30 Christos Zoulas <christos@astron.com>
  261. * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
  262. * Fix small memory leaks; caught by: Tamas Sarlos
  263. <stamas@csillag.ilab.sztaki.hu>
  264. 2004-07-24 16:33 Christos Zoulas <christos@astron.com>
  265. * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
  266. * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
  267. * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
  268. * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
  269. 2004-04-12 10:55 Christos Zoulas <christos@astron.com>
  270. * make sure that magic formats match magic types during compilation
  271. * fix broken sgi magic file
  272. 2004-04-06 20:36 Christos Zoulas <christos@astron.com>
  273. * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
  274. * magic fixes
  275. 2004-03-22 15:25 Christos Zoulas <christos@astron.com>
  276. * Lots of mime fixes
  277. (Joerg Ostertag) <ostertag@rechengilde.de>
  278. * FreeBSD ELF version handling
  279. (Edwin Groothuis) <edwin@mavetju.org>
  280. * correct cleanup in all cases; don't just close the file.
  281. (Christos Zoulas) <christos@astron.com>
  282. * add gettext message catalogue support
  283. (Michael Piefel) <piefel@debian.org>
  284. * better printout for unreadable files
  285. (Michael Piefel) <piefel@debian.org>
  286. * compensate for missing MAXPATHLEN
  287. (Michael Piefel) <piefel@debian.org>
  288. * add wide character string length computation
  289. (Michael Piefel) <piefel@debian.org>
  290. * Avoid infinite loops caused by bad elf alignments
  291. or name and description note sizes. Reported by
  292. (Mikael Magnusson) <mmikael@comhem.se>
  293. 2004-03-09 13:55 Christos Zoulas <christos@astron.com>
  294. * Fix possible memory leak on error and add missing regfree
  295. (Dmitry V. Levin) <ldv@altlinux.org>
  296. 2003-12-23 12:12 Christos Zoulas <christos@astron.com>
  297. * fix -k flag (Maciej W. Rozycki)
  298. 2003-11-18 14:10 Christos Zoulas <christos@astron.com>
  299. * Try to give us much info as possible on corrupt elf files.
  300. (Willy Tarreau) <willy@w.ods.org>
  301. * Updated python bindings (Brett Funderburg)
  302. <brettf@deepfile.com>
  303. 2003-11-11 15:03 Christos Zoulas <christos@astron.com>
  304. * Include file.h first, because it includes config.h
  305. breaks largefile test macros otherwise.
  306. (Paul Eggert <eggert@CS.UCLA.EDU> via
  307. Lars Hecking <lhecking@nmrc.ie>)
  308. 2003-10-14 21:39 Christos Zoulas <christos@astron.com>
  309. * Python bindings (Brett Funderburg) <brettf@deepfile.com>
  310. * Don't lookup past the end of the buffer
  311. (Chad Hanson) <chanson@tcs-sec.com>
  312. * Add MAGIC_ERROR and api on magic_errno()
  313. 2003-10-08 12:40 Christos Zoulas <christos@astron.com>
  314. * handle error conditions from compile as fatal
  315. (Antti Kantee) <pooka@netbsd.org>
  316. * handle magic filename parsing sanely
  317. * more magic fixes.
  318. * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
  319. * describe magic file handling
  320. (Bryan Henderson) <bryanh@giraffe-data.com>
  321. 2003-09-12 15:09 Christos Zoulas <christos@astron.com>
  322. * update magic files.
  323. * remove largefile support from file.h; it breaks things on most OS's
  324. 2003-08-10 10:25 Christos Zoulas <christos@astron.com>
  325. * fix unmapping'ing of mmaped files.
  326. 2003-07-10 12:03 Christos Zoulas <christos@astron.com>
  327. * don't exit with -1 on error; always exit 1 (Marty Leisner)
  328. * restore utimes code.
  329. 2003-06-10 17:03 Christos Zoulas <christos@astron.com>
  330. * make sure we don't access uninitialized memory.
  331. * pass lint
  332. * #ifdef __cplusplus in magic.h
  333. 2003-05-25 19:23 Christos Zoulas <christos@astron.com>
  334. * rename cvs magic file to revision to deal with
  335. case insensitive filesystems.
  336. 2003-05-23 17:03 Christos Zoulas <christos@astron.com>
  337. * documentation fixes from Michael Piefel <piefel@debian.org>
  338. * magic fixes (various)
  339. * revert basename magic in .mgc name determination
  340. * buffer protection in uncompress,
  341. signness issues,
  342. close files
  343. Maciej W. Rozycki <macro@ds2.pg.gda.pl
  344. 2003-04-21 20:12 Christos Zoulas <christos@astron.com>
  345. * fix zsh magic
  346. 2003-04-04 16:59 Christos Zoulas <christos@astron.com>
  347. * fix operand sort order in string.
  348. 2003-04-02 17:30 Christos Zoulas <christos@astron.com>
  349. * cleanup namespace in magic.h
  350. 2003-04-02 13:50 Christos Zoulas <christos@astron.com>
  351. * Magic additions (Alex Ott)
  352. * Fix bug that broke VPATH compilation (Peter Breitenlohner)
  353. 2003-03-28 16:03 Christos Zoulas <christos@astron.com>
  354. * remove packed attribute from magic struct.
  355. * make the magic struct properly aligned.
  356. * bump version number of compiled files to 2.
  357. 2003-03-27 13:10 Christos Zoulas <christos@astron.com>
  358. * separate tar detection and run it before softmagic.
  359. * fix reversed symlink test.
  360. * fix version printing.
  361. * make separator a string instead of a char.
  362. * update manual page and sort options.
  363. 2003-03-26 11:00 Christos Zoulas <christos@astron.com>
  364. * Pass lint
  365. * make NULL in magic_file mean stdin
  366. * Fix "-" argument to file to pass NULL to magic_file
  367. * avoid pointer casts by using memcpy
  368. * rename magic_buf -> magic_buffer
  369. * keep only the first error
  370. * manual page: new sentence, new line
  371. * fix typo in api function (magic_buf -> magic_buffer)