ChangeLog 61 KB

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