ChangeLog 52 KB

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