Changes 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  1. NOTE: We are looking for help with a few things:
  2. https://github.com/libexpat/libexpat/labels/help%20wanted
  3. If you can help, please get in touch. Thanks!
  4. Release 2.4.6 Sun February 20 2022
  5. Bug fixes:
  6. #566 Fix a regression introduced by the fix for CVE-2022-25313
  7. in release 2.4.5 that affects applications that (1)
  8. call function XML_SetElementDeclHandler and (2) are
  9. parsing XML that contains nested element declarations
  10. (e.g. "<!ELEMENT junk ((bar|foo|xyz+), zebra*)>").
  11. Other changes:
  12. #567 #568 Version info bumped from 9:5:8 to 9:6:8;
  13. see https://verbump.de/ for what these numbers do
  14. Special thanks to:
  15. Matt Sergeant
  16. Samanta Navarro
  17. Sergei Trofimovich
  18. and
  19. NixOS
  20. Perl XML::Parser
  21. Release 2.4.5 Fri February 18 2022
  22. Security fixes:
  23. #562 CVE-2022-25235 -- Passing malformed 2- and 3-byte UTF-8
  24. sequences (e.g. from start tag names) to the XML
  25. processing application on top of Expat can cause
  26. arbitrary damage (e.g. code execution) depending
  27. on how invalid UTF-8 is handled inside the XML
  28. processor; validation was not their job but Expat's.
  29. Exploits with code execution are known to exist.
  30. #561 CVE-2022-25236 -- Passing (one or more) namespace separator
  31. characters in "xmlns[:prefix]" attribute values
  32. made Expat send malformed tag names to the XML
  33. processor on top of Expat which can cause
  34. arbitrary damage (e.g. code execution) depending
  35. on such unexpectable cases are handled inside the XML
  36. processor; validation was not their job but Expat's.
  37. Exploits with code execution are known to exist.
  38. #558 CVE-2022-25313 -- Fix stack exhaustion in doctype parsing
  39. that could be triggered by e.g. a 2 megabytes
  40. file with a large number of opening braces.
  41. Expected impact is denial of service or potentially
  42. arbitrary code execution.
  43. #560 CVE-2022-25314 -- Fix integer overflow in function copyString;
  44. only affects the encoding name parameter at parser creation
  45. time which is often hardcoded (rather than user input),
  46. takes a value in the gigabytes to trigger, and a 64-bit
  47. machine. Expected impact is denial of service.
  48. #559 CVE-2022-25315 -- Fix integer overflow in function storeRawNames;
  49. needs input in the gigabytes and a 64-bit machine.
  50. Expected impact is denial of service or potentially
  51. arbitrary code execution.
  52. Other changes:
  53. #557 #564 Version info bumped from 9:4:8 to 9:5:8;
  54. see https://verbump.de/ for what these numbers do
  55. Special thanks to:
  56. Ivan Fratric
  57. Samanta Navarro
  58. and
  59. Google Project Zero
  60. JetBrains
  61. Release 2.4.4 Sun January 30 2022
  62. Security fixes:
  63. #550 CVE-2022-23852 -- Fix signed integer overflow
  64. (undefined behavior) in function XML_GetBuffer
  65. (that is also called by function XML_Parse internally)
  66. for when XML_CONTEXT_BYTES is defined to >0 (which is both
  67. common and default).
  68. Impact is denial of service or more.
  69. #551 CVE-2022-23990 -- Fix unsigned integer overflow in function
  70. doProlog triggered by large content in element type
  71. declarations when there is an element declaration handler
  72. present (from a prior call to XML_SetElementDeclHandler).
  73. Impact is denial of service or more.
  74. Bug fixes:
  75. #544 #545 xmlwf: Fix a memory leak on output file opening error
  76. Other changes:
  77. #546 Autotools: Fix broken CMake support under Cygwin
  78. #554 Windows: Add missing files to the installer to fix
  79. compilation with CMake from installed sources
  80. #552 #554 Version info bumped from 9:3:8 to 9:4:8;
  81. see https://verbump.de/ for what these numbers do
  82. Special thanks to:
  83. Carlo Bramini
  84. hwt0415
  85. Roland Illig
  86. Samanta Navarro
  87. and
  88. Clang LeakSan and the Clang team
  89. Release 2.4.3 Sun January 16 2022
  90. Security fixes:
  91. #531 #534 CVE-2021-45960 -- Fix issues with left shifts by >=29 places
  92. resulting in
  93. a) realloc acting as free
  94. b) realloc allocating too few bytes
  95. c) undefined behavior
  96. depending on architecture and precise value
  97. for XML documents with >=2^27+1 prefixed attributes
  98. on a single XML tag a la
  99. "<r xmlns:a='[..]' a:a123='[..]' [..] />"
  100. where XML_ParserCreateNS is used to create the parser
  101. (which needs argument "-n" when running xmlwf).
  102. Impact is denial of service, or more.
  103. #532 #538 CVE-2021-46143 (ZDI-CAN-16157) -- Fix integer overflow
  104. on variable m_groupSize in function doProlog leading
  105. to realloc acting as free.
  106. Impact is denial of service or more.
  107. #539 CVE-2022-22822 to CVE-2022-22827 -- Prevent integer overflows
  108. near memory allocation at multiple places. Mitre assigned
  109. a dedicated CVE for each involved internal C function:
  110. - CVE-2022-22822 for function addBinding
  111. - CVE-2022-22823 for function build_model
  112. - CVE-2022-22824 for function defineAttribute
  113. - CVE-2022-22825 for function lookup
  114. - CVE-2022-22826 for function nextScaffoldPart
  115. - CVE-2022-22827 for function storeAtts
  116. Impact is denial of service or more.
  117. Other changes:
  118. #535 CMake: Make call to file(GENERATE [..]) work for CMake <3.19
  119. #541 Autotools|CMake: MinGW: Make run.sh(.in) work for Cygwin
  120. and MSYS2 by not going through Wine on these platforms
  121. #527 #528 Address compiler warnings
  122. #533 #543 Version info bumped from 9:2:8 to 9:3:8;
  123. see https://verbump.de/ for what these numbers do
  124. Infrastructure:
  125. #536 CI: Check for realistic minimum CMake version
  126. #529 #539 CI: Cover compilation with -m32
  127. #529 CI: Store coverage reports as artifacts for download
  128. #528 CI: Upgrade Clang from 11 to 13
  129. Special thanks to:
  130. An anonymous whitehat
  131. Christopher Degawa
  132. J. Peter Mugaas
  133. Tyson Smith
  134. and
  135. GCC Farm Project
  136. Trend Micro Zero Day Initiative
  137. Release 2.4.2 Sun December 19 2021
  138. Other changes:
  139. #509 #510 Link againgst libm for function "isnan"
  140. #513 #514 Include expat_config.h as early as possible
  141. #498 Autotools: Include files with release archives:
  142. - buildconf.sh
  143. - fuzz/*.c
  144. #507 #519 Autotools: Sync CMake templates
  145. #495 #524 CMake: MinGW: Fix pkg-config section "Libs" for
  146. - non-release build types (e.g. -DCMAKE_BUILD_TYPE=Debug)
  147. - multi-config CMake generators (e.g. Ninja Multi-Config)
  148. #502 #503 docs: Document that function XML_GetBuffer may return NULL
  149. when asking for a buffer of 0 (zero) bytes size
  150. #522 #523 docs: Fix return value docs for both
  151. XML_SetBillionLaughsAttackProtection* functions
  152. #525 #526 Version info bumped from 9:1:8 to 9:2:8;
  153. see https://verbump.de/ for what these numbers do
  154. Special thanks to:
  155. Dong-hee Na
  156. Joergen Ibsen
  157. Kai Pastor
  158. Release 2.4.1 Sun May 23 2021
  159. Bug fixes:
  160. #488 #490 Autotools: Fix installed header expat_config.h for multilib
  161. systems; regression introduced in 2.4.0 by pull request #486
  162. Other changes:
  163. #491 #492 Version info bumped from 9:0:8 to 9:1:8;
  164. see https://verbump.de/ for what these numbers do
  165. Special thanks to:
  166. Gentoo's QA check "multilib_check_headers"
  167. Release 2.4.0 Sun May 23 2021
  168. Security fixes:
  169. #34 #466 #484 CVE-2013-0340/CWE-776 -- Protect against billion laughs attacks
  170. (denial-of-service; flavors targeting CPU time or RAM or both,
  171. leveraging general entities or parameter entities or both)
  172. by tracking and limiting the input amplification factor
  173. (<amplification> := (<direct> + <indirect>) / <direct>).
  174. By conservative default, amplification up to a factor of 100.0
  175. is tolerated and rejection only starts after 8 MiB of output bytes
  176. (=<direct> + <indirect>) have been processed.
  177. The fix adds the following to the API:
  178. - A new error code XML_ERROR_AMPLIFICATION_LIMIT_BREACH to
  179. signals this specific condition.
  180. - Two new API functions ..
  181. - XML_SetBillionLaughsAttackProtectionMaximumAmplification and
  182. - XML_SetBillionLaughsAttackProtectionActivationThreshold
  183. .. to further tighten billion laughs protection parameters
  184. when desired. Please see file "doc/reference.html" for details.
  185. If you ever need to increase the defaults for non-attack XML
  186. payload, please file a bug report with libexpat.
  187. - Two new XML_FEATURE_* constants ..
  188. - that can be queried using the XML_GetFeatureList function, and
  189. - that are shown in "xmlwf -v" output.
  190. - Two new environment variable switches ..
  191. - EXPAT_ACCOUNTING_DEBUG=(0|1|2|3) and
  192. - EXPAT_ENTITY_DEBUG=(0|1)
  193. .. for runtime debugging of accounting and entity processing.
  194. Specific behavior of these values may change in the future.
  195. - Two new command line arguments "-a FACTOR" and "-b BYTES"
  196. for xmlwf to further tighten billion laughs protection
  197. parameters when desired.
  198. If you ever need to increase the defaults for non-attack XML
  199. payload, please file a bug report with libexpat.
  200. Bug fixes:
  201. #332 #470 For (non-default) compilation with -DEXPAT_MIN_SIZE=ON (CMake)
  202. or CPPFLAGS=-DXML_MIN_SIZE (GNU Autotools): Fix segfault
  203. for UTF-16 payloads containing CDATA sections.
  204. #485 #486 Autotools: Fix generated CMake files for non-64bit and
  205. non-Linux platforms (e.g. macOS and MinGW in particular)
  206. that were introduced with release 2.3.0
  207. Other changes:
  208. #468 #469 xmlwf: Improve help output and the xmlwf man page
  209. #463 xmlwf: Improve maintainability through some refactoring
  210. #477 xmlwf: Fix man page DocBook validity
  211. #458 #459 CMake: Support absolute paths for both CMAKE_INSTALL_LIBDIR
  212. and CMAKE_INSTALL_INCLUDEDIR
  213. #471 #481 CMake: Add support for standard variable BUILD_SHARED_LIBS
  214. #457 Unexpose symbol _INTERNAL_trim_to_complete_utf8_characters
  215. #467 Resolve macro HAVE_EXPAT_CONFIG_H
  216. #472 Delete unused legacy helper file "conftools/PrintPath"
  217. #473 #483 Improve attribution
  218. #464 #465 #477 doc/reference.html: Fix XHTML validity
  219. #475 #478 doc/reference.html: Replace the 90s look by OK.css
  220. #479 Version info bumped from 8:0:7 to 9:0:8
  221. due to addition of new symbols and error codes;
  222. see https://verbump.de/ for what these numbers do
  223. Infrastructure:
  224. #456 CI: Enable periodic runs
  225. #457 CI: Start covering the list of exported symbols
  226. #474 CI: Isolate coverage task
  227. #476 #482 CI: Adapt to breaking changes in image "ubuntu-18.04"
  228. #477 CI: Cover well-formedness and DocBook/XHTML validity
  229. of doc/reference.html and doc/xmlwf.xml
  230. Special thanks to:
  231. Dimitry Andric
  232. Eero Helenius
  233. Nick Wellnhofer
  234. Rhodri James
  235. Tomas Korbar
  236. Yury Gribov
  237. and
  238. Clang LeakSan
  239. JetBrains
  240. OSS-Fuzz
  241. Release 2.3.0 Thu March 25 2021
  242. Bug fixes:
  243. #438 When calling XML_ParseBuffer without a prior successful call to
  244. XML_GetBuffer as a user, no longer trigger undefined behavior
  245. (by adding an integer to a NULL pointer) but rather return
  246. XML_STATUS_ERROR and set the error code to (new) code
  247. XML_ERROR_NO_BUFFER. Found by UBSan (UndefinedBehaviorSanitizer)
  248. of Clang 11 (but not Clang 9).
  249. #444 xmlwf: Exit status 2 was used for both:
  250. - malformed input files (documented) and
  251. - invalid command-line arguments (undocumented).
  252. The case of invalid command-line arguments now
  253. has its own exit status 4, resolving the ambiguity.
  254. Other changes:
  255. #439 xmlwf: Add argument -k to allow continuing after
  256. non-fatal errors
  257. #439 xmlwf: Add section about exit status to the -h help output
  258. #422 #426 #447 Windows: Drop support for Visual Studio <=14.0/2015
  259. #434 Windows: CMake: Detect unsupported Visual Studio at
  260. configure time (rather than at compile time)
  261. #382 #428 testrunner: Make verbose mode (argument "-v") report
  262. about passed tests, and make default mode report about
  263. failures, as well.
  264. #442 CMake: Call "enable_language(CXX)" prior to tinkering
  265. with CMAKE_CXX_* variables
  266. #448 Document use of libexpat from a CMake-based project
  267. #451 Autotools: Install CMake files as generated by CMake 3.19.6
  268. so that users with "find_package(expat [..] CONFIG [..])"
  269. are served on distributions that are *not* using the CMake
  270. build system inside for libexpat packaging
  271. #436 #437 Autotools: Drop obsolescent macro AC_HEADER_STDC
  272. #450 #452 Autotools: Resolve use of obsolete macro AC_CONFIG_HEADER
  273. #441 Address compiler warnings
  274. #443 Version info bumped from 7:12:6 to 8:0:7
  275. due to addition of error code XML_ERROR_NO_BUFFER
  276. (see https://verbump.de/ for what these numbers do)
  277. Infrastructure:
  278. #435 #446 Replace Travis CI by GitHub Actions
  279. Special thanks to:
  280. Alexander Richardson
  281. Oleksandr Popovych
  282. Thomas Beutlich
  283. Tim Bray
  284. and
  285. Clang LeakSan, Clang 11 UBSan and the Clang team
  286. Release 2.2.10 Sat October 3 2020
  287. Bug fixes:
  288. #390 #395 #398 Fix undefined behavior during parsing caused by
  289. pointer arithmetic with NULL pointers
  290. #404 #405 Fix reading uninitialized variable during parsing
  291. #406 xmlwf: Add missing check for malloc NULL return
  292. Other changes:
  293. #396 Windows: Drop support for Visual Studio <=8.0/2005
  294. #409 Windows: Add missing file "Changes" to the installer
  295. to fix compilation with CMake from installed sources
  296. #403 xmlwf: Document exit codes in xmlwf manpage and
  297. exit with code 3 (rather than code 1) for output errors
  298. when used with "-d DIRECTORY"
  299. #356 #359 MinGW: Provide declaration of rand_s for mingwrt <5.3.0
  300. #383 #392 Autotools: Use -Werror while configure tests the compiler
  301. for supported compile flags to avoid false positives
  302. #383 #393 #394 Autotools: Improve handling of user (C|CPP|CXX|LD)FLAGS,
  303. e.g. ensure that they have the last word over flags added
  304. while running ./configure
  305. #360 CMake: Create libexpatw.{dll,so} and expatw.pc (with emphasis
  306. on suffix "w") with -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
  307. #360 CMake: Detect and deny unsupported build combinations
  308. involving -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
  309. #360 CMake: Install pre-compiled shipped xmlwf.1 manpage in case
  310. of -DEXPAT_BUILD_DOCS=OFF
  311. #375 #380 #419 CMake: Fix use of Expat by means of add_subdirectory
  312. #407 #408 CMake: Keep expat target name constant at "expat"
  313. (i.e. refrain from using the target name to control
  314. build artifact filenames)
  315. #385 CMake: Fix compilation with -DEXPAT_SHARED_LIBS=OFF for
  316. Windows
  317. CMake: Expose man page compilation as target "xmlwf-manpage"
  318. #413 #414 CMake: Introduce option EXPAT_BUILD_PKGCONFIG
  319. to control generation of pkg-config file "expat.pc"
  320. #424 CMake: Add minimalistic support for building binary packages
  321. with CMake target "package"; based on CPack
  322. #366 CMake: Add option -DEXPAT_OSSFUZZ_BUILD=(ON|OFF) with
  323. default OFF to build fuzzer code against OSS-Fuzz and
  324. related environment variable LIB_FUZZING_ENGINE
  325. #354 Fix testsuite for -DEXPAT_DTD=OFF and -DEXPAT_NS=OFF, each
  326. #354 #355 ..
  327. #356 #412 Address compiler warnings
  328. #368 #369 Address pngcheck warnings with doc/*.png images
  329. #425 Version info bumped from 7:11:6 to 7:12:6
  330. Special thanks to:
  331. asavah
  332. Ben Wagner
  333. Bhargava Shastry
  334. Frank Landgraf
  335. Jeffrey Walton
  336. Joe Orton
  337. Kleber Tarcísio
  338. Ma Lin
  339. Maciej Sroczyński
  340. Mohammed Khajapasha
  341. Vadim Zeitlin
  342. and
  343. Cppcheck 2.0 and the Cppcheck team
  344. Release 2.2.9 Wed September 25 2019
  345. Other changes:
  346. examples: Drop executable bits from elements.c
  347. #349 Windows: Change the name of the Windows DLLs from expat*.dll
  348. to libexpat*.dll once more (regression from 2.2.8, first
  349. fixed in 1.95.3, issue #61 on SourceForge today,
  350. was issue #432456 back then); needs a fix due
  351. case-insensitive file systems on Windows and the fact that
  352. Perl's XML::Parser::Expat compiles into Expat.dll.
  353. #347 Windows: Only define _CRT_RAND_S if not defined
  354. Version info bumped from 7:10:6 to 7:11:6
  355. Special thanks to:
  356. Ben Wagner
  357. Release 2.2.8 Fri September 13 2019
  358. Security fixes:
  359. #317 #318 CVE-2019-15903 -- Fix heap overflow triggered by
  360. XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber),
  361. and deny internal entities closing the doctype;
  362. fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43
  363. Bug fixes:
  364. #240 Fix cases where XML_StopParser did not have any effect
  365. when called from inside of an end element handler
  366. #341 xmlwf: Fix exit code for operation without "-d DIRECTORY";
  367. previously, only "-d DIRECTORY" would give you a proper
  368. exit code:
  369. # xmlwf -d . <<<'<not well-formed>' 2>/dev/null ; echo $?
  370. 2
  371. # xmlwf <<<'<not well-formed>' 2>/dev/null ; echo $?
  372. 0
  373. Now both cases return exit code 2.
  374. Other changes:
  375. #299 #302 Windows: Replace LoadLibrary hack to access
  376. unofficial API function SystemFunction036 (RtlGenRandom)
  377. by using official API function rand_s (needs WinXP+)
  378. #325 Windows: Drop support for Visual Studio <=7.1/2003
  379. and document supported compilers in README.md
  380. #286 Windows: Remove COM code from xmlwf; in case it turns
  381. out needed later, there will be a dedicated repository
  382. below https://github.com/libexpat/ for that code
  383. #322 Windows: Remove explicit MSVC solution and project files.
  384. You can generate Visual Studio solution files through
  385. CMake, e.g.: cmake -G"Visual Studio 15 2017" .
  386. #338 xmlwf: Make "xmlwf -h" help output more friendly
  387. #339 examples: Improve elements.c
  388. #244 #264 Autotools: Add argument --enable-xml-attr-info
  389. #239 #301 Autotools: Add arguments
  390. --with-getrandom
  391. --without-getrandom
  392. --with-sys-getrandom
  393. --without-sys-getrandom
  394. #312 #343 Autotools: Fix linking issues with "./configure LD=clang"
  395. Autotools: Fix "make run-xmltest" for out-of-source builds
  396. #329 #336 CMake: Pull all options from Expat <=2.2.7 into namespace
  397. prefix EXPAT_ with the exception of DOCBOOK_TO_MAN:
  398. - BUILD_doc -> EXPAT_BUILD_DOCS (plural)
  399. - BUILD_examples -> EXPAT_BUILD_EXAMPLES
  400. - BUILD_shared -> EXPAT_SHARED_LIBS
  401. - BUILD_tests -> EXPAT_BUILD_TESTS
  402. - BUILD_tools -> EXPAT_BUILD_TOOLS
  403. - DOCBOOK_TO_MAN -> DOCBOOK_TO_MAN (unchanged)
  404. - INSTALL -> EXPAT_ENABLE_INSTALL
  405. - MSVC_USE_STATIC_CRT -> EXPAT_MSVC_STATIC_CRT
  406. - USE_libbsd -> EXPAT_WITH_LIBBSD
  407. - WARNINGS_AS_ERRORS -> EXPAT_WARNINGS_AS_ERRORS
  408. - XML_CONTEXT_BYTES -> EXPAT_CONTEXT_BYTES
  409. - XML_DEV_URANDOM -> EXPAT_DEV_URANDOM
  410. - XML_DTD -> EXPAT_DTD
  411. - XML_NS -> EXPAT_NS
  412. - XML_UNICODE -> EXPAT_CHAR_TYPE=ushort (!)
  413. - XML_UNICODE_WCHAR_T -> EXPAT_CHAR_TYPE=wchar_t (!)
  414. #244 #264 CMake: Add argument -DEXPAT_ATTR_INFO=(ON|OFF),
  415. default OFF
  416. #326 CMake: Add argument -DEXPAT_LARGE_SIZE=(ON|OFF),
  417. default OFF
  418. #328 CMake: Add argument -DEXPAT_MIN_SIZE=(ON|OFF),
  419. default OFF
  420. #239 #277 CMake: Add arguments
  421. -DEXPAT_WITH_GETRANDOM=(ON|OFF|AUTO), default AUTO
  422. -DEXPAT_WITH_SYS_GETRANDOM=(ON|OFF|AUTO), default AUTO
  423. #326 CMake: Install expat_config.h to include directory
  424. #326 CMake: Generate and install configuration files for
  425. future find_package(expat [..] CONFIG [..])
  426. CMake: Now produces a summary of applied configuration
  427. CMake: Require C++ compiler only when tests are enabled
  428. #330 CMake: Fix compilation for 16bit character types,
  429. i.e. ex -DXML_UNICODE=ON (and ex -DXML_UNICODE_WCHAR_T=ON)
  430. #265 CMake: Fix linking with MinGW
  431. #330 CMake: Add full support for MinGW; to enable, use
  432. -DCMAKE_TOOLCHAIN_FILE=[expat]/cmake/mingw-toolchain.cmake
  433. #330 CMake: Port "make run-xmltest" from GNU Autotools to CMake
  434. #316 CMake: Windows: Make binary postfix match MSVC
  435. Old: expat[d].lib
  436. New: expat[w][d][MD|MT].lib
  437. CMake: Migrate files from Windows to Unix line endings
  438. #308 CMake: Integrate OSS-Fuzz fuzzers, option
  439. -DEXPAT_BUILD_FUZZERS=(ON|OFF), default OFF
  440. #14 Drop an OpenVMS support leftover
  441. #235 #268 ..
  442. #270 #310 ..
  443. #313 #331 #333 Address compiler warnings
  444. #282 #283 ..
  445. #284 #285 Address cppcheck warnings
  446. #294 #295 Address Clang Static Analyzer warnings
  447. #24 #293 Mass-apply clang-format 9 (and ensure conformance during CI)
  448. Version info bumped from 7:9:6 to 7:10:6
  449. Special thanks to:
  450. David Loffredo
  451. Joonun Jang
  452. Kishore Kunche
  453. Marco Maggi
  454. Mitch Phillips
  455. Mohammed Khajapasha
  456. Rolf Ade
  457. xantares
  458. Zhongyuan Zhou
  459. Release 2.2.7 Wed June 19 2019
  460. Security fixes:
  461. #186 #262 CVE-2018-20843 -- Fix extraction of namespace prefixes from
  462. XML names; XML names with multiple colons could end up in
  463. the wrong namespace, and take a high amount of RAM and CPU
  464. resources while processing, opening the door to
  465. use for denial-of-service attacks
  466. Other changes:
  467. #195 #197 Autotools/CMake: Utilize -fvisibility=hidden to stop
  468. exporting non-API symbols
  469. #227 Autotools: Add --without-examples and --without-tests
  470. #228 Autotools: Modernize configure.ac
  471. #245 #246 Autotools: Fix check for -fvisibility=hidden for Clang
  472. #247 #248 Autotools: Fix compilation for lack of docbook2x-man
  473. #236 #258 Autotools: Produce .tar.{gz,lz,xz} release archives
  474. #212 CMake: Make libdir of pkgconfig expat.pc support multilib
  475. #158 #263 CMake: Build man page in PROJECT_BINARY_DIR not _SOURCE_DIR
  476. #219 Remove fallback to bcopy, assume that memmove(3) exists
  477. #257 Use portable "/usr/bin/env bash" shebang (e.g. for OpenBSD)
  478. #243 Windows: Fix syntax of .def module definition files
  479. Version info bumped from 7:8:6 to 7:9:6
  480. Special thanks to:
  481. Benjamin Peterson
  482. Caolán McNamara
  483. Hanno Böck
  484. KangLin
  485. Kishore Kunche
  486. Marco Maggi
  487. Rhodri James
  488. Sebastian Dröge
  489. userwithuid
  490. Yury Gribov
  491. Release 2.2.6 Sun August 12 2018
  492. Bug fixes:
  493. #170 #206 Avoid doing arithmetic with NULL pointers in XML_GetBuffer
  494. #204 #205 Fix 2.2.5 regression with suspend-resume while parsing
  495. a document like '<root/>'
  496. Other changes:
  497. #165 #168 Autotools: Fix docbook-related configure syntax error
  498. #166 Autotools: Avoid grep option `-q` for Solaris
  499. #167 Autotools: Support
  500. ./configure DOCBOOK_TO_MAN="xmlto man --skip-validation"
  501. #159 #167 Autotools: Support DOCBOOK_TO_MAN command which produces
  502. xmlwf.1 rather than XMLWF.1; also covers case insensitive
  503. file systems
  504. #181 Autotools: Drop -rpath option passed to libtool
  505. #188 Autotools: Detect and deny SGML docbook2man as ours is XML
  506. #188 Autotools/CMake: Support command db2x_docbook2man as well
  507. #174 CMake: Introduce option WARNINGS_AS_ERRORS, defaults to OFF
  508. #184 #185 CMake: Introduce option MSVC_USE_STATIC_CRT, defaults to OFF
  509. #207 #208 CMake: Introduce option XML_UNICODE and XML_UNICODE_WCHAR_T,
  510. both defaulting to OFF
  511. #175 CMake: Prefer check_symbol_exists over check_function_exists
  512. #176 CMake: Create the same pkg-config file as with GNU Autotools
  513. #178 #179 CMake: Use GNUInstallDirs module to set proper defaults for
  514. install directories
  515. #208 CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM
  516. #180 Windows: Fix compilation of test suite for Visual Studio 2008
  517. #131 #173 #202 Address compiler warnings
  518. #187 #190 #200 Fix miscellaneous typos
  519. Version info bumped from 7:7:6 to 7:8:6
  520. Special thanks to:
  521. Anton Maklakov
  522. Benjamin Peterson
  523. Brad King
  524. Franek Korta
  525. Frank Rast
  526. Joe Orton
  527. luzpaz
  528. Pedro Vicente
  529. Rainer Jung
  530. Rhodri James
  531. Rolf Ade
  532. Rolf Eike Beer
  533. Thomas Beutlich
  534. Tomasz Kłoczko
  535. Release 2.2.5 Tue October 31 2017
  536. Bug fixes:
  537. #8 If the parser runs out of memory, make sure its internal
  538. state reflects the memory it actually has, not the memory
  539. it wanted to have.
  540. #11 The default handler wasn't being called when it should for
  541. a SYSTEM or PUBLIC doctype if an entity declaration handler
  542. was registered.
  543. #137 #138 Fix a case of mistakenly reported parsing success where
  544. XML_StopParser was called from an element handler
  545. #162 Function XML_ErrorString was returning NULL rather than
  546. a message for code XML_ERROR_INVALID_ARGUMENT
  547. introduced with release 2.2.1
  548. Other changes:
  549. #106 xmlwf: Add argument -N adding notation declarations
  550. #75 #106 Test suite: Resolve expected failure cases where xmlwf
  551. output was incomplete
  552. #127 Windows: Fix test suite compilation
  553. #126 #127 Windows: Fix compilation for Visual Studio 2012
  554. Windows: Upgrade shipped project files to Visual Studio 2017
  555. #33 #132 tests: Mass-fix compilation for XML_UNICODE_WCHAR_T
  556. #129 examples: Fix compilation for XML_UNICODE_WCHAR_T
  557. #130 benchmark: Fix compilation for XML_UNICODE_WCHAR_T
  558. #144 xmlwf: Fix compilation for XML_UNICODE_WCHAR_T; still needs
  559. Windows or MinGW for 2-byte wchar_t
  560. #9 Address two Clang Static Analyzer false positives
  561. #59 Resolve troublesome macros hiding parser struct membership
  562. and dereferencing that pointer
  563. #6 Resolve superfluous internal malloc/realloc switch
  564. #153 #155 Improve docbook2x-man detection
  565. #160 Undefine NDEBUG in the test suite (rather than rejecting it)
  566. #161 Address compiler warnings
  567. Version info bumped from 7:6:6 to 7:7:6
  568. Special thanks to:
  569. Benbuck Nason
  570. Hans Wennborg
  571. José Gutiérrez de la Concha
  572. Pedro Monreal Gonzalez
  573. Rhodri James
  574. Rolf Ade
  575. Stephen Groat
  576. and
  577. Core Infrastructure Initiative
  578. Release 2.2.4 Sat August 19 2017
  579. Bug fixes:
  580. #115 Fix copying of partial characters for UTF-8 input
  581. Other changes:
  582. #109 Fix "make check" for non-x86 architectures that default
  583. to unsigned type char (-128..127 rather than 0..255)
  584. #109 coverage.sh: Cover -funsigned-char
  585. Autotools: Introduce --without-xmlwf argument
  586. #65 Autotools: Replace handwritten Makefile with GNU Automake
  587. #43 CMake: Auto-detect high quality entropy extractors, add new
  588. option USE_libbsd=ON to use arc4random_buf of libbsd
  589. #74 CMake: Add -fno-strict-aliasing only where supported
  590. #114 CMake: Always honor manually set BUILD_* options
  591. #114 CMake: Compile man page if docbook2x-man is available, only
  592. #117 Include file tests/xmltest.log.expected in source tarball
  593. (required for "make run-xmltest")
  594. #117 Include (existing) Visual Studio 2013 files in source tarball
  595. Improve test suite error output
  596. #111 Fix some typos in documentation
  597. Version info bumped from 7:5:6 to 7:6:6
  598. Special thanks to:
  599. Jakub Wilk
  600. Joe Orton
  601. Lin Tian
  602. Rolf Eike Beer
  603. Release 2.2.3 Wed August 2 2017
  604. Security fixes:
  605. #82 CVE-2017-11742 -- Windows: Fix DLL hijacking vulnerability
  606. using Steve Holme's LoadLibrary wrapper for/of cURL
  607. Bug fixes:
  608. #85 Fix a dangling pointer issue related to realloc
  609. Other changes:
  610. Increase code coverage
  611. #91 Linux: Allow getrandom to fail if nonblocking pool has not
  612. yet been initialized and read /dev/urandom then, instead.
  613. This is in line with what recent Python does.
  614. #81 Pre-10.7/Lion macOS: Support entropy from arc4random
  615. #86 Check that a UTF-16 encoding in an XML declaration has the
  616. right endianness
  617. #4 #5 #7 Recover correctly when some reallocations fail
  618. Repair "./configure && make" for systems without any
  619. provider of high quality entropy
  620. and try reading /dev/urandom on those
  621. Ensure that user-defined character encodings have converter
  622. functions when they are needed
  623. Fix mis-leading description of argument -c in xmlwf.1
  624. Rely on macro HAVE_ARC4RANDOM_BUF (rather than __CloudABI__)
  625. for CloudABI
  626. #100 Fix use of SIPHASH_MAIN in siphash.h
  627. #23 Test suite: Fix memory leaks
  628. Version info bumped from 7:4:6 to 7:5:6
  629. Special thanks to:
  630. Chanho Park
  631. Joe Orton
  632. Pascal Cuoq
  633. Rhodri James
  634. Simon McVittie
  635. Vadim Zeitlin
  636. Viktor Szakats
  637. and
  638. Core Infrastructure Initiative
  639. Release 2.2.2 Wed July 12 2017
  640. Security fixes:
  641. #43 Protect against compilation without any source of high
  642. quality entropy enabled, e.g. with CMake build system;
  643. commit ff0207e6076e9828e536b8d9cd45c9c92069b895
  644. #60 Windows with _UNICODE:
  645. Unintended use of LoadLibraryW with a non-wide string
  646. resulted in failure to load advapi32.dll and degradation
  647. in quality of used entropy when compiled with _UNICODE for
  648. Windows; you can launch existing binaries with
  649. EXPAT_ENTROPY_DEBUG=1 in the environment to inspect the
  650. quality of entropy used during runtime; commits
  651. * 95b95032f907ef1cd17ee7a9a1768010a825d61d
  652. * 73a5a2e9c081f49f2d775cf7ced864158b68dc80
  653. [MOX-006] Fix non-NULL parser parameter validation in XML_Parse;
  654. resulted in NULL dereference, previously;
  655. commit ac256dafdffc9622ab0dc2c62fcecb0dfcfa71fe
  656. Bug fixes:
  657. #69 Fix improper use of unsigned long long integer literals
  658. Other changes:
  659. #73 Start requiring a C99 compiler
  660. #49 Fix "==" Bashism in configure script
  661. #50 Fix too eager getrandom detection for Debian GNU/kFreeBSD
  662. #52 and macOS
  663. #51 Address lack of stdint.h in Visual Studio 2003 to 2008
  664. #58 Address compile warnings
  665. #68 Fix "./buildconf.sh && ./configure" for some versions
  666. of Dash for /bin/sh
  667. #72 CMake: Ease use of Expat in context of a parent project
  668. with multiple CMakeLists.txt files
  669. #72 CMake: Resolve mistaken executable permissions
  670. #76 Address compile warning with -DNDEBUG (not recommended!)
  671. #77 Address compile warning about macro redefinition
  672. Special thanks to:
  673. Alexander Bluhm
  674. Ben Boeckel
  675. Cătălin Răceanu
  676. Kerin Millar
  677. László Böszörményi
  678. S. P. Zeidler
  679. Segev Finer
  680. Václav Slavík
  681. Victor Stinner
  682. Viktor Szakats
  683. and
  684. Radically Open Security
  685. Release 2.2.1 Sat June 17 2017
  686. Security fixes:
  687. CVE-2017-9233 -- External entity infinite loop DoS
  688. Details: https://libexpat.github.io/doc/cve-2017-9233/
  689. Commit c4bf96bb51dd2a1b0e185374362ee136fe2c9d7f
  690. [MOX-002] CVE-2016-9063 -- Detect integer overflow; commit
  691. d4f735b88d9932bd5039df2335eefdd0723dbe20
  692. (Fixed version of existing downstream patches!)
  693. (SF.net) #539 Fix regression from fix to CVE-2016-0718 cutting off
  694. longer tag names; commits
  695. * 896b6c1fd3b842f377d1b62135dccf0a579cf65d
  696. * af507cef2c93cb8d40062a0abe43a4f4e9158fb2
  697. #16 * 0dbbf43fdb20f593ddf4fa1ff67288000dd4a7fd
  698. #25 More integer overflow detection (function poolGrow); commits
  699. * 810b74e4703dcfdd8f404e3cb177d44684775143
  700. * 44178553f3539ce69d34abee77a05e879a7982ac
  701. [MOX-002] Detect overflow from len=INT_MAX call to XML_Parse; commits
  702. * 4be2cb5afcc018d996f34bbbce6374b7befad47f
  703. * 7e5b71b748491b6e459e5c9a1d090820f94544d8
  704. [MOX-005] #30 Use high quality entropy for hash initialization:
  705. * arc4random_buf on BSD, systems with libbsd
  706. (when configured with --with-libbsd), CloudABI
  707. * RtlGenRandom on Windows XP / Server 2003 and later
  708. * getrandom on Linux 3.17+
  709. In a way, that's still part of CVE-2016-5300.
  710. https://github.com/libexpat/libexpat/pull/30/commits
  711. [MOX-005] For the low quality entropy extraction fallback code,
  712. the parser instance address can no longer leak, commit
  713. 04ad658bd3079dd15cb60fc67087900f0ff4b083
  714. [MOX-003] Prevent use of uninitialised variable; commit
  715. [MOX-004] a4dc944f37b664a3ca7199c624a98ee37babdb4b
  716. Add missing parameter validation to public API functions
  717. and dedicated error code XML_ERROR_INVALID_ARGUMENT:
  718. [MOX-006] * NULL checks; commits
  719. * d37f74b2b7149a3a95a680c4c4cd2a451a51d60a (merge/many)
  720. * 9ed727064b675b7180c98cb3d4f75efba6966681
  721. * 6a747c837c50114dfa413994e07c0ba477be4534
  722. * Negative length (XML_Parse); commit
  723. [MOX-002] 70db8d2538a10f4c022655d6895e4c3e78692e7f
  724. [MOX-001] #35 Change hash algorithm to William Ahern's version of SipHash
  725. to go further with fixing CVE-2012-0876.
  726. https://github.com/libexpat/libexpat/pull/39/commits
  727. Bug fixes:
  728. #32 Fix sharing of hash salt across parsers;
  729. relevant where XML_ExternalEntityParserCreate is called
  730. prior to XML_Parse, in particular (e.g. FBReader)
  731. #28 xmlwf: Auto-disable use of memory-mapping (and parsing
  732. as a single chunk) for files larger than ~1 GB (2^30 bytes)
  733. rather than failing with error "out of memory"
  734. #3 Fix double free after malloc failure in DTD code; commit
  735. 7ae9c3d3af433cd4defe95234eae7dc8ed15637f
  736. #17 Fix memory leak on parser error for unbound XML attribute
  737. prefix with new namespaces defined in the same tag;
  738. found by Google's OSS-Fuzz; commits
  739. * 16f87daae5a16132e479e4f71862128c7a915c73
  740. * b47dbc9745932c160893d433220e462bd605f8cd
  741. xmlwf on Windows: Add missing calls to CloseHandle
  742. New features:
  743. #30 Introduced environment switch EXPAT_ENTROPY_DEBUG=1
  744. for runtime debugging of entropy extraction
  745. Other changes:
  746. Increase code coverage
  747. #33 Reject use of XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2;
  748. XML_UNICODE_WCHAR_T was never meant to be used outside
  749. of Windows; 4-byte wchar_t is common on Linux
  750. (SF.net) #538 Start using -fno-strict-aliasing
  751. (SF.net) #540 Support compilation against cloudlibc of CloudABI
  752. Allow MinGW cross-compilation
  753. (SF.net) #534 CMake: Introduce option "BUILD_doc" (enabled by default)
  754. to bypass compilation of the xmlwf.1 man page
  755. (SF.net) pr2 CMake: Introduce option "INSTALL" (enabled by default)
  756. to bypass installation of expat files
  757. CMake: Fix ninja support
  758. Autotools: Add parameters --enable-xml-context [COUNT]
  759. and --disable-xml-context; default of context of 1024
  760. bytes enabled unchanged
  761. #14 Drop AmigaOS 4.x code and includes
  762. #14 Drop ancient build systems:
  763. * Borland C++ Builder
  764. * OpenVMS
  765. * Open Watcom
  766. * Visual Studio 6.0
  767. * Pre-X Mac OS (MPW Makefile)
  768. If you happen to rely on some of these, please get in
  769. touch for joining with maintenance.
  770. #10 Move from WIN32 to _WIN32
  771. #13 Fix "make run-xmltest" order instability
  772. Address compile warnings
  773. Bump version info from 7:2:6 to 7:3:6
  774. Add AUTHORS file
  775. Infrastructure:
  776. #1 Migrate from SourceForge to GitHub (except downloads):
  777. https://github.com/libexpat/
  778. #1 Re-create http://libexpat.org/ project website
  779. Start utilizing Travis CI
  780. Special thanks to:
  781. Andy Wang
  782. Don Lewis
  783. Ed Schouten
  784. Karl Waclawek
  785. Pascal Cuoq
  786. Rhodri James
  787. Sergei Nikulov
  788. Tobias Taschner
  789. Viktor Szakats
  790. and
  791. Core Infrastructure Initiative
  792. Mozilla Foundation (MOSS Track 3: Secure Open Source)
  793. Radically Open Security
  794. Release 2.2.0 Tue June 21 2016
  795. Security fixes:
  796. #537 CVE-2016-0718 -- Fix crash on malformed input
  797. CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 /
  798. CVE-2015-2716 introduced with Expat 2.1.1
  799. #499 CVE-2016-5300 -- Use more entropy for hash initialization
  800. than the original fix to CVE-2012-0876
  801. #519 CVE-2012-6702 -- Resolve troublesome internal call to srand
  802. that was introduced with Expat 2.1.0
  803. when addressing CVE-2012-0876 (issue #496)
  804. Bug fixes:
  805. Fix uninitialized reads of size 1
  806. (e.g. in little2_updatePosition)
  807. Fix detection of UTF-8 character boundaries
  808. Other changes:
  809. #532 Fix compilation for Visual Studio 2010 (keyword "C99")
  810. Autotools: Resolve use of "$<" to better support bmake
  811. Autotools: Add QA script "qa.sh" (and make target "qa")
  812. Autotools: Respect CXXFLAGS if given
  813. Autotools: Fix "make run-xmltest"
  814. Autotools: Have "make run-xmltest" check for expected output
  815. p90 CMake: Fix static build (BUILD_shared=OFF) on Windows
  816. #536 CMake: Add soversion, support -DNO_SONAME=yes to bypass
  817. #323 CMake: Add suffix "d" to differentiate debug from release
  818. CMake: Define WIN32 with CMake on Windows
  819. Annotate memory allocators for GCC
  820. Address all currently known compile warnings
  821. Make sure that API symbols remain visible despite
  822. -fvisibility=hidden
  823. Remove executable flag from source files
  824. Resolve COMPILED_FROM_DSP in favor of WIN32
  825. Special thanks to:
  826. Björn Lindahl
  827. Christian Heimes
  828. Cristian Rodríguez
  829. Daniel Krügler
  830. Gustavo Grieco
  831. Karl Waclawek
  832. László Böszörményi
  833. Marco Grassi
  834. Pascal Cuoq
  835. Sergei Nikulov
  836. Thomas Beutlich
  837. Warren Young
  838. Yann Droneaud
  839. Release 2.1.1 Sat March 12 2016
  840. Security fixes:
  841. #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer
  842. Bug fixes:
  843. #502: Fix potential null pointer dereference
  844. #520: Symbol XML_SetHashSalt was not exported
  845. Output of "xmlwf -h" was incomplete
  846. Other changes:
  847. #503: Document behavior of calling XML_SetHashSalt with salt 0
  848. Minor improvements to man page xmlwf(1)
  849. Improvements to the experimental CMake build system
  850. libtool now invoked with --verbose
  851. Release 2.1.0 Sat March 24 2012
  852. - Security fixes:
  853. #2958794: CVE-2012-1148 - Memory leak in poolGrow.
  854. #2895533: CVE-2012-1147 - Resource leak in readfilemap.c.
  855. #3496608: CVE-2012-0876 - Hash DOS attack.
  856. #2894085: CVE-2009-3560 - Buffer over-read and crash in big2_toUtf8().
  857. #1990430: CVE-2009-3720 - Parser crash with special UTF-8 sequences.
  858. - Bug Fixes:
  859. #1742315: Harmful XML_ParserCreateNS suggestion.
  860. #1785430: Expat build fails on linux-amd64 with gcc version>=4.1 -O3.
  861. #1983953, 2517952, 2517962, 2649838:
  862. Build modifications using autoreconf instead of buildconf.sh.
  863. #2815947, #2884086: OBJEXT and EXEEXT support while building.
  864. #2517938: xmlwf should return non-zero exit status if not well-formed.
  865. #2517946: Wrong statement about XMLDecl in xmlwf.1 and xmlwf.sgml.
  866. #2855609: Dangling positionPtr after error.
  867. #2990652: CMake support.
  868. #3010819: UNEXPECTED_STATE with a trailing "%" in entity value.
  869. #3206497: Uninitialized memory returned from XML_Parse.
  870. #3287849: make check fails on mingw-w64.
  871. - Patches:
  872. #1749198: pkg-config support.
  873. #3010222: Fix for bug #3010819.
  874. #3312568: CMake support.
  875. #3446384: Report byte offsets for attr names and values.
  876. - New Features / API changes:
  877. Added new API member XML_SetHashSalt() that allows setting an initial
  878. value (salt) for hash calculations. This is part of the fix for
  879. bug #3496608 to randomize hash parameters.
  880. When compiled with XML_ATTR_INFO defined, adds new API member
  881. XML_GetAttributeInfo() that allows retrieving the byte
  882. offsets for attribute names and values (patch #3446384).
  883. Added CMake build system.
  884. See bug #2990652 and patch #3312568.
  885. Added run-benchmark target to Makefile.in - relies on testdata module
  886. present in the same relative location as in the repository.
  887. Release 2.0.1 Tue June 5 2007
  888. - Fixed bugs #1515266, #1515600: The character data handler's calling
  889. of XML_StopParser() was not handled properly; if the parser was
  890. stopped and the handler set to NULL, the parser would segfault.
  891. - Fixed bug #1690883: Expat failed on EBCDIC systems as it assumed
  892. some character constants to be ASCII encoded.
  893. - Minor cleanups of the test harness.
  894. - Fixed xmlwf bug #1513566: "out of memory" error on file size zero.
  895. - Fixed outline.c bug #1543233: missing a final XML_ParserFree() call.
  896. - Fixes and improvements for Windows platform:
  897. bugs #1409451, #1476160, #1548182, #1602769, #1717322.
  898. - Build fixes for various platforms:
  899. HP-UX, Tru64, Solaris 9: patch #1437840, bug #1196180.
  900. All Unix: #1554618 (refreshed config.sub/config.guess).
  901. #1490371, #1613457: support both, DESTDIR and INSTALL_ROOT,
  902. without relying on GNU-Make specific features.
  903. #1647805: Patched configure.in to work better with Intel compiler.
  904. - Fixes to Makefile.in to have make check work correctly:
  905. bugs #1408143, #1535603, #1536684.
  906. - Added Open Watcom support: patch #1523242.
  907. Release 2.0.0 Wed Jan 11 2006
  908. - We no longer use the "check" library for C unit testing; we
  909. always use the (partial) internal implementation of the API.
  910. - Report XML_NS setting via XML_GetFeatureList().
  911. - Fixed headers for use from C++.
  912. - XML_GetCurrentLineNumber() and XML_GetCurrentColumnNumber()
  913. now return unsigned integers.
  914. - Added XML_LARGE_SIZE switch to enable 64-bit integers for
  915. byte indexes and line/column numbers.
  916. - Updated to use libtool 1.5.22 (the most recent).
  917. - Added support for AmigaOS.
  918. - Some mostly minor bug fixes. SF issues include: #1006708,
  919. #1021776, #1023646, #1114960, #1156398, #1221160, #1271642.
  920. Release 1.95.8 Fri Jul 23 2004
  921. - Major new feature: suspend/resume. Handlers can now request
  922. that a parse be suspended for later resumption or aborted
  923. altogether. See "Temporarily Stopping Parsing" in the
  924. documentation for more details.
  925. - Some mostly minor bug fixes, but compilation should no
  926. longer generate warnings on most platforms. SF issues
  927. include: #827319, #840173, #846309, #888329, #896188, #923913,
  928. #928113, #961698, #985192.
  929. Release 1.95.7 Mon Oct 20 2003
  930. - Fixed enum XML_Status issue (reported on SourceForge many
  931. times), so compilers that are properly picky will be happy.
  932. - Introduced an XMLCALL macro to control the calling
  933. convention used by the Expat API; this macro should be used
  934. to annotate prototypes and definitions of callback
  935. implementations in code compiled with a calling convention
  936. other than the default convention for the host platform.
  937. - Improved ability to build without the configure-generated
  938. expat_config.h header. This is useful for applications
  939. which embed Expat rather than linking in the library.
  940. - Fixed a variety of bugs: see SF issues #458907, #609603,
  941. #676844, #679754, #692878, #692964, #695401, #699323, #699487,
  942. #820946.
  943. - Improved hash table lookups.
  944. - Added more regression tests and improved documentation.
  945. Release 1.95.6 Tue Jan 28 2003
  946. - Added XML_FreeContentModel().
  947. - Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
  948. - Fixed a variety of bugs: see SF issues #615606, #616863,
  949. #618199, #653180, #673791.
  950. - Enhanced the regression test suite.
  951. - Man page improvements: includes SF issue #632146.
  952. Release 1.95.5 Fri Sep 6 2002
  953. - Added XML_UseForeignDTD() for improved SAX2 support.
  954. - Added XML_GetFeatureList().
  955. - Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
  956. - Use an incomplete struct instead of a void* for the parser
  957. (may not retain).
  958. - Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
  959. - Finally fixed bug where default handler would report DTD
  960. events that were already handled by another handler.
  961. Initial patch contributed by Darryl Miles.
  962. - Removed unnecessary DllMain() function that caused static
  963. linking into a DLL to be difficult.
  964. - Added VC++ projects for building static libraries.
  965. - Reduced line-length for all source code and headers to be
  966. no longer than 80 characters, to help with AS/400 support.
  967. - Reduced memory copying during parsing (SF patch #600964).
  968. - Fixed a variety of bugs: see SF issues #580793, #434664,
  969. #483514, #580503, #581069, #584041, #584183, #584832, #585537,
  970. #596555, #596678, #598352, #598944, #599715, #600479, #600971.
  971. Release 1.95.4 Fri Jul 12 2002
  972. - Added support for VMS, contributed by Craig Berry. See
  973. vms/README.vms for more information.
  974. - Added Mac OS (classic) support, with a makefile for MPW,
  975. contributed by Thomas Wegner and Daryle Walker.
  976. - Added Borland C++ Builder 5 / BCC 5.5 support, contributed
  977. by Patrick McConnell (SF patch #538032).
  978. - Fixed a variety of bugs: see SF issues #441449, #563184,
  979. #564342, #566334, #566901, #569461, #570263, #575168, #579196.
  980. - Made skippedEntityHandler conform to SAX2 (see source comment)
  981. - Re-implemented WFC: Entity Declared from XML 1.0 spec and
  982. added a new error "entity declared in parameter entity":
  983. see SF bug report #569461 and SF patch #578161
  984. - Re-implemented section 5.1 from XML 1.0 spec:
  985. see SF bug report #570263 and SF patch #578161
  986. Release 1.95.3 Mon Jun 3 2002
  987. - Added a project to the MSVC workspace to create a wchar_t
  988. version of the library; the DLLs are named libexpatw.dll.
  989. - Changed the name of the Windows DLLs from expat.dll to
  990. libexpat.dll; this fixes SF bug #432456.
  991. - Added the XML_ParserReset() API function.
  992. - Fixed XML_SetReturnNSTriplet() to work for element names.
  993. - Made the XML_UNICODE builds usable (thanks, Karl!).
  994. - Allow xmlwf to read from standard input.
  995. - Install a man page for xmlwf on Unix systems.
  996. - Fixed many bugs; see SF bug reports #231864, #461380, #464837,
  997. #466885, #469226, #477667, #484419, #487840, #494749, #496505,
  998. #547350. Other bugs which we can't test as easily may also
  999. have been fixed, especially in the area of build support.
  1000. Release 1.95.2 Fri Jul 27 2001
  1001. - More changes to make MSVC happy with the build; add a single
  1002. workspace to support both the library and xmlwf application.
  1003. - Added a Windows installer for Windows users; includes
  1004. xmlwf.exe.
  1005. - Added compile-time constants that can be used to determine the
  1006. Expat version
  1007. - Removed a lot of GNU-specific dependencies to aide portability
  1008. among the various Unix flavors.
  1009. - Fix the UTF-8 BOM bug.
  1010. - Cleaned up warning messages for several compilers.
  1011. - Added the -Wall, -Wstrict-prototypes options for GCC.
  1012. Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
  1013. - Changes to get expat to build under Microsoft compiler
  1014. - Removed all aborts and instead return an UNEXPECTED_STATE error.
  1015. - Fixed a bug where a stray '%' in an entity value would cause an
  1016. abort.
  1017. - Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
  1018. finding this oversight.
  1019. - Changed default patterns in lib/Makefile.in to fit non-GNU makes
  1020. Thanks to [email protected] for reporting and providing an
  1021. account to test on.
  1022. - The reference had the wrong label for XML_SetStartNamespaceDecl.
  1023. Reported by an anonymous user.
  1024. Release 1.95.0 Fri Sep 29 2000
  1025. - XML_ParserCreate_MM
  1026. Allows you to set a memory management suite to replace the
  1027. standard malloc,realloc, and free.
  1028. - XML_SetReturnNSTriplet
  1029. If you turn this feature on when namespace processing is in
  1030. effect, then qualified, prefixed element and attribute names
  1031. are returned as "uri|name|prefix" where '|' is whatever
  1032. separator character is used in namespace processing.
  1033. - Merged in features from perl-expat
  1034. o XML_SetElementDeclHandler
  1035. o XML_SetAttlistDeclHandler
  1036. o XML_SetXmlDeclHandler
  1037. o XML_SetEntityDeclHandler
  1038. o StartDoctypeDeclHandler takes 3 additional parameters:
  1039. sysid, pubid, has_internal_subset
  1040. o Many paired handler setters (like XML_SetElementHandler)
  1041. now have corresponding individual handler setters
  1042. o XML_GetInputContext for getting the input context of
  1043. the current parse position.
  1044. - Added reference material
  1045. - Packaged into a distribution that builds a sharable library