ChangeLog 50 KB

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