ChangeLog 50 KB

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