ChangeLog 47 KB

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