ChangeLog 55 KB

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