Changes 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553
  1. __ __ _
  2. ___\ \/ /_ __ __ _| |_
  3. / _ \\ /| '_ \ / _` | __|
  4. | __// \| |_) | (_| | |_
  5. \___/_/\_\ .__/ \__,_|\__|
  6. |_| XML parser
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. !! <blink>Expat is UNDERSTAFFED and WITHOUT FUNDING.</blink> !!
  9. !! ~~~~~~~~~~~~ !!
  10. !! The following topics need *additional skilled C developers* to progress !!
  11. !! in a timely manner or at all (loosely ordered by descending priority): !!
  12. !! !!
  13. !! - <blink>fixing a complex non-public security issue</blink>, !!
  14. !! - teaming up on researching and fixing future security reports and !!
  15. !! ClusterFuzz findings with few-days-max response times in communication !!
  16. !! in order to (1) have a sound fix ready before the end of a 90 days !!
  17. !! grace period and (2) in a sustainable manner, !!
  18. !! - implementing and auto-testing XML 1.0r5 support !!
  19. !! (needs discussion before pull requests), !!
  20. !! - smart ideas on fixing the Autotools CMake files generation issue !!
  21. !! without breaking CI (needs discussion before pull requests), !!
  22. !! - the Windows binaries topic (needs requirements engineering first), !!
  23. !! - pushing migration from `int` to `size_t` further !!
  24. !! including edge-cases test coverage (needs discussion before anything). !!
  25. !! !!
  26. !! For details, please reach out via e-mail to sebastian@pipping.org so we !!
  27. !! can schedule a voice call on the topic, in English or German. !!
  28. !! !!
  29. !! THANK YOU! Sebastian Pipping -- Berlin, 2024-03-09 !!
  30. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  31. Release 2.6.4 Wed November 6 2024
  32. Security fixes:
  33. #915 CVE-2024-50602 -- Fix crash within function XML_ResumeParser
  34. from a NULL pointer dereference by disallowing function
  35. XML_StopParser to (stop or) suspend an unstarted parser.
  36. A new error code XML_ERROR_NOT_STARTED was introduced to
  37. properly communicate this situation. // CWE-476 CWE-754
  38. Other changes:
  39. #903 CMake: Add alias target "expat::expat"
  40. #905 docs: Document use via CMake >=3.18 with FetchContent
  41. and SOURCE_SUBDIR and its consequences
  42. #902 tests: Reduce use of global parser instance
  43. #904 tests: Resolve duplicate handler
  44. #317 #918 tests: Improve tests on doctype closing (ex CVE-2019-15903)
  45. #914 Fix signedness of format strings
  46. #919 #920 Version info bumped from 10:3:9 (libexpat*.so.1.9.3)
  47. to 11:0:10 (libexpat*.so.1.10.0); see https://verbump.de/
  48. for what these numbers do
  49. Infrastructure:
  50. #907 CI: Upgrade Clang from 18 to 19
  51. #913 CI: Drop macos-12 and add macos-15
  52. #910 CI: Adapt to breaking changes in GitHub Actions
  53. #898 Add missing entries to .gitignore
  54. Special thanks to:
  55. Hanno Böck
  56. José Eduardo Gutiérrez Conejo
  57. José Ricardo Cardona Quesada
  58. Release 2.6.3 Wed September 4 2024
  59. Security fixes:
  60. #887 #890 CVE-2024-45490 -- Calling function XML_ParseBuffer with
  61. len < 0 without noticing and then calling XML_GetBuffer
  62. will have XML_ParseBuffer fail to recognize the problem
  63. and XML_GetBuffer corrupt memory.
  64. With the fix, XML_ParseBuffer now complains with error
  65. XML_ERROR_INVALID_ARGUMENT just like sibling XML_Parse
  66. has been doing since Expat 2.2.1, and now documented.
  67. Impact is denial of service to potentially artitrary code
  68. execution.
  69. #888 #891 CVE-2024-45491 -- Internal function dtdCopy can have an
  70. integer overflow for nDefaultAtts on 32-bit platforms
  71. (where UINT_MAX equals SIZE_MAX).
  72. Impact is denial of service to potentially artitrary code
  73. execution.
  74. #889 #892 CVE-2024-45492 -- Internal function nextScaffoldPart can
  75. have an integer overflow for m_groupSize on 32-bit
  76. platforms (where UINT_MAX equals SIZE_MAX).
  77. Impact is denial of service to potentially artitrary code
  78. execution.
  79. Other changes:
  80. #851 #879 Autotools: Sync CMake templates with CMake 3.28
  81. #853 Autotools: Always provide path to find(1) for portability
  82. #861 Autotools: Ensure that the m4 directory always exists.
  83. #870 Autotools: Simplify handling of SIZEOF_VOID_P
  84. #869 Autotools: Support non-GNU sed
  85. #856 Autotools|CMake: Fix main() to main(void)
  86. #865 Autotools|CMake: Fix compile tests for HAVE_SYSCALL_GETRANDOM
  87. #863 Autotools|CMake: Stop requiring dos2unix
  88. #854 #855 CMake: Fix check for symbols size_t and off_t
  89. #864 docs|tests: Convert README to Markdown and update
  90. #741 Windows: Drop support for Visual Studio <=15.0/2017
  91. #886 Drop needless XML_DTD guards around is_param access
  92. #885 Fix typo in a code comment
  93. #894 #896 Version info bumped from 10:2:9 (libexpat*.so.1.9.2)
  94. to 10:3:9 (libexpat*.so.1.9.3); see https://verbump.de/
  95. for what these numbers do
  96. Infrastructure:
  97. #880 Readme: Promote the call for help
  98. #868 CI: Fix various issues
  99. #849 CI: Allow triggering GitHub Actions workflows manually
  100. #851 #872 ..
  101. #873 #879 CI: Adapt to breaking changes in GitHub Actions
  102. Special thanks to:
  103. Alexander Bluhm
  104. Berkay Eren Ürün
  105. Dag-Erling Smørgrav
  106. Ferenc Géczi
  107. TaiYou
  108. Release 2.6.2 Wed March 13 2024
  109. Security fixes:
  110. #839 #842 CVE-2024-28757 -- Prevent billion laughs attacks with
  111. isolated use of external parsers. Please see the commit
  112. message of commit 1d50b80cf31de87750103656f6eb693746854aa8
  113. for details.
  114. Bug fixes:
  115. #839 #841 Reject direct parameter entity recursion
  116. and avoid the related undefined behavior
  117. Other changes:
  118. #847 Autotools: Fix build for DOCBOOK_TO_MAN containing spaces
  119. #837 Add missing #821 and #824 to 2.6.1 change log
  120. #838 #843 Version info bumped from 10:1:9 (libexpat*.so.1.9.1)
  121. to 10:2:9 (libexpat*.so.1.9.2); see https://verbump.de/
  122. for what these numbers do
  123. Special thanks to:
  124. Philippe Antoine
  125. Tomas Korbar
  126. and
  127. Clang UndefinedBehaviorSanitizer
  128. OSS-Fuzz / ClusterFuzz
  129. Release 2.6.1 Thu February 29 2024
  130. Bug fixes:
  131. #817 Make tests independent of CPU speed, and thus more robust
  132. #828 #836 Expose billion laughs API with XML_DTD defined and
  133. XML_GE undefined, regression from 2.6.0
  134. Other changes:
  135. #829 Hide test-only code behind new internal macro
  136. #833 Autotools: Reject expat_config.h.in defining SIZEOF_VOID_P
  137. #821 #824 Autotools: Fix "make clean" for case:
  138. ./configure --without-docbook && make clean all
  139. #819 Address compiler warnings
  140. #832 #834 Version info bumped from 10:0:9 (libexpat*.so.1.9.0)
  141. to 10:1:9 (libexpat*.so.1.9.1); see https://verbump.de/
  142. for what these numbers do
  143. Infrastructure:
  144. #818 CI: Adapt to breaking changes in clang-format
  145. Special thanks to:
  146. David Hall
  147. Snild Dolkow
  148. Release 2.6.0 Tue February 6 2024
  149. Security fixes:
  150. #789 #814 CVE-2023-52425 -- Fix quadratic runtime issues with big tokens
  151. that can cause denial of service, in partial where
  152. dealing with compressed XML input. Applications
  153. that parsed a document in one go -- a single call to
  154. functions XML_Parse or XML_ParseBuffer -- were not affected.
  155. The smaller the chunks/buffers you use for parsing
  156. previously, the bigger the problem prior to the fix.
  157. Backporters should be careful to no omit parts of
  158. pull request #789 and to include earlier pull request #771,
  159. in order to not break the fix.
  160. #777 CVE-2023-52426 -- Fix billion laughs attacks for users
  161. compiling *without* XML_DTD defined (which is not common).
  162. Users with XML_DTD defined have been protected since
  163. Expat >=2.4.0 (and that was CVE-2013-0340 back then).
  164. Bug fixes:
  165. #753 Fix parse-size-dependent "invalid token" error for
  166. external entities that start with a byte order mark
  167. #780 Fix NULL pointer dereference in setContext via
  168. XML_ExternalEntityParserCreate for compilation with
  169. XML_DTD undefined
  170. #812 #813 Protect against closing entities out of order
  171. Other changes:
  172. #723 Improve support for arc4random/arc4random_buf
  173. #771 #788 Improve buffer growth in XML_GetBuffer and XML_Parse
  174. #761 #770 xmlwf: Support --help and --version
  175. #759 #770 xmlwf: Support custom buffer size for XML_GetBuffer and read
  176. #744 xmlwf: Improve language and URL clickability in help output
  177. #673 examples: Add new example "element_declarations.c"
  178. #764 Be stricter about macro XML_CONTEXT_BYTES at build time
  179. #765 Make inclusion to expat_config.h consistent
  180. #726 #727 Autotools: configure.ac: Support --disable-maintainer-mode
  181. #678 #705 ..
  182. #706 #733 #792 Autotools: Sync CMake templates with CMake 3.26
  183. #795 Autotools: Make installation of shipped man page doc/xmlwf.1
  184. independent of docbook2man availability
  185. #815 Autotools|CMake: Add missing -DXML_STATIC to pkg-config file
  186. section "Cflags.private" in order to fix compilation
  187. against static libexpat using pkg-config on Windows
  188. #724 #751 Autotools|CMake: Require a C99 compiler
  189. (a de-facto requirement already since Expat 2.2.2 of 2017)
  190. #793 Autotools|CMake: Fix PACKAGE_BUGREPORT variable
  191. #750 #786 Autotools|CMake: Make test suite require a C++11 compiler
  192. #749 CMake: Require CMake >=3.5.0
  193. #672 CMake: Lowercase off_t and size_t to help a bug in Meson
  194. #746 CMake: Sort xmlwf sources alphabetically
  195. #785 CMake|Windows: Fix generation of DLL file version info
  196. #790 CMake: Build tests/benchmark/benchmark.c as well for
  197. a build with -DEXPAT_BUILD_TESTS=ON
  198. #745 #757 docs: Document the importance of isFinal + adjust tests
  199. accordingly
  200. #736 docs: Improve use of "NULL" and "null"
  201. #713 docs: Be specific about version of XML (XML 1.0r4)
  202. and version of C (C99); (XML 1.0r5 will need a sponsor.)
  203. #762 docs: reference.html: Promote function XML_ParseBuffer more
  204. #779 docs: reference.html: Add HTML anchors to XML_* macros
  205. #760 docs: reference.html: Upgrade to OK.css 1.2.0
  206. #763 #739 docs: Fix typos
  207. #696 docs|CI: Use HTTPS URLs instead of HTTP at various places
  208. #669 #670 ..
  209. #692 #703 ..
  210. #733 #772 Address compiler warnings
  211. #798 #800 Address clang-tidy warnings
  212. #775 #776 Version info bumped from 9:10:8 (libexpat*.so.1.8.10)
  213. to 10:0:9 (libexpat*.so.1.9.0); see https://verbump.de/
  214. for what these numbers do
  215. Infrastructure:
  216. #700 #701 docs: Document security policy in file SECURITY.md
  217. #766 docs: Improve parse buffer variables in-code documentation
  218. #674 #738 ..
  219. #740 #747 ..
  220. #748 #781 #782 Refactor coverage and conformance tests
  221. #714 #716 Refactor debug level variables to unsigned long
  222. #671 Improve handling of empty environment variable value
  223. in function getDebugLevel (without visible user effect)
  224. #755 #774 ..
  225. #758 #783 ..
  226. #784 #787 tests: Improve test coverage with regard to parse chunk size
  227. #660 #797 #801 Fuzzing: Improve fuzzing coverage
  228. #367 #799 Fuzzing|CI: Start running OSS-Fuzz fuzzing regression tests
  229. #698 #721 CI: Resolve some Travis CI leftovers
  230. #669 CI: Be robust towards absence of Git tags
  231. #693 #694 CI: Set permissions to "contents: read" for security
  232. #709 CI: Pin all GitHub Actions to specific commits for security
  233. #739 CI: Reject spelling errors using codespell
  234. #798 CI: Enforce clang-tidy clean code
  235. #773 #808 ..
  236. #809 #810 CI: Upgrade Clang from 15 to 18
  237. #796 CI: Start using Clang's Control Flow Integrity sanitizer
  238. #675 #720 #722 CI: Adapt to breaking changes in GitHub Actions Ubuntu images
  239. #689 CI: Adapt to breaking changes in Clang/LLVM Debian packaging
  240. #763 CI: Adapt to breaking changes in codespell
  241. #803 CI: Adapt to breaking changes in Cppcheck
  242. Special thanks to:
  243. Ivan Galkin
  244. Joyce Brum
  245. Philippe Antoine
  246. Rhodri James
  247. Snild Dolkow
  248. spookyahell
  249. Steven Garske
  250. and
  251. Clang AddressSanitizer
  252. Clang UndefinedBehaviorSanitizer
  253. codespell
  254. GCC Farm Project
  255. OSS-Fuzz
  256. Sony Mobile
  257. Release 2.5.0 Tue October 25 2022
  258. Security fixes:
  259. #616 #649 #650 CVE-2022-43680 -- Fix heap use-after-free after overeager
  260. destruction of a shared DTD in function
  261. XML_ExternalEntityParserCreate in out-of-memory situations.
  262. Expected impact is denial of service or potentially
  263. arbitrary code execution.
  264. Bug fixes:
  265. #612 #645 Fix corruption from undefined entities
  266. #613 #654 Fix case when parsing was suspended while processing nested
  267. entities
  268. #616 #652 #653 Stop leaking opening tag bindings after a closing tag
  269. mismatch error where a parser is reset through
  270. XML_ParserReset and then reused to parse
  271. #656 CMake: Fix generation of pkg-config file
  272. #658 MinGW|CMake: Fix static library name
  273. Other changes:
  274. #663 Protect header expat_config.h from multiple inclusion
  275. #666 examples: Make use of XML_GetBuffer and be more
  276. consistent across examples
  277. #648 Address compiler warnings
  278. #667 #668 Version info bumped from 9:9:8 to 9:10:8;
  279. see https://verbump.de/ for what these numbers do
  280. Special thanks to:
  281. Jann Horn
  282. Mark Brand
  283. Osyotr
  284. Rhodri James
  285. and
  286. Google Project Zero
  287. Release 2.4.9 Tue September 20 2022
  288. Security fixes:
  289. #629 #640 CVE-2022-40674 -- Heap use-after-free vulnerability in
  290. function doContent. Expected impact is denial of service
  291. or potentially arbitrary code execution.
  292. Bug fixes:
  293. #634 MinGW: Fix mis-compilation for -D__USE_MINGW_ANSI_STDIO=0
  294. #614 docs: Fix documentation on effect of switch XML_DTD on
  295. symbol visibility in doc/reference.html
  296. Other changes:
  297. #638 MinGW: Make fix-xmltest-log.sh drop more Wine bug output
  298. #596 #625 Autotools: Sync CMake templates with CMake 3.22
  299. #608 CMake: Migrate from use of CMAKE_*_POSTFIX to
  300. dedicated variables EXPAT_*_POSTFIX to stop affecting
  301. other projects
  302. #597 #599 Windows|CMake: Add missing -DXML_STATIC to test runners
  303. and fuzzers
  304. #512 #621 Windows|CMake: Render .def file from a template to fix
  305. linking with -DEXPAT_DTD=OFF and/or -DEXPAT_ATTR_INFO=ON
  306. #611 #621 MinGW|CMake: Apply MSVC .def file when linking
  307. #622 #624 MinGW|CMake: Sync library name with GNU Autotools,
  308. i.e. produce libexpat-1.dll rather than libexpat.dll
  309. by default. Filename libexpat.dll.a is unaffected.
  310. #632 MinGW|CMake: Set missing variable CMAKE_RC_COMPILER in
  311. toolchain file "cmake/mingw-toolchain.cmake" to avoid
  312. error "windres: Command not found" on e.g. Ubuntu 20.04
  313. #597 #627 CMake: Unify inconsistent use of set() and option() in
  314. context of public build time options to take need for
  315. set(.. FORCE) in projects using Expat by means of
  316. add_subdirectory(..) off Expat's users' shoulders
  317. #626 #641 Stop exporting API symbols when building a static library
  318. #644 Resolve use of deprecated "fgrep" by "grep -F"
  319. #620 CMake: Make documentation on variables a bit more consistent
  320. #636 CMake: Drop leading whitespace from a #cmakedefine line in
  321. file expat_config.h.cmake
  322. #594 xmlwf: Fix harmless variable mix-up in function nsattcmp
  323. #592 #593 #610 Address Cppcheck warnings
  324. #643 Address Clang 15 compiler warnings
  325. #642 #644 Version info bumped from 9:8:8 to 9:9:8;
  326. see https://verbump.de/ for what these numbers do
  327. Infrastructure:
  328. #597 #598 CI: Windows: Start covering MSVC 2022
  329. #619 CI: macOS: Migrate off deprecated macOS 10.15
  330. #632 CI: Linux: Make migration off deprecated Ubuntu 18.04 work
  331. #643 CI: Upgrade Clang from 14 to 15
  332. #637 apply-clang-format.sh: Add support for BSD find
  333. #633 coverage.sh: Exclude MinGW headers
  334. #635 coverage.sh: Fix name collision for -funsigned-char
  335. Special thanks to:
  336. David Faure
  337. Felix Wilhelm
  338. Frank Bergmann
  339. Rhodri James
  340. Rosen Penev
  341. Thijs Schreijer
  342. Vincent Torri
  343. and
  344. Google Project Zero
  345. Release 2.4.8 Mon March 28 2022
  346. Other changes:
  347. #587 pkg-config: Move "-lm" to section "Libs.private"
  348. #587 CMake|MSVC: Fix pkg-config section "Libs"
  349. #55 #582 CMake|macOS: Start using linker arguments
  350. "-compatibility_version <version>" and
  351. "-current_version <version>" in a way compatible with
  352. GNU Libtool
  353. #590 #591 Version info bumped from 9:7:8 to 9:8:8;
  354. see https://verbump.de/ for what these numbers do
  355. Infrastructure:
  356. #589 CI: Upgrade Clang from 13 to 14
  357. Special thanks to:
  358. evpobr
  359. Kai Pastor
  360. Sam James
  361. Release 2.4.7 Fri March 4 2022
  362. Bug fixes:
  363. #572 #577 Relax fix to CVE-2022-25236 (introduced with release 2.4.5)
  364. with regard to all valid URI characters (RFC 3986),
  365. i.e. the following set (excluding whitespace):
  366. ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
  367. 0123456789 % -._~ :/?#[]@ !$&'()*+,;=
  368. Other changes:
  369. #555 #570 #581 CMake|Windows: Store Expat version in the DLL
  370. #577 Document consequences of namespace separator choices not just
  371. in doc/reference.html but also in header <expat.h>
  372. #577 Document Expat's lack of validation of namespace URIs against
  373. RFC 3986, and that the XML 1.0r4 specification doesn't
  374. require Expat to validate namespace URIs, and that Expat
  375. may do more in that regard in future releases.
  376. If you find need for strict RFC 3986 URI validation on
  377. application level today, https://uriparser.github.io/ may
  378. be of interest.
  379. #579 Fix documentation of XML_EndDoctypeDeclHandler in <expat.h>
  380. #575 Document that a call to XML_FreeContentModel can be done at
  381. a later time from outside the element declaration handler
  382. #574 Make hardcoded namespace URIs easier to find in code
  383. #573 Update documentation on use of XML_POOR_ENTOPY on Solaris
  384. #569 #571 tests: Resolve use of macros NAN and INFINITY for GNU G++
  385. 4.8.2 on Solaris.
  386. #578 #580 Version info bumped from 9:6:8 to 9:7:8;
  387. see https://verbump.de/ for what these numbers do
  388. Special thanks to:
  389. Jeffrey Walton
  390. Johnny Jazeix
  391. Thijs Schreijer
  392. Release 2.4.6 Sun February 20 2022
  393. Bug fixes:
  394. #566 Fix a regression introduced by the fix for CVE-2022-25313
  395. in release 2.4.5 that affects applications that (1)
  396. call function XML_SetElementDeclHandler and (2) are
  397. parsing XML that contains nested element declarations
  398. (e.g. "<!ELEMENT junk ((bar|foo|xyz+), zebra*)>").
  399. Other changes:
  400. #567 #568 Version info bumped from 9:5:8 to 9:6:8;
  401. see https://verbump.de/ for what these numbers do
  402. Special thanks to:
  403. Matt Sergeant
  404. Samanta Navarro
  405. Sergei Trofimovich
  406. and
  407. NixOS
  408. Perl XML::Parser
  409. Release 2.4.5 Fri February 18 2022
  410. Security fixes:
  411. #562 CVE-2022-25235 -- Passing malformed 2- and 3-byte UTF-8
  412. sequences (e.g. from start tag names) to the XML
  413. processing application on top of Expat can cause
  414. arbitrary damage (e.g. code execution) depending
  415. on how invalid UTF-8 is handled inside the XML
  416. processor; validation was not their job but Expat's.
  417. Exploits with code execution are known to exist.
  418. #561 CVE-2022-25236 -- Passing (one or more) namespace separator
  419. characters in "xmlns[:prefix]" attribute values
  420. made Expat send malformed tag names to the XML
  421. processor on top of Expat which can cause
  422. arbitrary damage (e.g. code execution) depending
  423. on such unexpectable cases are handled inside the XML
  424. processor; validation was not their job but Expat's.
  425. Exploits with code execution are known to exist.
  426. #558 CVE-2022-25313 -- Fix stack exhaustion in doctype parsing
  427. that could be triggered by e.g. a 2 megabytes
  428. file with a large number of opening braces.
  429. Expected impact is denial of service or potentially
  430. arbitrary code execution.
  431. #560 CVE-2022-25314 -- Fix integer overflow in function copyString;
  432. only affects the encoding name parameter at parser creation
  433. time which is often hardcoded (rather than user input),
  434. takes a value in the gigabytes to trigger, and a 64-bit
  435. machine. Expected impact is denial of service.
  436. #559 CVE-2022-25315 -- Fix integer overflow in function storeRawNames;
  437. needs input in the gigabytes and a 64-bit machine.
  438. Expected impact is denial of service or potentially
  439. arbitrary code execution.
  440. Other changes:
  441. #557 #564 Version info bumped from 9:4:8 to 9:5:8;
  442. see https://verbump.de/ for what these numbers do
  443. Special thanks to:
  444. Ivan Fratric
  445. Samanta Navarro
  446. and
  447. Google Project Zero
  448. JetBrains
  449. Release 2.4.4 Sun January 30 2022
  450. Security fixes:
  451. #550 CVE-2022-23852 -- Fix signed integer overflow
  452. (undefined behavior) in function XML_GetBuffer
  453. (that is also called by function XML_Parse internally)
  454. for when XML_CONTEXT_BYTES is defined to >0 (which is both
  455. common and default).
  456. Impact is denial of service or more.
  457. #551 CVE-2022-23990 -- Fix unsigned integer overflow in function
  458. doProlog triggered by large content in element type
  459. declarations when there is an element declaration handler
  460. present (from a prior call to XML_SetElementDeclHandler).
  461. Impact is denial of service or more.
  462. Bug fixes:
  463. #544 #545 xmlwf: Fix a memory leak on output file opening error
  464. Other changes:
  465. #546 Autotools: Fix broken CMake support under Cygwin
  466. #554 Windows: Add missing files to the installer to fix
  467. compilation with CMake from installed sources
  468. #552 #554 Version info bumped from 9:3:8 to 9:4:8;
  469. see https://verbump.de/ for what these numbers do
  470. Special thanks to:
  471. Carlo Bramini
  472. hwt0415
  473. Roland Illig
  474. Samanta Navarro
  475. and
  476. Clang LeakSan and the Clang team
  477. Release 2.4.3 Sun January 16 2022
  478. Security fixes:
  479. #531 #534 CVE-2021-45960 -- Fix issues with left shifts by >=29 places
  480. resulting in
  481. a) realloc acting as free
  482. b) realloc allocating too few bytes
  483. c) undefined behavior
  484. depending on architecture and precise value
  485. for XML documents with >=2^27+1 prefixed attributes
  486. on a single XML tag a la
  487. "<r xmlns:a='[..]' a:a123='[..]' [..] />"
  488. where XML_ParserCreateNS is used to create the parser
  489. (which needs argument "-n" when running xmlwf).
  490. Impact is denial of service, or more.
  491. #532 #538 CVE-2021-46143 (ZDI-CAN-16157) -- Fix integer overflow
  492. on variable m_groupSize in function doProlog leading
  493. to realloc acting as free.
  494. Impact is denial of service or more.
  495. #539 CVE-2022-22822 to CVE-2022-22827 -- Prevent integer overflows
  496. near memory allocation at multiple places. Mitre assigned
  497. a dedicated CVE for each involved internal C function:
  498. - CVE-2022-22822 for function addBinding
  499. - CVE-2022-22823 for function build_model
  500. - CVE-2022-22824 for function defineAttribute
  501. - CVE-2022-22825 for function lookup
  502. - CVE-2022-22826 for function nextScaffoldPart
  503. - CVE-2022-22827 for function storeAtts
  504. Impact is denial of service or more.
  505. Other changes:
  506. #535 CMake: Make call to file(GENERATE [..]) work for CMake <3.19
  507. #541 Autotools|CMake: MinGW: Make run.sh(.in) work for Cygwin
  508. and MSYS2 by not going through Wine on these platforms
  509. #527 #528 Address compiler warnings
  510. #533 #543 Version info bumped from 9:2:8 to 9:3:8;
  511. see https://verbump.de/ for what these numbers do
  512. Infrastructure:
  513. #536 CI: Check for realistic minimum CMake version
  514. #529 #539 CI: Cover compilation with -m32
  515. #529 CI: Store coverage reports as artifacts for download
  516. #528 CI: Upgrade Clang from 11 to 13
  517. Special thanks to:
  518. An anonymous whitehat
  519. Christopher Degawa
  520. J. Peter Mugaas
  521. Tyson Smith
  522. and
  523. GCC Farm Project
  524. Trend Micro Zero Day Initiative
  525. Release 2.4.2 Sun December 19 2021
  526. Other changes:
  527. #509 #510 Link againgst libm for function "isnan"
  528. #513 #514 Include expat_config.h as early as possible
  529. #498 Autotools: Include files with release archives:
  530. - buildconf.sh
  531. - fuzz/*.c
  532. #507 #519 Autotools: Sync CMake templates with CMake 3.20
  533. #495 #524 CMake: MinGW: Fix pkg-config section "Libs" for
  534. - non-release build types (e.g. -DCMAKE_BUILD_TYPE=Debug)
  535. - multi-config CMake generators (e.g. Ninja Multi-Config)
  536. #502 #503 docs: Document that function XML_GetBuffer may return NULL
  537. when asking for a buffer of 0 (zero) bytes size
  538. #522 #523 docs: Fix return value docs for both
  539. XML_SetBillionLaughsAttackProtection* functions
  540. #525 #526 Version info bumped from 9:1:8 to 9:2:8;
  541. see https://verbump.de/ for what these numbers do
  542. Special thanks to:
  543. Donghee Na
  544. Joergen Ibsen
  545. Kai Pastor
  546. Release 2.4.1 Sun May 23 2021
  547. Bug fixes:
  548. #488 #490 Autotools: Fix installed header expat_config.h for multilib
  549. systems; regression introduced in 2.4.0 by pull request #486
  550. Other changes:
  551. #491 #492 Version info bumped from 9:0:8 to 9:1:8;
  552. see https://verbump.de/ for what these numbers do
  553. Special thanks to:
  554. Gentoo's QA check "multilib_check_headers"
  555. Release 2.4.0 Sun May 23 2021
  556. Security fixes:
  557. #34 #466 #484 CVE-2013-0340/CWE-776 -- Protect against billion laughs attacks
  558. (denial-of-service; flavors targeting CPU time or RAM or both,
  559. leveraging general entities or parameter entities or both)
  560. by tracking and limiting the input amplification factor
  561. (<amplification> := (<direct> + <indirect>) / <direct>).
  562. By conservative default, amplification up to a factor of 100.0
  563. is tolerated and rejection only starts after 8 MiB of output bytes
  564. (=<direct> + <indirect>) have been processed.
  565. The fix adds the following to the API:
  566. - A new error code XML_ERROR_AMPLIFICATION_LIMIT_BREACH to
  567. signals this specific condition.
  568. - Two new API functions ..
  569. - XML_SetBillionLaughsAttackProtectionMaximumAmplification and
  570. - XML_SetBillionLaughsAttackProtectionActivationThreshold
  571. .. to further tighten billion laughs protection parameters
  572. when desired. Please see file "doc/reference.html" for details.
  573. If you ever need to increase the defaults for non-attack XML
  574. payload, please file a bug report with libexpat.
  575. - Two new XML_FEATURE_* constants ..
  576. - that can be queried using the XML_GetFeatureList function, and
  577. - that are shown in "xmlwf -v" output.
  578. - Two new environment variable switches ..
  579. - EXPAT_ACCOUNTING_DEBUG=(0|1|2|3) and
  580. - EXPAT_ENTITY_DEBUG=(0|1)
  581. .. for runtime debugging of accounting and entity processing.
  582. Specific behavior of these values may change in the future.
  583. - Two new command line arguments "-a FACTOR" and "-b BYTES"
  584. for xmlwf to further tighten billion laughs protection
  585. parameters when desired.
  586. If you ever need to increase the defaults for non-attack XML
  587. payload, please file a bug report with libexpat.
  588. Bug fixes:
  589. #332 #470 For (non-default) compilation with -DEXPAT_MIN_SIZE=ON (CMake)
  590. or CPPFLAGS=-DXML_MIN_SIZE (GNU Autotools): Fix segfault
  591. for UTF-16 payloads containing CDATA sections.
  592. #485 #486 Autotools: Fix generated CMake files for non-64bit and
  593. non-Linux platforms (e.g. macOS and MinGW in particular)
  594. that were introduced with release 2.3.0
  595. Other changes:
  596. #468 #469 xmlwf: Improve help output and the xmlwf man page
  597. #463 xmlwf: Improve maintainability through some refactoring
  598. #477 xmlwf: Fix man page DocBook validity
  599. #456 Autotools: Sync CMake templates with CMake 3.18
  600. #458 #459 CMake: Support absolute paths for both CMAKE_INSTALL_LIBDIR
  601. and CMAKE_INSTALL_INCLUDEDIR
  602. #471 #481 CMake: Add support for standard variable BUILD_SHARED_LIBS
  603. #457 Unexpose symbol _INTERNAL_trim_to_complete_utf8_characters
  604. #467 Resolve macro HAVE_EXPAT_CONFIG_H
  605. #472 Delete unused legacy helper file "conftools/PrintPath"
  606. #473 #483 Improve attribution
  607. #464 #465 #477 doc/reference.html: Fix XHTML validity
  608. #475 #478 doc/reference.html: Replace the 90s look by OK.css
  609. #479 Version info bumped from 8:0:7 to 9:0:8
  610. due to addition of new symbols and error codes;
  611. see https://verbump.de/ for what these numbers do
  612. Infrastructure:
  613. #456 CI: Enable periodic runs
  614. #457 CI: Start covering the list of exported symbols
  615. #474 CI: Isolate coverage task
  616. #476 #482 CI: Adapt to breaking changes in image "ubuntu-18.04"
  617. #477 CI: Cover well-formedness and DocBook/XHTML validity
  618. of doc/reference.html and doc/xmlwf.xml
  619. Special thanks to:
  620. Dimitry Andric
  621. Eero Helenius
  622. Nick Wellnhofer
  623. Rhodri James
  624. Tomas Korbar
  625. Yury Gribov
  626. and
  627. Clang LeakSan
  628. JetBrains
  629. OSS-Fuzz
  630. Release 2.3.0 Thu March 25 2021
  631. Bug fixes:
  632. #438 When calling XML_ParseBuffer without a prior successful call to
  633. XML_GetBuffer as a user, no longer trigger undefined behavior
  634. (by adding an integer to a NULL pointer) but rather return
  635. XML_STATUS_ERROR and set the error code to (new) code
  636. XML_ERROR_NO_BUFFER. Found by UBSan (UndefinedBehaviorSanitizer)
  637. of Clang 11 (but not Clang 9).
  638. #444 xmlwf: Exit status 2 was used for both:
  639. - malformed input files (documented) and
  640. - invalid command-line arguments (undocumented).
  641. The case of invalid command-line arguments now
  642. has its own exit status 4, resolving the ambiguity.
  643. Other changes:
  644. #439 xmlwf: Add argument -k to allow continuing after
  645. non-fatal errors
  646. #439 xmlwf: Add section about exit status to the -h help output
  647. #422 #426 #447 Windows: Drop support for Visual Studio <=14.0/2015
  648. #434 Windows: CMake: Detect unsupported Visual Studio at
  649. configure time (rather than at compile time)
  650. #382 #428 testrunner: Make verbose mode (argument "-v") report
  651. about passed tests, and make default mode report about
  652. failures, as well.
  653. #442 CMake: Call "enable_language(CXX)" prior to tinkering
  654. with CMAKE_CXX_* variables
  655. #448 Document use of libexpat from a CMake-based project
  656. #451 Autotools: Install CMake files as generated by CMake 3.19.6
  657. so that users with "find_package(expat [..] CONFIG [..])"
  658. are served on distributions that are *not* using the CMake
  659. build system inside for libexpat packaging
  660. #436 #437 Autotools: Drop obsolescent macro AC_HEADER_STDC
  661. #450 #452 Autotools: Resolve use of obsolete macro AC_CONFIG_HEADER
  662. #441 Address compiler warnings
  663. #443 Version info bumped from 7:12:6 to 8:0:7
  664. due to addition of error code XML_ERROR_NO_BUFFER
  665. (see https://verbump.de/ for what these numbers do)
  666. Infrastructure:
  667. #435 #446 Replace Travis CI by GitHub Actions
  668. Special thanks to:
  669. Alexander Richardson
  670. Oleksandr Popovych
  671. Thomas Beutlich
  672. Tim Bray
  673. and
  674. Clang LeakSan, Clang 11 UBSan and the Clang team
  675. Release 2.2.10 Sat October 3 2020
  676. Bug fixes:
  677. #390 #395 #398 Fix undefined behavior during parsing caused by
  678. pointer arithmetic with NULL pointers
  679. #404 #405 Fix reading uninitialized variable during parsing
  680. #406 xmlwf: Add missing check for malloc NULL return
  681. Other changes:
  682. #396 Windows: Drop support for Visual Studio <=8.0/2005
  683. #409 Windows: Add missing file "Changes" to the installer
  684. to fix compilation with CMake from installed sources
  685. #403 xmlwf: Document exit codes in xmlwf manpage and
  686. exit with code 3 (rather than code 1) for output errors
  687. when used with "-d DIRECTORY"
  688. #356 #359 MinGW: Provide declaration of rand_s for mingwrt <5.3.0
  689. #383 #392 Autotools: Use -Werror while configure tests the compiler
  690. for supported compile flags to avoid false positives
  691. #383 #393 #394 Autotools: Improve handling of user (C|CPP|CXX|LD)FLAGS,
  692. e.g. ensure that they have the last word over flags added
  693. while running ./configure
  694. #360 CMake: Create libexpatw.{dll,so} and expatw.pc (with emphasis
  695. on suffix "w") with -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
  696. #360 CMake: Detect and deny unsupported build combinations
  697. involving -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
  698. #360 CMake: Install pre-compiled shipped xmlwf.1 manpage in case
  699. of -DEXPAT_BUILD_DOCS=OFF
  700. #375 #380 #419 CMake: Fix use of Expat by means of add_subdirectory
  701. #407 #408 CMake: Keep expat target name constant at "expat"
  702. (i.e. refrain from using the target name to control
  703. build artifact filenames)
  704. #385 CMake: Fix compilation with -DEXPAT_SHARED_LIBS=OFF for
  705. Windows
  706. CMake: Expose man page compilation as target "xmlwf-manpage"
  707. #413 #414 CMake: Introduce option EXPAT_BUILD_PKGCONFIG
  708. to control generation of pkg-config file "expat.pc"
  709. #424 CMake: Add minimalistic support for building binary packages
  710. with CMake target "package"; based on CPack
  711. #366 CMake: Add option -DEXPAT_OSSFUZZ_BUILD=(ON|OFF) with
  712. default OFF to build fuzzer code against OSS-Fuzz and
  713. related environment variable LIB_FUZZING_ENGINE
  714. #354 Fix testsuite for -DEXPAT_DTD=OFF and -DEXPAT_NS=OFF, each
  715. #354 #355 ..
  716. #356 #412 Address compiler warnings
  717. #368 #369 Address pngcheck warnings with doc/*.png images
  718. #425 Version info bumped from 7:11:6 to 7:12:6
  719. Special thanks to:
  720. asavah
  721. Ben Wagner
  722. Bhargava Shastry
  723. Frank Landgraf
  724. Jeffrey Walton
  725. Joe Orton
  726. Kleber Tarcísio
  727. Ma Lin
  728. Maciej Sroczyński
  729. Mohammed Khajapasha
  730. Vadim Zeitlin
  731. and
  732. Cppcheck 2.0 and the Cppcheck team
  733. Release 2.2.9 Wed September 25 2019
  734. Other changes:
  735. examples: Drop executable bits from elements.c
  736. #349 Windows: Change the name of the Windows DLLs from expat*.dll
  737. to libexpat*.dll once more (regression from 2.2.8, first
  738. fixed in 1.95.3, issue #61 on SourceForge today,
  739. was issue #432456 back then); needs a fix due
  740. case-insensitive file systems on Windows and the fact that
  741. Perl's XML::Parser::Expat compiles into Expat.dll.
  742. #347 Windows: Only define _CRT_RAND_S if not defined
  743. Version info bumped from 7:10:6 to 7:11:6
  744. Special thanks to:
  745. Ben Wagner
  746. Release 2.2.8 Fri September 13 2019
  747. Security fixes:
  748. #317 #318 CVE-2019-15903 -- Fix heap overflow triggered by
  749. XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber),
  750. and deny internal entities closing the doctype;
  751. fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43
  752. Bug fixes:
  753. #240 Fix cases where XML_StopParser did not have any effect
  754. when called from inside of an end element handler
  755. #341 xmlwf: Fix exit code for operation without "-d DIRECTORY";
  756. previously, only "-d DIRECTORY" would give you a proper
  757. exit code:
  758. # xmlwf -d . <<<'<not well-formed>' 2>/dev/null ; echo $?
  759. 2
  760. # xmlwf <<<'<not well-formed>' 2>/dev/null ; echo $?
  761. 0
  762. Now both cases return exit code 2.
  763. Other changes:
  764. #299 #302 Windows: Replace LoadLibrary hack to access
  765. unofficial API function SystemFunction036 (RtlGenRandom)
  766. by using official API function rand_s (needs WinXP+)
  767. #325 Windows: Drop support for Visual Studio <=7.1/2003
  768. and document supported compilers in README.md
  769. #286 Windows: Remove COM code from xmlwf; in case it turns
  770. out needed later, there will be a dedicated repository
  771. below https://github.com/libexpat/ for that code
  772. #322 Windows: Remove explicit MSVC solution and project files.
  773. You can generate Visual Studio solution files through
  774. CMake, e.g.: cmake -G"Visual Studio 15 2017" .
  775. #338 xmlwf: Make "xmlwf -h" help output more friendly
  776. #339 examples: Improve elements.c
  777. #244 #264 Autotools: Add argument --enable-xml-attr-info
  778. #239 #301 Autotools: Add arguments
  779. --with-getrandom
  780. --without-getrandom
  781. --with-sys-getrandom
  782. --without-sys-getrandom
  783. #312 #343 Autotools: Fix linking issues with "./configure LD=clang"
  784. Autotools: Fix "make run-xmltest" for out-of-source builds
  785. #329 #336 CMake: Pull all options from Expat <=2.2.7 into namespace
  786. prefix EXPAT_ with the exception of DOCBOOK_TO_MAN:
  787. - BUILD_doc -> EXPAT_BUILD_DOCS (plural)
  788. - BUILD_examples -> EXPAT_BUILD_EXAMPLES
  789. - BUILD_shared -> EXPAT_SHARED_LIBS
  790. - BUILD_tests -> EXPAT_BUILD_TESTS
  791. - BUILD_tools -> EXPAT_BUILD_TOOLS
  792. - DOCBOOK_TO_MAN -> DOCBOOK_TO_MAN (unchanged)
  793. - INSTALL -> EXPAT_ENABLE_INSTALL
  794. - MSVC_USE_STATIC_CRT -> EXPAT_MSVC_STATIC_CRT
  795. - USE_libbsd -> EXPAT_WITH_LIBBSD
  796. - WARNINGS_AS_ERRORS -> EXPAT_WARNINGS_AS_ERRORS
  797. - XML_CONTEXT_BYTES -> EXPAT_CONTEXT_BYTES
  798. - XML_DEV_URANDOM -> EXPAT_DEV_URANDOM
  799. - XML_DTD -> EXPAT_DTD
  800. - XML_NS -> EXPAT_NS
  801. - XML_UNICODE -> EXPAT_CHAR_TYPE=ushort (!)
  802. - XML_UNICODE_WCHAR_T -> EXPAT_CHAR_TYPE=wchar_t (!)
  803. #244 #264 CMake: Add argument -DEXPAT_ATTR_INFO=(ON|OFF),
  804. default OFF
  805. #326 CMake: Add argument -DEXPAT_LARGE_SIZE=(ON|OFF),
  806. default OFF
  807. #328 CMake: Add argument -DEXPAT_MIN_SIZE=(ON|OFF),
  808. default OFF
  809. #239 #277 CMake: Add arguments
  810. -DEXPAT_WITH_GETRANDOM=(ON|OFF|AUTO), default AUTO
  811. -DEXPAT_WITH_SYS_GETRANDOM=(ON|OFF|AUTO), default AUTO
  812. #326 CMake: Install expat_config.h to include directory
  813. #326 CMake: Generate and install configuration files for
  814. future find_package(expat [..] CONFIG [..])
  815. CMake: Now produces a summary of applied configuration
  816. CMake: Require C++ compiler only when tests are enabled
  817. #330 CMake: Fix compilation for 16bit character types,
  818. i.e. ex -DXML_UNICODE=ON (and ex -DXML_UNICODE_WCHAR_T=ON)
  819. #265 CMake: Fix linking with MinGW
  820. #330 CMake: Add full support for MinGW; to enable, use
  821. -DCMAKE_TOOLCHAIN_FILE=[expat]/cmake/mingw-toolchain.cmake
  822. #330 CMake: Port "make run-xmltest" from GNU Autotools to CMake
  823. #316 CMake: Windows: Make binary postfix match MSVC
  824. Old: expat[d].lib
  825. New: expat[w][d][MD|MT].lib
  826. CMake: Migrate files from Windows to Unix line endings
  827. #308 CMake: Integrate OSS-Fuzz fuzzers, option
  828. -DEXPAT_BUILD_FUZZERS=(ON|OFF), default OFF
  829. #14 Drop an OpenVMS support leftover
  830. #235 #268 ..
  831. #270 #310 ..
  832. #313 #331 #333 Address compiler warnings
  833. #282 #283 ..
  834. #284 #285 Address cppcheck warnings
  835. #294 #295 Address Clang Static Analyzer warnings
  836. #24 #293 Mass-apply clang-format 9 (and ensure conformance during CI)
  837. Version info bumped from 7:9:6 to 7:10:6
  838. Special thanks to:
  839. David Loffredo
  840. Joonun Jang
  841. Kishore Kunche
  842. Marco Maggi
  843. Mitch Phillips
  844. Mohammed Khajapasha
  845. Rolf Ade
  846. xantares
  847. Zhongyuan Zhou
  848. Release 2.2.7 Wed June 19 2019
  849. Security fixes:
  850. #186 #262 CVE-2018-20843 -- Fix extraction of namespace prefixes from
  851. XML names; XML names with multiple colons could end up in
  852. the wrong namespace, and take a high amount of RAM and CPU
  853. resources while processing, opening the door to
  854. use for denial-of-service attacks
  855. Other changes:
  856. #195 #197 Autotools/CMake: Utilize -fvisibility=hidden to stop
  857. exporting non-API symbols
  858. #227 Autotools: Add --without-examples and --without-tests
  859. #228 Autotools: Modernize configure.ac
  860. #245 #246 Autotools: Fix check for -fvisibility=hidden for Clang
  861. #247 #248 Autotools: Fix compilation for lack of docbook2x-man
  862. #236 #258 Autotools: Produce .tar.{gz,lz,xz} release archives
  863. #212 CMake: Make libdir of pkgconfig expat.pc support multilib
  864. #158 #263 CMake: Build man page in PROJECT_BINARY_DIR not _SOURCE_DIR
  865. #219 Remove fallback to bcopy, assume that memmove(3) exists
  866. #257 Use portable "/usr/bin/env bash" shebang (e.g. for OpenBSD)
  867. #243 Windows: Fix syntax of .def module definition files
  868. Version info bumped from 7:8:6 to 7:9:6
  869. Special thanks to:
  870. Benjamin Peterson
  871. Caolán McNamara
  872. Hanno Böck
  873. KangLin
  874. Kishore Kunche
  875. Marco Maggi
  876. Rhodri James
  877. Sebastian Dröge
  878. userwithuid
  879. Yury Gribov
  880. Release 2.2.6 Sun August 12 2018
  881. Bug fixes:
  882. #170 #206 Avoid doing arithmetic with NULL pointers in XML_GetBuffer
  883. #204 #205 Fix 2.2.5 regression with suspend-resume while parsing
  884. a document like '<root/>'
  885. Other changes:
  886. #165 #168 Autotools: Fix docbook-related configure syntax error
  887. #166 Autotools: Avoid grep option `-q` for Solaris
  888. #167 Autotools: Support
  889. ./configure DOCBOOK_TO_MAN="xmlto man --skip-validation"
  890. #159 #167 Autotools: Support DOCBOOK_TO_MAN command which produces
  891. xmlwf.1 rather than XMLWF.1; also covers case insensitive
  892. file systems
  893. #181 Autotools: Drop -rpath option passed to libtool
  894. #188 Autotools: Detect and deny SGML docbook2man as ours is XML
  895. #188 Autotools/CMake: Support command db2x_docbook2man as well
  896. #174 CMake: Introduce option WARNINGS_AS_ERRORS, defaults to OFF
  897. #184 #185 CMake: Introduce option MSVC_USE_STATIC_CRT, defaults to OFF
  898. #207 #208 CMake: Introduce option XML_UNICODE and XML_UNICODE_WCHAR_T,
  899. both defaulting to OFF
  900. #175 CMake: Prefer check_symbol_exists over check_function_exists
  901. #176 CMake: Create the same pkg-config file as with GNU Autotools
  902. #178 #179 CMake: Use GNUInstallDirs module to set proper defaults for
  903. install directories
  904. #208 CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM
  905. #180 Windows: Fix compilation of test suite for Visual Studio 2008
  906. #131 #173 #202 Address compiler warnings
  907. #187 #190 #200 Fix miscellaneous typos
  908. Version info bumped from 7:7:6 to 7:8:6
  909. Special thanks to:
  910. Anton Maklakov
  911. Benjamin Peterson
  912. Brad King
  913. Franek Korta
  914. Frank Rast
  915. Joe Orton
  916. luzpaz
  917. Pedro Vicente
  918. Rainer Jung
  919. Rhodri James
  920. Rolf Ade
  921. Rolf Eike Beer
  922. Thomas Beutlich
  923. Tomasz Kłoczko
  924. Release 2.2.5 Tue October 31 2017
  925. Bug fixes:
  926. #8 If the parser runs out of memory, make sure its internal
  927. state reflects the memory it actually has, not the memory
  928. it wanted to have.
  929. #11 The default handler wasn't being called when it should for
  930. a SYSTEM or PUBLIC doctype if an entity declaration handler
  931. was registered.
  932. #137 #138 Fix a case of mistakenly reported parsing success where
  933. XML_StopParser was called from an element handler
  934. #162 Function XML_ErrorString was returning NULL rather than
  935. a message for code XML_ERROR_INVALID_ARGUMENT
  936. introduced with release 2.2.1
  937. Other changes:
  938. #106 xmlwf: Add argument -N adding notation declarations
  939. #75 #106 Test suite: Resolve expected failure cases where xmlwf
  940. output was incomplete
  941. #127 Windows: Fix test suite compilation
  942. #126 #127 Windows: Fix compilation for Visual Studio 2012
  943. Windows: Upgrade shipped project files to Visual Studio 2017
  944. #33 #132 tests: Mass-fix compilation for XML_UNICODE_WCHAR_T
  945. #129 examples: Fix compilation for XML_UNICODE_WCHAR_T
  946. #130 benchmark: Fix compilation for XML_UNICODE_WCHAR_T
  947. #144 xmlwf: Fix compilation for XML_UNICODE_WCHAR_T; still needs
  948. Windows or MinGW for 2-byte wchar_t
  949. #9 Address two Clang Static Analyzer false positives
  950. #59 Resolve troublesome macros hiding parser struct membership
  951. and dereferencing that pointer
  952. #6 Resolve superfluous internal malloc/realloc switch
  953. #153 #155 Improve docbook2x-man detection
  954. #160 Undefine NDEBUG in the test suite (rather than rejecting it)
  955. #161 Address compiler warnings
  956. Version info bumped from 7:6:6 to 7:7:6
  957. Special thanks to:
  958. Benbuck Nason
  959. Hans Wennborg
  960. José Gutiérrez de la Concha
  961. Pedro Monreal Gonzalez
  962. Rhodri James
  963. Rolf Ade
  964. Stephen Groat
  965. and
  966. Core Infrastructure Initiative
  967. Release 2.2.4 Sat August 19 2017
  968. Bug fixes:
  969. #115 Fix copying of partial characters for UTF-8 input
  970. Other changes:
  971. #109 Fix "make check" for non-x86 architectures that default
  972. to unsigned type char (-128..127 rather than 0..255)
  973. #109 coverage.sh: Cover -funsigned-char
  974. Autotools: Introduce --without-xmlwf argument
  975. #65 Autotools: Replace handwritten Makefile with GNU Automake
  976. #43 CMake: Auto-detect high quality entropy extractors, add new
  977. option USE_libbsd=ON to use arc4random_buf of libbsd
  978. #74 CMake: Add -fno-strict-aliasing only where supported
  979. #114 CMake: Always honor manually set BUILD_* options
  980. #114 CMake: Compile man page if docbook2x-man is available, only
  981. #117 Include file tests/xmltest.log.expected in source tarball
  982. (required for "make run-xmltest")
  983. #117 Include (existing) Visual Studio 2013 files in source tarball
  984. Improve test suite error output
  985. #111 Fix some typos in documentation
  986. Version info bumped from 7:5:6 to 7:6:6
  987. Special thanks to:
  988. Jakub Wilk
  989. Joe Orton
  990. Lin Tian
  991. Rolf Eike Beer
  992. Release 2.2.3 Wed August 2 2017
  993. Security fixes:
  994. #82 CVE-2017-11742 -- Windows: Fix DLL hijacking vulnerability
  995. using Steve Holme's LoadLibrary wrapper for/of cURL
  996. Bug fixes:
  997. #85 Fix a dangling pointer issue related to realloc
  998. Other changes:
  999. Increase code coverage
  1000. #91 Linux: Allow getrandom to fail if nonblocking pool has not
  1001. yet been initialized and read /dev/urandom then, instead.
  1002. This is in line with what recent Python does.
  1003. #81 Pre-10.7/Lion macOS: Support entropy from arc4random
  1004. #86 Check that a UTF-16 encoding in an XML declaration has the
  1005. right endianness
  1006. #4 #5 #7 Recover correctly when some reallocations fail
  1007. Repair "./configure && make" for systems without any
  1008. provider of high quality entropy
  1009. and try reading /dev/urandom on those
  1010. Ensure that user-defined character encodings have converter
  1011. functions when they are needed
  1012. Fix mis-leading description of argument -c in xmlwf.1
  1013. Rely on macro HAVE_ARC4RANDOM_BUF (rather than __CloudABI__)
  1014. for CloudABI
  1015. #100 Fix use of SIPHASH_MAIN in siphash.h
  1016. #23 Test suite: Fix memory leaks
  1017. Version info bumped from 7:4:6 to 7:5:6
  1018. Special thanks to:
  1019. Chanho Park
  1020. Joe Orton
  1021. Pascal Cuoq
  1022. Rhodri James
  1023. Simon McVittie
  1024. Vadim Zeitlin
  1025. Viktor Szakats
  1026. and
  1027. Core Infrastructure Initiative
  1028. Release 2.2.2 Wed July 12 2017
  1029. Security fixes:
  1030. #43 Protect against compilation without any source of high
  1031. quality entropy enabled, e.g. with CMake build system;
  1032. commit ff0207e6076e9828e536b8d9cd45c9c92069b895
  1033. #60 Windows with _UNICODE:
  1034. Unintended use of LoadLibraryW with a non-wide string
  1035. resulted in failure to load advapi32.dll and degradation
  1036. in quality of used entropy when compiled with _UNICODE for
  1037. Windows; you can launch existing binaries with
  1038. EXPAT_ENTROPY_DEBUG=1 in the environment to inspect the
  1039. quality of entropy used during runtime; commits
  1040. * 95b95032f907ef1cd17ee7a9a1768010a825d61d
  1041. * 73a5a2e9c081f49f2d775cf7ced864158b68dc80
  1042. [MOX-006] Fix non-NULL parser parameter validation in XML_Parse;
  1043. resulted in NULL dereference, previously;
  1044. commit ac256dafdffc9622ab0dc2c62fcecb0dfcfa71fe
  1045. Bug fixes:
  1046. #69 Fix improper use of unsigned long long integer literals
  1047. Other changes:
  1048. #73 Start requiring a C99 compiler
  1049. #49 Fix "==" Bashism in configure script
  1050. #50 Fix too eager getrandom detection for Debian GNU/kFreeBSD
  1051. #52 and macOS
  1052. #51 Address lack of stdint.h in Visual Studio 2003 to 2008
  1053. #58 Address compile warnings
  1054. #68 Fix "./buildconf.sh && ./configure" for some versions
  1055. of Dash for /bin/sh
  1056. #72 CMake: Ease use of Expat in context of a parent project
  1057. with multiple CMakeLists.txt files
  1058. #72 CMake: Resolve mistaken executable permissions
  1059. #76 Address compile warning with -DNDEBUG (not recommended!)
  1060. #77 Address compile warning about macro redefinition
  1061. Special thanks to:
  1062. Alexander Bluhm
  1063. Ben Boeckel
  1064. Cătălin Răceanu
  1065. Kerin Millar
  1066. László Böszörményi
  1067. S. P. Zeidler
  1068. Segev Finer
  1069. Václav Slavík
  1070. Victor Stinner
  1071. Viktor Szakats
  1072. and
  1073. Radically Open Security
  1074. Release 2.2.1 Sat June 17 2017
  1075. Security fixes:
  1076. CVE-2017-9233 -- External entity infinite loop DoS
  1077. Details: https://libexpat.github.io/doc/cve-2017-9233/
  1078. Commit c4bf96bb51dd2a1b0e185374362ee136fe2c9d7f
  1079. [MOX-002] CVE-2016-9063 -- Detect integer overflow; commit
  1080. d4f735b88d9932bd5039df2335eefdd0723dbe20
  1081. (Fixed version of existing downstream patches!)
  1082. (SF.net) #539 Fix regression from fix to CVE-2016-0718 cutting off
  1083. longer tag names; commits
  1084. * 896b6c1fd3b842f377d1b62135dccf0a579cf65d
  1085. * af507cef2c93cb8d40062a0abe43a4f4e9158fb2
  1086. #16 * 0dbbf43fdb20f593ddf4fa1ff67288000dd4a7fd
  1087. #25 More integer overflow detection (function poolGrow); commits
  1088. * 810b74e4703dcfdd8f404e3cb177d44684775143
  1089. * 44178553f3539ce69d34abee77a05e879a7982ac
  1090. [MOX-002] Detect overflow from len=INT_MAX call to XML_Parse; commits
  1091. * 4be2cb5afcc018d996f34bbbce6374b7befad47f
  1092. * 7e5b71b748491b6e459e5c9a1d090820f94544d8
  1093. [MOX-005] #30 Use high quality entropy for hash initialization:
  1094. * arc4random_buf on BSD, systems with libbsd
  1095. (when configured with --with-libbsd), CloudABI
  1096. * RtlGenRandom on Windows XP / Server 2003 and later
  1097. * getrandom on Linux 3.17+
  1098. In a way, that's still part of CVE-2016-5300.
  1099. https://github.com/libexpat/libexpat/pull/30/commits
  1100. [MOX-005] For the low quality entropy extraction fallback code,
  1101. the parser instance address can no longer leak, commit
  1102. 04ad658bd3079dd15cb60fc67087900f0ff4b083
  1103. [MOX-003] Prevent use of uninitialised variable; commit
  1104. [MOX-004] a4dc944f37b664a3ca7199c624a98ee37babdb4b
  1105. Add missing parameter validation to public API functions
  1106. and dedicated error code XML_ERROR_INVALID_ARGUMENT:
  1107. [MOX-006] * NULL checks; commits
  1108. * d37f74b2b7149a3a95a680c4c4cd2a451a51d60a (merge/many)
  1109. * 9ed727064b675b7180c98cb3d4f75efba6966681
  1110. * 6a747c837c50114dfa413994e07c0ba477be4534
  1111. * Negative length (XML_Parse); commit
  1112. [MOX-002] 70db8d2538a10f4c022655d6895e4c3e78692e7f
  1113. [MOX-001] #35 Change hash algorithm to William Ahern's version of SipHash
  1114. to go further with fixing CVE-2012-0876.
  1115. https://github.com/libexpat/libexpat/pull/39/commits
  1116. Bug fixes:
  1117. #32 Fix sharing of hash salt across parsers;
  1118. relevant where XML_ExternalEntityParserCreate is called
  1119. prior to XML_Parse, in particular (e.g. FBReader)
  1120. #28 xmlwf: Auto-disable use of memory-mapping (and parsing
  1121. as a single chunk) for files larger than ~1 GB (2^30 bytes)
  1122. rather than failing with error "out of memory"
  1123. #3 Fix double free after malloc failure in DTD code; commit
  1124. 7ae9c3d3af433cd4defe95234eae7dc8ed15637f
  1125. #17 Fix memory leak on parser error for unbound XML attribute
  1126. prefix with new namespaces defined in the same tag;
  1127. found by Google's OSS-Fuzz; commits
  1128. * 16f87daae5a16132e479e4f71862128c7a915c73
  1129. * b47dbc9745932c160893d433220e462bd605f8cd
  1130. xmlwf on Windows: Add missing calls to CloseHandle
  1131. New features:
  1132. #30 Introduced environment switch EXPAT_ENTROPY_DEBUG=1
  1133. for runtime debugging of entropy extraction
  1134. Other changes:
  1135. Increase code coverage
  1136. #33 Reject use of XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2;
  1137. XML_UNICODE_WCHAR_T was never meant to be used outside
  1138. of Windows; 4-byte wchar_t is common on Linux
  1139. (SF.net) #538 Start using -fno-strict-aliasing
  1140. (SF.net) #540 Support compilation against cloudlibc of CloudABI
  1141. Allow MinGW cross-compilation
  1142. (SF.net) #534 CMake: Introduce option "BUILD_doc" (enabled by default)
  1143. to bypass compilation of the xmlwf.1 man page
  1144. (SF.net) pr2 CMake: Introduce option "INSTALL" (enabled by default)
  1145. to bypass installation of expat files
  1146. CMake: Fix ninja support
  1147. Autotools: Add parameters --enable-xml-context [COUNT]
  1148. and --disable-xml-context; default of context of 1024
  1149. bytes enabled unchanged
  1150. #14 Drop AmigaOS 4.x code and includes
  1151. #14 Drop ancient build systems:
  1152. * Borland C++ Builder
  1153. * OpenVMS
  1154. * Open Watcom
  1155. * Visual Studio 6.0
  1156. * Pre-X Mac OS (MPW Makefile)
  1157. If you happen to rely on some of these, please get in
  1158. touch for joining with maintenance.
  1159. #10 Move from WIN32 to _WIN32
  1160. #13 Fix "make run-xmltest" order instability
  1161. Address compile warnings
  1162. Bump version info from 7:2:6 to 7:3:6
  1163. Add AUTHORS file
  1164. Infrastructure:
  1165. #1 Migrate from SourceForge to GitHub (except downloads):
  1166. https://github.com/libexpat/
  1167. #1 Re-create http://libexpat.org/ project website
  1168. Start utilizing Travis CI
  1169. Special thanks to:
  1170. Andy Wang
  1171. Don Lewis
  1172. Ed Schouten
  1173. Karl Waclawek
  1174. Pascal Cuoq
  1175. Rhodri James
  1176. Sergei Nikulov
  1177. Tobias Taschner
  1178. Viktor Szakats
  1179. and
  1180. Core Infrastructure Initiative
  1181. Mozilla Foundation (MOSS Track 3: Secure Open Source)
  1182. Radically Open Security
  1183. Release 2.2.0 Tue June 21 2016
  1184. Security fixes:
  1185. #537 CVE-2016-0718 -- Fix crash on malformed input
  1186. CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 /
  1187. CVE-2015-2716 introduced with Expat 2.1.1
  1188. #499 CVE-2016-5300 -- Use more entropy for hash initialization
  1189. than the original fix to CVE-2012-0876
  1190. #519 CVE-2012-6702 -- Resolve troublesome internal call to srand
  1191. that was introduced with Expat 2.1.0
  1192. when addressing CVE-2012-0876 (issue #496)
  1193. Bug fixes:
  1194. Fix uninitialized reads of size 1
  1195. (e.g. in little2_updatePosition)
  1196. Fix detection of UTF-8 character boundaries
  1197. Other changes:
  1198. #532 Fix compilation for Visual Studio 2010 (keyword "C99")
  1199. Autotools: Resolve use of "$<" to better support bmake
  1200. Autotools: Add QA script "qa.sh" (and make target "qa")
  1201. Autotools: Respect CXXFLAGS if given
  1202. Autotools: Fix "make run-xmltest"
  1203. Autotools: Have "make run-xmltest" check for expected output
  1204. p90 CMake: Fix static build (BUILD_shared=OFF) on Windows
  1205. #536 CMake: Add soversion, support -DNO_SONAME=yes to bypass
  1206. #323 CMake: Add suffix "d" to differentiate debug from release
  1207. CMake: Define WIN32 with CMake on Windows
  1208. Annotate memory allocators for GCC
  1209. Address all currently known compile warnings
  1210. Make sure that API symbols remain visible despite
  1211. -fvisibility=hidden
  1212. Remove executable flag from source files
  1213. Resolve COMPILED_FROM_DSP in favor of WIN32
  1214. Special thanks to:
  1215. Björn Lindahl
  1216. Christian Heimes
  1217. Cristian Rodríguez
  1218. Daniel Krügler
  1219. Gustavo Grieco
  1220. Karl Waclawek
  1221. László Böszörményi
  1222. Marco Grassi
  1223. Pascal Cuoq
  1224. Sergei Nikulov
  1225. Thomas Beutlich
  1226. Warren Young
  1227. Yann Droneaud
  1228. Release 2.1.1 Sat March 12 2016
  1229. Security fixes:
  1230. #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer
  1231. Bug fixes:
  1232. #502: Fix potential null pointer dereference
  1233. #520: Symbol XML_SetHashSalt was not exported
  1234. Output of "xmlwf -h" was incomplete
  1235. Other changes:
  1236. #503: Document behavior of calling XML_SetHashSalt with salt 0
  1237. Minor improvements to man page xmlwf(1)
  1238. Improvements to the experimental CMake build system
  1239. libtool now invoked with --verbose
  1240. Release 2.1.0 Sat March 24 2012
  1241. - Security fixes:
  1242. #2958794: CVE-2012-1148 - Memory leak in poolGrow.
  1243. #2895533: CVE-2012-1147 - Resource leak in readfilemap.c.
  1244. #3496608: CVE-2012-0876 - Hash DOS attack.
  1245. #2894085: CVE-2009-3560 - Buffer over-read and crash in big2_toUtf8().
  1246. #1990430: CVE-2009-3720 - Parser crash with special UTF-8 sequences.
  1247. - Bug Fixes:
  1248. #1742315: Harmful XML_ParserCreateNS suggestion.
  1249. #1785430: Expat build fails on linux-amd64 with gcc version>=4.1 -O3.
  1250. #1983953, 2517952, 2517962, 2649838:
  1251. Build modifications using autoreconf instead of buildconf.sh.
  1252. #2815947, #2884086: OBJEXT and EXEEXT support while building.
  1253. #2517938: xmlwf should return non-zero exit status if not well-formed.
  1254. #2517946: Wrong statement about XMLDecl in xmlwf.1 and xmlwf.sgml.
  1255. #2855609: Dangling positionPtr after error.
  1256. #2990652: CMake support.
  1257. #3010819: UNEXPECTED_STATE with a trailing "%" in entity value.
  1258. #3206497: Uninitialized memory returned from XML_Parse.
  1259. #3287849: make check fails on mingw-w64.
  1260. - Patches:
  1261. #1749198: pkg-config support.
  1262. #3010222: Fix for bug #3010819.
  1263. #3312568: CMake support.
  1264. #3446384: Report byte offsets for attr names and values.
  1265. - New Features / API changes:
  1266. Added new API member XML_SetHashSalt() that allows setting an initial
  1267. value (salt) for hash calculations. This is part of the fix for
  1268. bug #3496608 to randomize hash parameters.
  1269. When compiled with XML_ATTR_INFO defined, adds new API member
  1270. XML_GetAttributeInfo() that allows retrieving the byte
  1271. offsets for attribute names and values (patch #3446384).
  1272. Added CMake build system.
  1273. See bug #2990652 and patch #3312568.
  1274. Added run-benchmark target to Makefile.in - relies on testdata module
  1275. present in the same relative location as in the repository.
  1276. Release 2.0.1 Tue June 5 2007
  1277. - Fixed bugs #1515266, #1515600: The character data handler's calling
  1278. of XML_StopParser() was not handled properly; if the parser was
  1279. stopped and the handler set to NULL, the parser would segfault.
  1280. - Fixed bug #1690883: Expat failed on EBCDIC systems as it assumed
  1281. some character constants to be ASCII encoded.
  1282. - Minor cleanups of the test harness.
  1283. - Fixed xmlwf bug #1513566: "out of memory" error on file size zero.
  1284. - Fixed outline.c bug #1543233: missing a final XML_ParserFree() call.
  1285. - Fixes and improvements for Windows platform:
  1286. bugs #1409451, #1476160, #1548182, #1602769, #1717322.
  1287. - Build fixes for various platforms:
  1288. HP-UX, Tru64, Solaris 9: patch #1437840, bug #1196180.
  1289. All Unix: #1554618 (refreshed config.sub/config.guess).
  1290. #1490371, #1613457: support both, DESTDIR and INSTALL_ROOT,
  1291. without relying on GNU-Make specific features.
  1292. #1647805: Patched configure.in to work better with Intel compiler.
  1293. - Fixes to Makefile.in to have make check work correctly:
  1294. bugs #1408143, #1535603, #1536684.
  1295. - Added Open Watcom support: patch #1523242.
  1296. Release 2.0.0 Wed Jan 11 2006
  1297. - We no longer use the "check" library for C unit testing; we
  1298. always use the (partial) internal implementation of the API.
  1299. - Report XML_NS setting via XML_GetFeatureList().
  1300. - Fixed headers for use from C++.
  1301. - XML_GetCurrentLineNumber() and XML_GetCurrentColumnNumber()
  1302. now return unsigned integers.
  1303. - Added XML_LARGE_SIZE switch to enable 64-bit integers for
  1304. byte indexes and line/column numbers.
  1305. - Updated to use libtool 1.5.22 (the most recent).
  1306. - Added support for AmigaOS.
  1307. - Some mostly minor bug fixes. SF issues include: #1006708,
  1308. #1021776, #1023646, #1114960, #1156398, #1221160, #1271642.
  1309. Release 1.95.8 Fri Jul 23 2004
  1310. - Major new feature: suspend/resume. Handlers can now request
  1311. that a parse be suspended for later resumption or aborted
  1312. altogether. See "Temporarily Stopping Parsing" in the
  1313. documentation for more details.
  1314. - Some mostly minor bug fixes, but compilation should no
  1315. longer generate warnings on most platforms. SF issues
  1316. include: #827319, #840173, #846309, #888329, #896188, #923913,
  1317. #928113, #961698, #985192.
  1318. Release 1.95.7 Mon Oct 20 2003
  1319. - Fixed enum XML_Status issue (reported on SourceForge many
  1320. times), so compilers that are properly picky will be happy.
  1321. - Introduced an XMLCALL macro to control the calling
  1322. convention used by the Expat API; this macro should be used
  1323. to annotate prototypes and definitions of callback
  1324. implementations in code compiled with a calling convention
  1325. other than the default convention for the host platform.
  1326. - Improved ability to build without the configure-generated
  1327. expat_config.h header. This is useful for applications
  1328. which embed Expat rather than linking in the library.
  1329. - Fixed a variety of bugs: see SF issues #458907, #609603,
  1330. #676844, #679754, #692878, #692964, #695401, #699323, #699487,
  1331. #820946.
  1332. - Improved hash table lookups.
  1333. - Added more regression tests and improved documentation.
  1334. Release 1.95.6 Tue Jan 28 2003
  1335. - Added XML_FreeContentModel().
  1336. - Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
  1337. - Fixed a variety of bugs: see SF issues #615606, #616863,
  1338. #618199, #653180, #673791.
  1339. - Enhanced the regression test suite.
  1340. - Man page improvements: includes SF issue #632146.
  1341. Release 1.95.5 Fri Sep 6 2002
  1342. - Added XML_UseForeignDTD() for improved SAX2 support.
  1343. - Added XML_GetFeatureList().
  1344. - Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
  1345. - Use an incomplete struct instead of a void* for the parser
  1346. (may not retain).
  1347. - Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
  1348. - Finally fixed bug where default handler would report DTD
  1349. events that were already handled by another handler.
  1350. Initial patch contributed by Darryl Miles.
  1351. - Removed unnecessary DllMain() function that caused static
  1352. linking into a DLL to be difficult.
  1353. - Added VC++ projects for building static libraries.
  1354. - Reduced line-length for all source code and headers to be
  1355. no longer than 80 characters, to help with AS/400 support.
  1356. - Reduced memory copying during parsing (SF patch #600964).
  1357. - Fixed a variety of bugs: see SF issues #580793, #434664,
  1358. #483514, #580503, #581069, #584041, #584183, #584832, #585537,
  1359. #596555, #596678, #598352, #598944, #599715, #600479, #600971.
  1360. Release 1.95.4 Fri Jul 12 2002
  1361. - Added support for VMS, contributed by Craig Berry. See
  1362. vms/README.vms for more information.
  1363. - Added Mac OS (classic) support, with a makefile for MPW,
  1364. contributed by Thomas Wegner and Daryle Walker.
  1365. - Added Borland C++ Builder 5 / BCC 5.5 support, contributed
  1366. by Patrick McConnell (SF patch #538032).
  1367. - Fixed a variety of bugs: see SF issues #441449, #563184,
  1368. #564342, #566334, #566901, #569461, #570263, #575168, #579196.
  1369. - Made skippedEntityHandler conform to SAX2 (see source comment)
  1370. - Re-implemented WFC: Entity Declared from XML 1.0 spec and
  1371. added a new error "entity declared in parameter entity":
  1372. see SF bug report #569461 and SF patch #578161
  1373. - Re-implemented section 5.1 from XML 1.0 spec:
  1374. see SF bug report #570263 and SF patch #578161
  1375. Release 1.95.3 Mon Jun 3 2002
  1376. - Added a project to the MSVC workspace to create a wchar_t
  1377. version of the library; the DLLs are named libexpatw.dll.
  1378. - Changed the name of the Windows DLLs from expat.dll to
  1379. libexpat.dll; this fixes SF bug #432456.
  1380. - Added the XML_ParserReset() API function.
  1381. - Fixed XML_SetReturnNSTriplet() to work for element names.
  1382. - Made the XML_UNICODE builds usable (thanks, Karl!).
  1383. - Allow xmlwf to read from standard input.
  1384. - Install a man page for xmlwf on Unix systems.
  1385. - Fixed many bugs; see SF bug reports #231864, #461380, #464837,
  1386. #466885, #469226, #477667, #484419, #487840, #494749, #496505,
  1387. #547350. Other bugs which we can't test as easily may also
  1388. have been fixed, especially in the area of build support.
  1389. Release 1.95.2 Fri Jul 27 2001
  1390. - More changes to make MSVC happy with the build; add a single
  1391. workspace to support both the library and xmlwf application.
  1392. - Added a Windows installer for Windows users; includes
  1393. xmlwf.exe.
  1394. - Added compile-time constants that can be used to determine the
  1395. Expat version
  1396. - Removed a lot of GNU-specific dependencies to aide portability
  1397. among the various Unix flavors.
  1398. - Fix the UTF-8 BOM bug.
  1399. - Cleaned up warning messages for several compilers.
  1400. - Added the -Wall, -Wstrict-prototypes options for GCC.
  1401. Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
  1402. - Changes to get expat to build under Microsoft compiler
  1403. - Removed all aborts and instead return an UNEXPECTED_STATE error.
  1404. - Fixed a bug where a stray '%' in an entity value would cause an
  1405. abort.
  1406. - Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
  1407. finding this oversight.
  1408. - Changed default patterns in lib/Makefile.in to fit non-GNU makes
  1409. Thanks to robin@unrated.net for reporting and providing an
  1410. account to test on.
  1411. - The reference had the wrong label for XML_SetStartNamespaceDecl.
  1412. Reported by an anonymous user.
  1413. Release 1.95.0 Fri Sep 29 2000
  1414. - XML_ParserCreate_MM
  1415. Allows you to set a memory management suite to replace the
  1416. standard malloc,realloc, and free.
  1417. - XML_SetReturnNSTriplet
  1418. If you turn this feature on when namespace processing is in
  1419. effect, then qualified, prefixed element and attribute names
  1420. are returned as "uri|name|prefix" where '|' is whatever
  1421. separator character is used in namespace processing.
  1422. - Merged in features from perl-expat
  1423. o XML_SetElementDeclHandler
  1424. o XML_SetAttlistDeclHandler
  1425. o XML_SetXmlDeclHandler
  1426. o XML_SetEntityDeclHandler
  1427. o StartDoctypeDeclHandler takes 3 additional parameters:
  1428. sysid, pubid, has_internal_subset
  1429. o Many paired handler setters (like XML_SetElementHandler)
  1430. now have corresponding individual handler setters
  1431. o XML_GetInputContext for getting the input context of
  1432. the current parse position.
  1433. - Added reference material
  1434. - Packaged into a distribution that builds a sharable library