ChangeLog 50 KB

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