@crossbind/port-expat-wasi 2.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2163 @@
1
+ __ __ _
2
+ ___\ \/ /_ __ __ _| |_
3
+ / _ \\ /| '_ \ / _` | __|
4
+ | __// \| |_) | (_| | |_
5
+ \___/_/\_\ .__/ \__,_|\__|
6
+ |_| XML parser
7
+
8
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9
+ !! <blink>Expat has UNFIXED SECURITY ISSUES!</blink> !!
10
+ !! Please see https://github.com/libexpat/libexpat/issues/1160 for details. !!
11
+ !! !!
12
+ !! Starting 2026-08-01, for up to six months my work maintaining libexpat !!
13
+ !! will be funded by the City of Munich as part of their !!
14
+ !! Open Source Sabbatical (https://opensource.muenchen.de/sabbatical.html) !!
15
+ !! — thank you! !!
16
+ !! Sebastian Pipping -- Berlin, 2026-08-03 !!
17
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18
+
19
+ Release 2.8.3 Mon August 10 2026
20
+ Security fixes:
21
+ #1296 CVE-2026-72522 -- Fix an out-of-bounds read and the resulting
22
+ infinite loop caused by treating low surrogates (Unicode)
23
+ the same as high surrogates in functions *_toUtf16.
24
+ Needs Expat compiled with 16bit character support
25
+ (e.g. with Firefox and/or on Windows) to be affected.
26
+ Upstream CVSS 3.1 vector:
27
+ AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS score: 7.5)
28
+ (Note the "AV:N" for network/remote, the "AV:L" in NVD by
29
+ Mitre is mistaken.)
30
+ Original bug report from Mozilla at:
31
+ https://bugzilla.mozilla.org/show_bug.cgi?id=2053153
32
+
33
+ Bug fixes:
34
+ #1297 #1300 lib: Fix support for 2+ GiB documents (regression from 2.8.2)
35
+ #1286 lib: Reject empty version in the XML declaration
36
+ #1305 #1306 lib: Fix printf format for AIX
37
+
38
+ Other changes:
39
+ #1309 CMake|AIX: Enable EXPAT_DEV_URANDOM by default for AIX
40
+ #1295 CMake|Windows: Add a 64bit MinGW toolchain file
41
+ #1287 #1289 CMake|Windows: Start invoking MSVC with /source-charset:utf-8
42
+ #1289 CMake|Windows: Start requiring MSVC 2015 Update 2 or later
43
+ #1300 Document the current wrap-around issues with functions
44
+ - XML_GetCurrentByteIndex
45
+ - XML_GetCurrentColumnNumber
46
+ - XML_GetCurrentLineNumber
47
+ - XML_GetAttributeInfo
48
+ explicitly.
49
+ #1303 Address Clang Static Analyzer 22 warning
50
+ `core.NullPointerArithm`
51
+ #1313 #1314 Version info bumped from 13:2:12 (libexpat*.so.1.12.2)
52
+ to 13:3:12 (libexpat*.so.1.12.3); see https://verbump.de/
53
+ for what these numbers do
54
+
55
+ Infrastructure:
56
+ #1311 CI: Limit workflow runtime and package installation runtime
57
+ #1310 CI: Pin Cppcheck version for a robust CI
58
+ #1310 CI: Migrate Cppcheck CI from macOS to Linux
59
+ #1312 CI: Get CFLAGS and CXXFLAGS back in sync for both Emscripten
60
+ and WASI SDK
61
+ #1304 CI: Activate AddressSanitizer for MSVC Windows CI
62
+ #1308 CI: Introduce zizmor static analysis for GitHub Actions
63
+ #1308 CI: Start using `persist-credentials: false` with Git checkout
64
+ #1219 CI: Add a 7 day cooldown to Dependabot for GitHub Actions
65
+ #1302 #1303 CI: Bump Clang from 21 to 22
66
+ #1293 #1294 Update project status for 2026-08
67
+ #1301 #1307 Add SPDX license identifiers to the source code
68
+
69
+ Special thanks to:
70
+ Evgeny Kotkov
71
+ Henri Sivonen
72
+ Kartik Kenchi
73
+ Matthew Fernandez
74
+ Matthew Wozniczka
75
+ Stan Ulbrych
76
+ Tuukka Pasanen
77
+ William Woodruff
78
+ and
79
+ Anthropic
80
+ City of Munich Open Source Sabbatical
81
+ Mozilla Security Team
82
+ Subversion
83
+ zizmor static analysis
84
+
85
+ Release 2.8.2 Thu June 25 2026
86
+ Security fixes:
87
+ #1246 CVE-2026-50219 -- Disallow calls to functions
88
+ `XML_GetBuffer`, `XML_Parse`, `XML_ParseBuffer`,
89
+ `XML_ParserFree`, `XML_ParserReset` to guard e.g.
90
+ Expat bindings from memory corruption;
91
+ this CPython issue is related:
92
+ https://github.com/python/cpython/issues/146169
93
+ #1267 CVE-2026-56131 -- Protect XML_ResumeParser from being called
94
+ from a handler, plugging a hole in the fix
95
+ to CVE-2026-50219
96
+ #1272 CVE-2026-56132 -- Fix out-of-bound scaffolding index store
97
+ in `doProlog`
98
+ #1229 #1232 CVE-2026-56403 -- Integer overflow in `storeAtts`
99
+ #1249 CVE-2026-56404 -- Integer overflow in `addBinding`
100
+ #1251 CVE-2026-56405 -- Integer overflow in `getAttributeId`
101
+ #1255 CVE-2026-56406 -- Integer overflow in `XML_ParseBuffer`
102
+ #1262 CVE-2026-56407 -- Integer overflow in `textLen` handling
103
+ #565 CVE-2026-56408 -- Integer overflow in `copyString`
104
+ (commit 16e2efd867ea8567ffa012210b52ef5918e20817)
105
+ #1259 CVE-2026-56409 -- xmlwf: Integer overflow in output path join
106
+ #1252 CVE-2026-56410 -- xmlwf: Integer overflow in
107
+ `resolveSystemId`
108
+ #1263 CVE-2026-56411 -- xmlwf: Integer overflow in notation list
109
+ allocation
110
+ #1278 CVE-2026-56412 -- Guard XML_TOK_DATA_CHARS handler calls in
111
+ `doCdataSection`, plugging a hole in the fix to
112
+ CVE-2026-50219
113
+
114
+ Bug fixes:
115
+ #1260 xmlwf: Escape names and base URI in meta output
116
+ #1266 xmlwf: Pick a safe quote for notation system and public IDs
117
+
118
+ Other changes:
119
+ #1257 CMake|Autotools: Stop using /dev/urandom by default
120
+ #1244 #1254 CMake: Fix guard for Unix sources of entropy
121
+ #1183 #1270 CMake|Windows: Add missing export for symbol
122
+ `XML_SetHashSalt16Bytes`
123
+ #1236 CMake: Mark option EXPAT_OSSFUZZ_BUILD as advanced
124
+ #1283 Limit output indentation for EXPAT_ENTITY_DEBUG=1 and
125
+ allow unlimited indentation via EXPAT_ENTITY_DEBUG=2
126
+ #565 Replace some loops by use of `memcpy`, `strlen`, `wcslen`
127
+ #1220 lib: Use a size_t for group sizes
128
+ #1221 lib: Fix too-conservative integer overflow check when
129
+ appending raw name
130
+ #1222 lib: Simplify attribute allocation/management logic
131
+ #1224 Update fallthrough annotations to satisfy Clang and GCC
132
+ #1226 lib: Remove unnecessary void * casts in random code
133
+ #1228 lib: Reduce scope of locals in storeAtts
134
+ #1230 lib: Count attributes with size_t variables
135
+ #1238 Minor get-buffer improvements
136
+ #1239 #1240 lib|tests: Include header expat_config.h first
137
+ #1241 lib: Shrink size of XML_GetBuffer
138
+ #1242 lib: Remove a legacy comment
139
+ #1243 lib: XML_ParserReset: Extract repeated linked-list move logic
140
+ #1243 lib: Unify entity free lists
141
+ #1247 lib: Fix use of '0' as boolean literal
142
+ #1248 lib: Make XML_Index overflow check more intuitive
143
+ #1256 lib: Use size_t for counting string/URI lengths
144
+ #1258 lib: XML_GetInputContext: Remove use of 0 for NULL
145
+ #1261 Comment typo fixes
146
+ #1275 Teach Memory Sanitizer semantics of randomization functions
147
+ #1276 #1281 Version info bumped from 13:1:12 (libexpat*.so.1.12.1)
148
+ to 13:2:12 (libexpat*.so.1.12.2); see https://verbump.de/
149
+ for what these numbers do
150
+
151
+ Infrastructure:
152
+ #1231 perl-integration.yml: Bump to XML::Parser 2.59
153
+ #1237 emscripten.yml: Bump from Ubuntu 22.04 to 24.04
154
+ #1183 #1271 windows-build.yml: Cover completeness of file
155
+ libexpat.def.cmake
156
+ #1274 linux.yml: Make llvm-symbolizer available in CI
157
+
158
+ Special thanks to:
159
+ Alessandro Gario
160
+ Asher Darden
161
+ Christoph Reiter
162
+ Haris Hussain
163
+ Matthew Fernandez
164
+ Kartik Kenchi
165
+ Nick Begg
166
+ Sajin S
167
+ Yousef Shanableh
168
+ and
169
+ Anthropic
170
+ Astra Security
171
+ Trail of Bits
172
+
173
+ Release 2.8.1 Sun May 10 2026
174
+ Security fixes:
175
+ #1216 CVE-2026-45186 -- Fix quadratic runtime from attribute name
176
+ collision checks that allowed denial of service attacks
177
+ through moderately sized crafted XML input (CWE-407).
178
+ Please note that a layer of compression around XML can
179
+ significantly reduce the minimum attack payload size.
180
+ Upstream CVSS 3.1 vector:
181
+ AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS score: 7.5)
182
+ (Note the "AV:N" for network/remote and the "AC:L"
183
+ for low complexity; the NVD entry from Mitre is mistaken.)
184
+
185
+ Other changes:
186
+ #1209 #1213 Drop more casts related to `void *` that C99 does not need
187
+ #1213 xmlwf: Streamline use of `mmap`
188
+ #1214 #1217 Version info bumped from 13:0:12 (libexpat*.so.1.12.0)
189
+ to 13:1:12 (libexpat*.so.1.12.1); see https://verbump.de/
190
+ for what these numbers do
191
+
192
+ Infrastructure:
193
+ #1210 CI: Cover compilation with Visual Studio 18 2026 on Windows
194
+ #1215 CI: Cover compilation for ARM64 on Windows
195
+ #1212 CI: Bump WASI SDK from 32 to 33
196
+
197
+ Special thanks to:
198
+ Berkay Eren Ürün
199
+ Matthew Fernandez
200
+ Nick Wellnhofer
201
+ Tania Somanna
202
+
203
+ Release 2.8.0 Fri April 24 2026
204
+ Security fixes:
205
+ #47 #1183 CVE-2026-41080 -- The existing hash flooding protection
206
+ (based on SipHash) only used 4 to 8 bytes of entropy for
207
+ a salt, when 16 bytes of salt are supported by the
208
+ implementation of SipHash used by Expat. Now full 16 bytes
209
+ of entropy are used to improve protection against hash
210
+ flooding attacks.
211
+ Existing API function XML_SetHashSalt is now deprecated
212
+ because of its limitations, and its use should be
213
+ considered a vulnerability. Please either use the new API
214
+ function XML_SetHashSalt16Bytes (with known-high-quality
215
+ entropy input only!) instead, or leave the derivation of
216
+ a 16-bytes hash salt from high quality entropy to Expat's
217
+ internal machinery (by *not* calling either of the two
218
+ XML_SetHashSalt* functions).
219
+
220
+ Bug fixes:
221
+ #1188 Avoid propagating /dev/urandom file descriptor to child
222
+ processes
223
+ #1193 Fix interpretation of `errno` after randomization calls
224
+ #1195 Avoid assuming uint8_t is a character type
225
+
226
+ Other changes:
227
+ #1180 #1199 Add support for `getentropy(3)` as a source of entropy;
228
+ this helps with protecting against hash flooding attacks,
229
+ in particular with WASI SDK (where none of the other
230
+ entropy sources supported by libexpat are available).
231
+ #1200 Autotools: Add `--without-arc4random` and
232
+ `--without-arc4random-buf`
233
+ #1200 Autotools: Make `./configure` output report on available
234
+ high quality entropy sources
235
+ #1173 Autotools|macOS: Sync CMake templates with CMake 4.3.0
236
+ #1201 Autotools|CMake: Improve checks for `arc4random` and
237
+ `arc4random_buf` e.g. with modern glibc
238
+ #1201 CMake: Report on availability of functions `arc4random` and
239
+ `arc4random_buf`
240
+ #1201 CMake: Mark entropy related build switches as advanced
241
+ #1189 ..
242
+ #1203 #1204 Extract new files from entropy extraction code
243
+ #1194 Stop duplicating C tests 1:1 as C++ ("runtests_cxx")
244
+ #1202 Fix a comment typo in expat_external.h
245
+ #1187 Fix grammar in compile error message
246
+ #1192 examples: Build warning-free with -Wwrite-strings
247
+ #1171 tests: Address harmless warning from Coverity
248
+ #1170 #1176 Sync file headers
249
+ #1190 #1206 Version info bumped from 12:3:11 (libexpat*.so.1.11.3)
250
+ to 13:0:12 (libexpat*.so.1.12.0); see https://verbump.de/
251
+ for what these numbers do
252
+
253
+ Infrastructure:
254
+ #1166 #1167 ..
255
+ #1172 #1175 ..
256
+ #1178 #1179 ..
257
+ #1185 #1205 CI: Make Perl XML::Parser integration tests run against
258
+ both version 2.47 and the latest release 2.58
259
+ #1169 CI: Adapt to breaking changes regarding Inno Setup
260
+ #1173 CI: Adapt to breaking changes regarding CMake
261
+ #1174 CI: Include public corpus of fuzzer `xml_lpm_fuzzer` with
262
+ regression testing
263
+ #1181 #1182 CI: Bump WASI SDK from 30 to 32
264
+
265
+ Special thanks to:
266
+ Jérôme Duval
267
+ Matthew Fernandez
268
+
269
+ Release 2.7.5 Tue March 17 2026
270
+ Security fixes:
271
+ #1158 CVE-2026-32776 -- Fix NULL function pointer dereference for
272
+ empty external parameter entities; it takes use of both
273
+ functions XML_ExternalEntityParserCreate and
274
+ XML_SetParamEntityParsing for an application to be
275
+ vulnerable.
276
+ #1161 #1162 CVE-2026-32777 -- Protect from XML_TOK_INSTANCE_START
277
+ infinite loop in function entityValueProcessor; it takes
278
+ use of both functions XML_ExternalEntityParserCreate and
279
+ XML_SetParamEntityParsing for an application to be
280
+ vulnerable.
281
+ #1163 CVE-2026-32778 -- Fix NULL dereference in function setContext
282
+ on retry after an earlier ouf-of-memory condition; it takes
283
+ use of function XML_ParserCreateNS or XML_ParserCreate_MM
284
+ for an application to be vulnerable.
285
+ #1160 Three more unfixed vulnerabilities left
286
+
287
+ Other changes:
288
+ #1146 #1147 Autotools: Fix condition for symbol versioning check, in
289
+ particular when compiling with slibtool (not libtool)
290
+ #1156 Address Cppcheck >=2.20.0 warnings
291
+ #1153 tests: Make test_buffer_can_grow_to_max work for MinGW on
292
+ Ubuntu 24.04
293
+ #1157 #1159 Version info bumped from 12:2:11 (libexpat*.so.1.11.2)
294
+ to 12:3:11 (libexpat*.so.1.11.3); see https://verbump.de/
295
+ for what these numbers do
296
+
297
+ Infrastructure:
298
+ #1148 CI: Fix FreeBSD and Solaris CI
299
+ #1149 CI: Bump to WASI SDK 30
300
+ #1153 CI: Adapt to breaking changes with Ubuntu 22.04
301
+ #1156 CI: Adapt to breaking changes in Cppcheck
302
+
303
+ Special thanks to:
304
+ Berkay Eren Ürün
305
+ Christian Ng
306
+ Fabio Scaccabarozzi
307
+ Francesco Bertolaccini
308
+ Mark Brand
309
+ Rhodri James
310
+ and
311
+ AddressSanitizer
312
+ Buttercup
313
+ OSS-Fuzz / ClusterFuzz
314
+ Trail of Bits
315
+
316
+ Release 2.7.4 Sat January 31 2026
317
+ Security fixes:
318
+ #1131 CVE-2026-24515 -- Function XML_ExternalEntityParserCreate
319
+ failed to copy the encoding handler data passed to
320
+ XML_SetUnknownEncodingHandler from the parent to the new
321
+ subparser. This can cause a NULL dereference (CWE-476) from
322
+ external entities that declare use of an unknown encoding.
323
+ The expected impact is denial of service. It takes use of
324
+ both functions XML_ExternalEntityParserCreate and
325
+ XML_SetUnknownEncodingHandler for an application to be
326
+ vulnerable.
327
+ #1075 CVE-2026-25210 -- Add missing check for integer overflow
328
+ related to buffer size determination in function doContent
329
+
330
+ Bug fixes:
331
+ #1073 lib: Fix missing undoing of group size expansion in doProlog
332
+ failure cases
333
+ #1107 xmlwf: Fix a memory leak
334
+ #1104 WASI: Fix format specifiers for 32bit WASI SDK
335
+
336
+ Other changes:
337
+ #1105 lib: Fix strict aliasing
338
+ #1106 lib: Leverage feature "flexible array member" of C99
339
+ #1051 lib: Swap (size_t)(-1) for C99 equivalent SIZE_MAX
340
+ #1109 lib|xmlwf: Return NULL instead of 0 for pointers
341
+ #1068 lib|Windows: Clean up use of macro _MSC_EXTENSIONS with MSVC
342
+ #1112 lib: Remove unused import
343
+ #1110 xmlwf: Warn about XXE in --help output (and man page)
344
+ #1102 #1103 WASI: Stop using getpid
345
+ #1113 #1130 Autotools: Drop file expat.m4 that provided obsolete Autoconf
346
+ macro AM_WITH_EXPAT
347
+ #1123 Autotools: Limit -Wno-pedantic-ms-format to MinGW
348
+ #1129 #1134 ..
349
+ #1087 Autotools|macOS: Sync CMake templates with CMake 4.0
350
+ #1139 #1140 Autotools|CMake: Introduce off-by-default symbol versioning
351
+ The related build system flags are:
352
+ - For Autotools, configure with --enable-symbol-versioning
353
+ - For CMake, configure with -DEXPAT_SYMBOL_VERSIONING=ON
354
+ Please double-check for consequences before activating
355
+ this inside distro packaging. Bug reports welcome!
356
+ #1117 Autotools|CMake: Remove libbsd support
357
+ #1105 Autotools|CMake: Stop using -fno-strict-aliasing, and use
358
+ -Wstrict-aliasing=3 instead
359
+ #1124 Autotools|CMake: Prefer command gsed (GNU sed) over sed
360
+ (e.g. for Solaris) inside fix-xmltest-log.sh
361
+ #1067 CMake: Detect and warn about unusable check_c_compiler_flag
362
+ #1137 CMake: Drop support for CMake <3.17
363
+ #1138 CMake|Windows: Fix libexpat.def.cmake version comments
364
+
365
+ #1086 #1110 docs: Add warning about external reference handlers and XXE
366
+ #1066 docs: Be explicit that parent parsers need to outlive
367
+ subparsers
368
+ #1089 ..
369
+ #1090 #1091 ..
370
+ #1092 #1093 ..
371
+ #1094 #1098 ..
372
+ #1115 #1116 docs: Misc non-content improvements to doc/reference.html
373
+ #1132 #1133 Version info bumped from 12:1:11 (libexpat*.so.1.11.1)
374
+ to 12:2:11 (libexpat*.so.1.11.2); see https://verbump.de/
375
+ for what these numbers do
376
+
377
+ Infrastructure:
378
+ #1119 #1121 Document guidelines for contributing to Expat
379
+ #1120 Introduce a pull request template
380
+ #1074 CI: Stop using about-to-be-removed image "macos-13"
381
+ #1083 #1088 CI: Mitigate random Wine crashes
382
+ #1104 CI: Cover compilation with WASI SDK
383
+ #1116 CI: Enforce clean doc XML formatting
384
+ #1124 ..
385
+ #1135 #1136 CI: Cover Solaris 11.4
386
+ #1125 CI: Extend CI coverage of FreeBSD
387
+ #1139 #1140 CI: Cover symbol versioning
388
+ #1114 xmlwf: Reformat helpgen code (using Black 25.12.0)
389
+ #1071 .gitignore: Add files CPackConfig.cmake and
390
+ CPackSourceConfig.cmake
391
+
392
+ Special thanks to:
393
+ Alfonso Gregory
394
+ Bénédikt Tran
395
+ Gordon Messmer
396
+ Hanno Böck
397
+ Jakub Kulík
398
+ Matthew Fernandez
399
+ Neil Pang
400
+ Rosen Penev
401
+ and
402
+ Artiphishell Inc.
403
+
404
+ Release 2.7.3 Wed September 24 2025
405
+ Security fixes:
406
+ #1046 #1048 Fix alignment of internal allocations for some non-amd64
407
+ architectures (e.g. sparc32); fixes up on the fix to
408
+ CVE-2025-59375 from #1034 (of Expat 2.7.2 and related
409
+ backports)
410
+ #1059 Fix a class of false positives where input should have been
411
+ rejected with error XML_ERROR_ASYNC_ENTITY; regression from
412
+ CVE-2024-8176 fix pull request #973 (of Expat 2.7.0 and
413
+ related backports). Please check the added unit tests for
414
+ example documents.
415
+
416
+ Other changes:
417
+ #1043 Prove and regression-proof absence of integer overflow
418
+ from function expat_realloc
419
+ #1062 Remove "harmless" cast that truncated a size_t to unsigned
420
+ #1049 Autotools: Remove "ln -s" discovery
421
+ #1054 docs: Be consistent with use of floating point around
422
+ XML_SetAllocTrackerMaximumAmplification
423
+ #1056 docs: Make it explicit that XML_GetCurrentColumnNumber
424
+ starts at 0
425
+ #1057 docs: Better integrate the effect of the activation
426
+ thresholds
427
+ #1058 docs: Fix an in-comment typo in expat.h
428
+ #1045 docs: Fix a typo in README.md
429
+ #1041 docs: Improve change log of release 2.7.2
430
+ #1053 xmlwf: Resolve use of functions XML_GetErrorLineNumber
431
+ and XML_GetErrorColumnNumber
432
+ #1032 Windows: Normalize .bat files to CRLF line endings
433
+ #1060 #1061 Version info bumped from 12:0:11 (libexpat*.so.1.11.0)
434
+ to 12:1:11 (libexpat*.so.1.11.1); see https://verbump.de/
435
+ for what these numbers do
436
+
437
+ Infrastructure:
438
+ #1047 #1050 CI: Cleanup UndefinedBehaviorSanitizer fatality
439
+ #1044 CI|Linux: Stop aborting at first job failure
440
+ #1052 CI|FreeBSD: Upgrade to FreeBSD 15.0
441
+ #1039 CI|FreeBSD: Do not install CMake meta-package
442
+
443
+ Special thanks to:
444
+ Bénédikt Tran
445
+ Berkay Eren Ürün
446
+ Daniel Engberg
447
+ Hanno Böck
448
+ Matthew Fernandez
449
+ Rolf Eike Beer
450
+ Sam James
451
+ Tim Bray
452
+ and
453
+ Clang/GCC UndefinedBehaviorSanitizer
454
+ OSS-Fuzz / ClusterFuzz
455
+ Z3 Theorem Prover
456
+
457
+ Release 2.7.2 Tue September 16 2025
458
+ Security fixes:
459
+ #1018 #1034 CVE-2025-59375 -- Disallow use of disproportional amounts of
460
+ dynamic memory from within an Expat parser (e.g. previously
461
+ a ~250 KiB sized document was able to cause allocation of
462
+ ~800 MiB from the heap, i.e. an "amplification" of factor
463
+ ~3,300); once a threshold (that defaults to 64 MiB) is
464
+ reached, a maximum amplification factor (that defaults to
465
+ 100.0) is enforced, and violating documents are rejected
466
+ with an out-of-memory error.
467
+ There are two new API functions to fine-tune this new
468
+ behavior:
469
+ - XML_SetAllocTrackerActivationThreshold
470
+ - XML_SetAllocTrackerMaximumAmplification .
471
+ If you ever need to increase these defaults for non-attack
472
+ XML payload, please file a bug report with libexpat.
473
+ There is also a new environment variable
474
+ EXPAT_MALLOC_DEBUG=(0|1|2) to control the verbosity
475
+ of allocations debugging at runtime, disabled by default.
476
+ Known impact is (reliable and easy) denial of service:
477
+ CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:H/RL:O/RC:C
478
+ (Base Score: 7.5, Temporal Score: 7.2)
479
+ Please note that a layer of compression around XML can
480
+ significantly reduce the minimum attack payload size.
481
+ Distributors intending to backport (or cherry-pick) the
482
+ fix need to copy 99% of the related pull request, not just
483
+ the "lib: Implement tracking of dynamic memory allocations"
484
+ commit, to not end up with a state that literally does both
485
+ too much and too little at the same time. Appending ".diff"
486
+ to the pull request URL could be of help.
487
+
488
+ Other changes:
489
+ #1008 #1017 Autotools|macOS: Sync CMake templates with CMake 3.31
490
+ #1007 CMake: Drop support for CMake <3.15
491
+ #1004 CMake: Fix off_t detection for -Werror
492
+ #1007 CMake|Windows: Fix -DEXPAT_MSVC_STATIC_CRT=ON
493
+ #1013 Windows: Drop support for Visual Studio <=16.0/2019
494
+ #1026 xmlwf: Mention supported environment variables in
495
+ --help output
496
+ #1024 xmlwf: Fix (internal) help generator
497
+ #1034 docs: Promote the contract to call function
498
+ XML_FreeContentModel when registering a custom
499
+ element declaration handler (via a call to function
500
+ XML_SetElementDeclHandler)
501
+ #1027 docs: Add missing <p>..</p> wrap
502
+ #994 docs: Drop AppVeyor badge
503
+ #1000 tests: Fix portable_strndup
504
+ #1036 Drop casts around malloc/free/realloc that C99 does not need
505
+ #1010 Replace empty for loops with while loops
506
+ #1011 Add const with internal XmlInitUnknownEncodingNS
507
+ #14 #1037 Drop an OpenVMS support leftover
508
+ #999 #1001 Address more clang-tidy warnings
509
+ #1030 #1038 Version info bumped from 11:2:10 (libexpat*.so.1.10.2)
510
+ to 12:0:11 (libexpat*.so.1.11.0); see https://verbump.de/
511
+ for what these numbers do
512
+
513
+ Infrastructure:
514
+ #1003 CI: Cover compilation on FreeBSD
515
+ #1009 #1035 CI: Upgrade Clang from 19 to 21
516
+ #1031 CI: Make calling Cppcheck without --suppress=objectIndex
517
+ and --suppress=unknownMacro possible
518
+ #1013 CI|Windows: Get off of deprecated image "windows-2019"
519
+ #1008 #1017 ..
520
+ #1023 #1025 CI: Adapt to breaking changes in GitHub Actions
521
+
522
+ Special thanks to:
523
+ Alexander Bluhm
524
+ Neil Pang
525
+ Theo Buehler
526
+ and
527
+ GNU Time
528
+ OSS-Fuzz / ClusterFuzz
529
+ Perl XML::Parser
530
+
531
+ Release 2.7.1 Thu March 27 2025
532
+ Bug fixes:
533
+ #980 #989 Restore event pointer behavior from Expat 2.6.4
534
+ (that the fix to CVE-2024-8176 changed in 2.7.0);
535
+ affected API functions are:
536
+ - XML_GetCurrentByteCount
537
+ - XML_GetCurrentByteIndex
538
+ - XML_GetCurrentColumnNumber
539
+ - XML_GetCurrentLineNumber
540
+ - XML_GetInputContext
541
+
542
+ Other changes:
543
+ #976 #977 Autotools: Integrate files "fuzz/xml_lpm_fuzzer.{cpp,proto}"
544
+ with Automake that were missing from 2.7.0 release tarballs
545
+ #983 #984 Fix printf format specifiers for 32bit Emscripten
546
+ #992 docs: Promote OpenSSF Best Practices self-certification
547
+ #978 tests/benchmark: Resolve mistaken double close
548
+ #986 Address Frama-C warnings
549
+ #990 #993 Version info bumped from 11:1:10 (libexpat*.so.1.10.1)
550
+ to 11:2:10 (libexpat*.so.1.10.2); see https://verbump.de/
551
+ for what these numbers do
552
+
553
+ Infrastructure:
554
+ #982 CI: Start running Perl XML::Parser integration tests
555
+ #987 CI: Enforce Clang Static Analyzer clean code
556
+ #991 CI: Re-enable warning clang-analyzer-valist.Uninitialized
557
+ for clang-tidy
558
+ #981 CI: Cover compilation with musl
559
+ #983 #984 CI: Cover compilation with 32bit Emscripten
560
+ #976 #977 CI: Protect against fuzzer files missing from future
561
+ release archives
562
+
563
+ Special thanks to:
564
+ Berkay Eren Ürün
565
+ Matthew Fernandez
566
+ and
567
+ Perl XML::Parser
568
+
569
+ Release 2.7.0 Thu March 13 2025
570
+ Security fixes:
571
+ #893 #973 CVE-2024-8176 -- Fix crash from chaining a large number
572
+ of entities caused by stack overflow by resolving use of
573
+ recursion, for all three uses of entities:
574
+ - general entities in character data ("<e>&g1;</e>")
575
+ - general entities in attribute values ("<e k1='&g1;'/>")
576
+ - parameter entities ("%p1;")
577
+ Known impact is (reliable and easy) denial of service:
578
+ CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:H/RL:O/RC:C
579
+ (Base Score: 7.5, Temporal Score: 7.2)
580
+ Please note that a layer of compression around XML can
581
+ significantly reduce the minimum attack payload size.
582
+
583
+ Other changes:
584
+ #935 #937 Autotools: Make generated CMake files look for
585
+ libexpat.@SO_MAJOR@.dylib on macOS
586
+ #925 Autotools: Sync CMake templates with CMake 3.29
587
+ #945 #962 #966 CMake: Drop support for CMake <3.13
588
+ #942 CMake: Small fuzzing related improvements
589
+ #921 docs: Add missing documentation of error code
590
+ XML_ERROR_NOT_STARTED that was introduced with 2.6.4
591
+ #941 docs: Document need for C++11 compiler for use from C++
592
+ #959 tests/benchmark: Fix a (harmless) TOCTTOU
593
+ #944 Windows: Fix installer target location of file xmlwf.xml
594
+ for CMake
595
+ #953 Windows: Address warning -Wunknown-warning-option
596
+ about -Wno-pedantic-ms-format from LLVM MinGW
597
+ #971 Address Cppcheck warnings
598
+ #969 #970 Mass-migrate links from http:// to https://
599
+ #947 #958 ..
600
+ #974 #975 Document changes since the previous release
601
+ #974 #975 Version info bumped from 11:0:10 (libexpat*.so.1.10.0)
602
+ to 11:1:10 (libexpat*.so.1.10.1); see https://verbump.de/
603
+ for what these numbers do
604
+
605
+ Infrastructure:
606
+ #926 tests: Increase robustness
607
+ #927 #932 ..
608
+ #930 #933 tests: Increase test coverage
609
+ #617 #950 ..
610
+ #951 #952 ..
611
+ #954 #955 .. Fuzzing: Add new fuzzer "xml_lpm_fuzzer" based on
612
+ #961 Google's libprotobuf-mutator ("LPM")
613
+ #957 Fuzzing|CI: Start producing fuzzing code coverage reports
614
+ #936 CI: Pass -q -q for LCOV >=2.1 in coverage.sh
615
+ #942 CI: Small fuzzing related improvements
616
+ #139 #203 ..
617
+ #791 #946 CI: Make GitHub Actions build using MSVC on Windows and
618
+ produce 32bit and 64bit Windows binaries
619
+ #956 CI: Get off of about-to-be-removed Ubuntu 20.04
620
+ #960 #964 CI: Start uploading to Coverity Scan for static analysis
621
+ #972 CI: Stop loading DTD from the internet to address flaky CI
622
+ #971 CI: Adapt to breaking changes in Cppcheck
623
+
624
+ Special thanks to:
625
+ Alexander Gieringer
626
+ Berkay Eren Ürün
627
+ Hanno Böck
628
+ Jann Horn
629
+ Mark Brand
630
+ Sebastian Andrzej Siewior
631
+ Snild Dolkow
632
+ Thomas Pröll
633
+ Tomas Korbar
634
+ valord577
635
+ and
636
+ Google Project Zero
637
+ Linutronix
638
+ Red Hat
639
+ Siemens
640
+
641
+ Release 2.6.4 Wed November 6 2024
642
+ Security fixes:
643
+ #915 CVE-2024-50602 -- Fix crash within function XML_ResumeParser
644
+ from a NULL pointer dereference by disallowing function
645
+ XML_StopParser to (stop or) suspend an unstarted parser.
646
+ A new error code XML_ERROR_NOT_STARTED was introduced to
647
+ properly communicate this situation. // CWE-476 CWE-754
648
+
649
+ Other changes:
650
+ #903 CMake: Add alias target "expat::expat"
651
+ #905 docs: Document use via CMake >=3.18 with FetchContent
652
+ and SOURCE_SUBDIR and its consequences
653
+ #902 tests: Reduce use of global parser instance
654
+ #904 tests: Resolve duplicate handler
655
+ #317 #918 tests: Improve tests on doctype closing (ex CVE-2019-15903)
656
+ #914 Fix signedness of format strings
657
+ #915 For use from C++, expat.h started requiring C++11 due to
658
+ use of C99 features
659
+ #919 #920 Version info bumped from 10:3:9 (libexpat*.so.1.9.3)
660
+ to 11:0:10 (libexpat*.so.1.10.0); see https://verbump.de/
661
+ for what these numbers do
662
+
663
+ Infrastructure:
664
+ #907 CI: Upgrade Clang from 18 to 19
665
+ #913 CI: Drop macos-12 and add macos-15
666
+ #910 CI: Adapt to breaking changes in GitHub Actions
667
+ #898 Add missing entries to .gitignore
668
+
669
+ Special thanks to:
670
+ Hanno Böck
671
+ José Eduardo Gutiérrez Conejo
672
+ José Ricardo Cardona Quesada
673
+
674
+ Release 2.6.3 Wed September 4 2024
675
+ Security fixes:
676
+ #887 #890 CVE-2024-45490 -- Calling function XML_ParseBuffer with
677
+ len < 0 without noticing and then calling XML_GetBuffer
678
+ will have XML_ParseBuffer fail to recognize the problem
679
+ and XML_GetBuffer corrupt memory.
680
+ With the fix, XML_ParseBuffer now complains with error
681
+ XML_ERROR_INVALID_ARGUMENT just like sibling XML_Parse
682
+ has been doing since Expat 2.2.1, and now documented.
683
+ Impact is denial of service to potentially artitrary code
684
+ execution.
685
+ #888 #891 CVE-2024-45491 -- Internal function dtdCopy can have an
686
+ integer overflow for nDefaultAtts on 32-bit platforms
687
+ (where UINT_MAX equals SIZE_MAX).
688
+ Impact is denial of service to potentially artitrary code
689
+ execution.
690
+ #889 #892 CVE-2024-45492 -- Internal function nextScaffoldPart can
691
+ have an integer overflow for m_groupSize on 32-bit
692
+ platforms (where UINT_MAX equals SIZE_MAX).
693
+ Impact is denial of service to potentially artitrary code
694
+ execution.
695
+
696
+ Other changes:
697
+ #851 #879 Autotools: Sync CMake templates with CMake 3.28
698
+ #853 Autotools: Always provide path to find(1) for portability
699
+ #861 Autotools: Ensure that the m4 directory always exists.
700
+ #870 Autotools: Simplify handling of SIZEOF_VOID_P
701
+ #869 Autotools: Support non-GNU sed
702
+ #856 Autotools|CMake: Fix main() to main(void)
703
+ #865 Autotools|CMake: Fix compile tests for HAVE_SYSCALL_GETRANDOM
704
+ #863 Autotools|CMake: Stop requiring dos2unix
705
+ #854 #855 CMake: Fix check for symbols size_t and off_t
706
+ #864 docs|tests: Convert README to Markdown and update
707
+ #741 Windows: Drop support for Visual Studio <=15.0/2017
708
+ #886 Drop needless XML_DTD guards around is_param access
709
+ #885 Fix typo in a code comment
710
+ #894 #896 Version info bumped from 10:2:9 (libexpat*.so.1.9.2)
711
+ to 10:3:9 (libexpat*.so.1.9.3); see https://verbump.de/
712
+ for what these numbers do
713
+
714
+ Infrastructure:
715
+ #880 Readme: Promote the call for help
716
+ #868 CI: Fix various issues
717
+ #849 CI: Allow triggering GitHub Actions workflows manually
718
+ #851 #872 ..
719
+ #873 #879 CI: Adapt to breaking changes in GitHub Actions
720
+
721
+ Special thanks to:
722
+ Alexander Bluhm
723
+ Berkay Eren Ürün
724
+ Dag-Erling Smørgrav
725
+ Ferenc Géczi
726
+ TaiYou
727
+
728
+ Release 2.6.2 Wed March 13 2024
729
+ Security fixes:
730
+ #839 #842 CVE-2024-28757 -- Prevent billion laughs attacks with
731
+ isolated use of external parsers. Please see the commit
732
+ message of commit 1d50b80cf31de87750103656f6eb693746854aa8
733
+ for details.
734
+
735
+ Bug fixes:
736
+ #839 #841 Reject direct parameter entity recursion
737
+ and avoid the related undefined behavior
738
+
739
+ Other changes:
740
+ #847 Autotools: Fix build for DOCBOOK_TO_MAN containing spaces
741
+ #837 Add missing #821 and #824 to 2.6.1 change log
742
+ #838 #843 Version info bumped from 10:1:9 (libexpat*.so.1.9.1)
743
+ to 10:2:9 (libexpat*.so.1.9.2); see https://verbump.de/
744
+ for what these numbers do
745
+
746
+ Special thanks to:
747
+ Philippe Antoine
748
+ Tomas Korbar
749
+ and
750
+ Clang UndefinedBehaviorSanitizer
751
+ OSS-Fuzz / ClusterFuzz
752
+
753
+ Release 2.6.1 Thu February 29 2024
754
+ Bug fixes:
755
+ #817 Make tests independent of CPU speed, and thus more robust
756
+ #828 #836 Expose billion laughs API with XML_DTD defined and
757
+ XML_GE undefined, regression from 2.6.0
758
+
759
+ Other changes:
760
+ #829 Hide test-only code behind new internal macro
761
+ #833 Autotools: Reject expat_config.h.in defining SIZEOF_VOID_P
762
+ #821 #824 Autotools: Fix "make clean" for case:
763
+ ./configure --without-docbook && make clean all
764
+ #819 Address compiler warnings
765
+ #832 #834 Version info bumped from 10:0:9 (libexpat*.so.1.9.0)
766
+ to 10:1:9 (libexpat*.so.1.9.1); see https://verbump.de/
767
+ for what these numbers do
768
+
769
+ Infrastructure:
770
+ #818 CI: Adapt to breaking changes in clang-format
771
+
772
+ Special thanks to:
773
+ David Hall
774
+ Snild Dolkow
775
+
776
+ Release 2.6.0 Tue February 6 2024
777
+ Security fixes:
778
+ #789 #814 CVE-2023-52425 -- Fix quadratic runtime issues with big tokens
779
+ that can cause denial of service, in partial where
780
+ dealing with compressed XML input. Applications
781
+ that parsed a document in one go -- a single call to
782
+ functions XML_Parse or XML_ParseBuffer -- were not affected.
783
+ The smaller the chunks/buffers you use for parsing
784
+ previously, the bigger the problem prior to the fix.
785
+ Backporters should be careful to no omit parts of
786
+ pull request #789 and to include earlier pull request #771,
787
+ in order to not break the fix.
788
+ #777 CVE-2023-52426 -- Fix billion laughs attacks for users
789
+ compiling *without* XML_DTD defined (which is not common).
790
+ Users with XML_DTD defined have been protected since
791
+ Expat >=2.4.0 (and that was CVE-2013-0340 back then).
792
+
793
+ Bug fixes:
794
+ #753 Fix parse-size-dependent "invalid token" error for
795
+ external entities that start with a byte order mark
796
+ #780 Fix NULL pointer dereference in setContext via
797
+ XML_ExternalEntityParserCreate for compilation with
798
+ XML_DTD undefined
799
+ #812 #813 Protect against closing entities out of order
800
+
801
+ Other changes:
802
+ #723 Improve support for arc4random/arc4random_buf
803
+ #771 #788 Improve buffer growth in XML_GetBuffer and XML_Parse
804
+ #761 #770 xmlwf: Support --help and --version
805
+ #759 #770 xmlwf: Support custom buffer size for XML_GetBuffer and read
806
+ #744 xmlwf: Improve language and URL clickability in help output
807
+ #673 examples: Add new example "element_declarations.c"
808
+ #764 Be stricter about macro XML_CONTEXT_BYTES at build time
809
+ #765 Make inclusion to expat_config.h consistent
810
+ #726 #727 Autotools: configure.ac: Support --disable-maintainer-mode
811
+ #678 #705 ..
812
+ #706 #733 #792 Autotools: Sync CMake templates with CMake 3.26
813
+ #795 Autotools: Make installation of shipped man page doc/xmlwf.1
814
+ independent of docbook2man availability
815
+ #815 Autotools|CMake: Add missing -DXML_STATIC to pkg-config file
816
+ section "Cflags.private" in order to fix compilation
817
+ against static libexpat using pkg-config on Windows
818
+ #724 #751 Autotools|CMake: Require a C99 compiler
819
+ (a de-facto requirement already since Expat 2.2.2 of 2017)
820
+ #793 Autotools|CMake: Fix PACKAGE_BUGREPORT variable
821
+ #750 #786 Autotools|CMake: Make test suite require a C++11 compiler
822
+ #749 CMake: Require CMake >=3.5.0
823
+ #672 CMake: Lowercase off_t and size_t to help a bug in Meson
824
+ #746 CMake: Sort xmlwf sources alphabetically
825
+ #785 CMake|Windows: Fix generation of DLL file version info
826
+ #790 CMake: Build tests/benchmark/benchmark.c as well for
827
+ a build with -DEXPAT_BUILD_TESTS=ON
828
+ #745 #757 docs: Document the importance of isFinal + adjust tests
829
+ accordingly
830
+ #736 docs: Improve use of "NULL" and "null"
831
+ #713 docs: Be specific about version of XML (XML 1.0r4)
832
+ and version of C (C99); (XML 1.0r5 will need a sponsor.)
833
+ #762 docs: reference.html: Promote function XML_ParseBuffer more
834
+ #779 docs: reference.html: Add HTML anchors to XML_* macros
835
+ #760 docs: reference.html: Upgrade to OK.css 1.2.0
836
+ #763 #739 docs: Fix typos
837
+ #696 docs|CI: Use HTTPS URLs instead of HTTP at various places
838
+ #669 #670 ..
839
+ #692 #703 ..
840
+ #733 #772 Address compiler warnings
841
+ #798 #800 Address clang-tidy warnings
842
+ #775 #776 Version info bumped from 9:10:8 (libexpat*.so.1.8.10)
843
+ to 10:0:9 (libexpat*.so.1.9.0); see https://verbump.de/
844
+ for what these numbers do
845
+
846
+ Infrastructure:
847
+ #700 #701 docs: Document security policy in file SECURITY.md
848
+ #766 docs: Improve parse buffer variables in-code documentation
849
+ #674 #738 ..
850
+ #740 #747 ..
851
+ #748 #781 #782 Refactor coverage and conformance tests
852
+ #714 #716 Refactor debug level variables to unsigned long
853
+ #671 Improve handling of empty environment variable value
854
+ in function getDebugLevel (without visible user effect)
855
+ #755 #774 ..
856
+ #758 #783 ..
857
+ #784 #787 tests: Improve test coverage with regard to parse chunk size
858
+ #660 #797 #801 Fuzzing: Improve fuzzing coverage
859
+ #367 #799 Fuzzing|CI: Start running OSS-Fuzz fuzzing regression tests
860
+ #698 #721 CI: Resolve some Travis CI leftovers
861
+ #669 CI: Be robust towards absence of Git tags
862
+ #693 #694 CI: Set permissions to "contents: read" for security
863
+ #709 CI: Pin all GitHub Actions to specific commits for security
864
+ #739 CI: Reject spelling errors using codespell
865
+ #798 CI: Enforce clang-tidy clean code
866
+ #773 #808 ..
867
+ #809 #810 CI: Upgrade Clang from 15 to 18
868
+ #796 CI: Start using Clang's Control Flow Integrity sanitizer
869
+ #675 #720 #722 CI: Adapt to breaking changes in GitHub Actions Ubuntu images
870
+ #689 CI: Adapt to breaking changes in Clang/LLVM Debian packaging
871
+ #763 CI: Adapt to breaking changes in codespell
872
+ #803 CI: Adapt to breaking changes in Cppcheck
873
+
874
+ Special thanks to:
875
+ Ivan Galkin
876
+ Joyce Brum
877
+ Philippe Antoine
878
+ Rhodri James
879
+ Snild Dolkow
880
+ spookyahell
881
+ Steven Garske
882
+ and
883
+ Clang AddressSanitizer
884
+ Clang UndefinedBehaviorSanitizer
885
+ codespell
886
+ GCC Farm Project
887
+ OSS-Fuzz
888
+ Sony Mobile
889
+
890
+ Release 2.5.0 Tue October 25 2022
891
+ Security fixes:
892
+ #616 #649 #650 CVE-2022-43680 -- Fix heap use-after-free after overeager
893
+ destruction of a shared DTD in function
894
+ XML_ExternalEntityParserCreate in out-of-memory situations.
895
+ Expected impact is denial of service or potentially
896
+ arbitrary code execution.
897
+
898
+ Bug fixes:
899
+ #612 #645 Fix corruption from undefined entities
900
+ #613 #654 Fix case when parsing was suspended while processing nested
901
+ entities
902
+ #616 #652 #653 Stop leaking opening tag bindings after a closing tag
903
+ mismatch error where a parser is reset through
904
+ XML_ParserReset and then reused to parse
905
+ #656 CMake: Fix generation of pkg-config file
906
+ #658 MinGW|CMake: Fix static library name
907
+
908
+ Other changes:
909
+ #663 Protect header expat_config.h from multiple inclusion
910
+ #666 examples: Make use of XML_GetBuffer and be more
911
+ consistent across examples
912
+ #648 Address compiler warnings
913
+ #667 #668 Version info bumped from 9:9:8 to 9:10:8;
914
+ see https://verbump.de/ for what these numbers do
915
+
916
+ Special thanks to:
917
+ Jann Horn
918
+ Mark Brand
919
+ Osyotr
920
+ Rhodri James
921
+ and
922
+ Google Project Zero
923
+
924
+ Release 2.4.9 Tue September 20 2022
925
+ Security fixes:
926
+ #629 #640 CVE-2022-40674 -- Heap use-after-free vulnerability in
927
+ function doContent. Expected impact is denial of service
928
+ or potentially arbitrary code execution.
929
+
930
+ Bug fixes:
931
+ #634 MinGW: Fix mis-compilation for -D__USE_MINGW_ANSI_STDIO=0
932
+ #614 docs: Fix documentation on effect of switch XML_DTD on
933
+ symbol visibility in doc/reference.html
934
+
935
+ Other changes:
936
+ #638 MinGW: Make fix-xmltest-log.sh drop more Wine bug output
937
+ #596 #625 Autotools: Sync CMake templates with CMake 3.22
938
+ #608 CMake: Migrate from use of CMAKE_*_POSTFIX to
939
+ dedicated variables EXPAT_*_POSTFIX to stop affecting
940
+ other projects
941
+ #597 #599 Windows|CMake: Add missing -DXML_STATIC to test runners
942
+ and fuzzers
943
+ #512 #621 Windows|CMake: Render .def file from a template to fix
944
+ linking with -DEXPAT_DTD=OFF and/or -DEXPAT_ATTR_INFO=ON
945
+ #611 #621 MinGW|CMake: Apply MSVC .def file when linking
946
+ #622 #624 MinGW|CMake: Sync library name with GNU Autotools,
947
+ i.e. produce libexpat-1.dll rather than libexpat.dll
948
+ by default. Filename libexpat.dll.a is unaffected.
949
+ #632 MinGW|CMake: Set missing variable CMAKE_RC_COMPILER in
950
+ toolchain file "cmake/mingw-toolchain.cmake" to avoid
951
+ error "windres: Command not found" on e.g. Ubuntu 20.04
952
+ #597 #627 CMake: Unify inconsistent use of set() and option() in
953
+ context of public build time options to take need for
954
+ set(.. FORCE) in projects using Expat by means of
955
+ add_subdirectory(..) off Expat's users' shoulders
956
+ #626 #641 Stop exporting API symbols when building a static library
957
+ #644 Resolve use of deprecated "fgrep" by "grep -F"
958
+ #620 CMake: Make documentation on variables a bit more consistent
959
+ #636 CMake: Drop leading whitespace from a #cmakedefine line in
960
+ file expat_config.h.cmake
961
+ #594 xmlwf: Fix harmless variable mix-up in function nsattcmp
962
+ #592 #593 #610 Address Cppcheck warnings
963
+ #643 Address Clang 15 compiler warnings
964
+ #642 #644 Version info bumped from 9:8:8 to 9:9:8;
965
+ see https://verbump.de/ for what these numbers do
966
+
967
+ Infrastructure:
968
+ #597 #598 CI: Windows: Start covering MSVC 2022
969
+ #619 CI: macOS: Migrate off deprecated macOS 10.15
970
+ #632 CI: Linux: Make migration off deprecated Ubuntu 18.04 work
971
+ #643 CI: Upgrade Clang from 14 to 15
972
+ #637 apply-clang-format.sh: Add support for BSD find
973
+ #633 coverage.sh: Exclude MinGW headers
974
+ #635 coverage.sh: Fix name collision for -funsigned-char
975
+
976
+ Special thanks to:
977
+ David Faure
978
+ Felix Wilhelm
979
+ Frank Bergmann
980
+ Rhodri James
981
+ Rosen Penev
982
+ Thijs Schreijer
983
+ Vincent Torri
984
+ and
985
+ Google Project Zero
986
+
987
+ Release 2.4.8 Mon March 28 2022
988
+ Other changes:
989
+ #587 pkg-config: Move "-lm" to section "Libs.private"
990
+ #587 CMake|MSVC: Fix pkg-config section "Libs"
991
+ #55 #582 CMake|macOS: Start using linker arguments
992
+ "-compatibility_version <version>" and
993
+ "-current_version <version>" in a way compatible with
994
+ GNU Libtool
995
+ #590 #591 Version info bumped from 9:7:8 to 9:8:8;
996
+ see https://verbump.de/ for what these numbers do
997
+
998
+ Infrastructure:
999
+ #589 CI: Upgrade Clang from 13 to 14
1000
+
1001
+ Special thanks to:
1002
+ evpobr
1003
+ Kai Pastor
1004
+ Sam James
1005
+
1006
+ Release 2.4.7 Fri March 4 2022
1007
+ Bug fixes:
1008
+ #572 #577 Relax fix to CVE-2022-25236 (introduced with release 2.4.5)
1009
+ with regard to all valid URI characters (RFC 3986),
1010
+ i.e. the following set (excluding whitespace):
1011
+ ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
1012
+ 0123456789 % -._~ :/?#[]@ !$&'()*+,;=
1013
+
1014
+ Other changes:
1015
+ #555 #570 #581 CMake|Windows: Store Expat version in the DLL
1016
+ #577 Document consequences of namespace separator choices not just
1017
+ in doc/reference.html but also in header <expat.h>
1018
+ #577 Document Expat's lack of validation of namespace URIs against
1019
+ RFC 3986, and that the XML 1.0r4 specification doesn't
1020
+ require Expat to validate namespace URIs, and that Expat
1021
+ may do more in that regard in future releases.
1022
+ If you find need for strict RFC 3986 URI validation on
1023
+ application level today, https://uriparser.github.io/ may
1024
+ be of interest.
1025
+ #579 Fix documentation of XML_EndDoctypeDeclHandler in <expat.h>
1026
+ #575 Document that a call to XML_FreeContentModel can be done at
1027
+ a later time from outside the element declaration handler
1028
+ #574 Make hardcoded namespace URIs easier to find in code
1029
+ #573 Update documentation on use of XML_POOR_ENTOPY on Solaris
1030
+ #569 #571 tests: Resolve use of macros NAN and INFINITY for GNU G++
1031
+ 4.8.2 on Solaris.
1032
+ #578 #580 Version info bumped from 9:6:8 to 9:7:8;
1033
+ see https://verbump.de/ for what these numbers do
1034
+
1035
+ Special thanks to:
1036
+ Jeffrey Walton
1037
+ Johnny Jazeix
1038
+ Thijs Schreijer
1039
+
1040
+ Release 2.4.6 Sun February 20 2022
1041
+ Bug fixes:
1042
+ #566 Fix a regression introduced by the fix for CVE-2022-25313
1043
+ in release 2.4.5 that affects applications that (1)
1044
+ call function XML_SetElementDeclHandler and (2) are
1045
+ parsing XML that contains nested element declarations
1046
+ (e.g. "<!ELEMENT junk ((bar|foo|xyz+), zebra*)>").
1047
+
1048
+ Other changes:
1049
+ #567 #568 Version info bumped from 9:5:8 to 9:6:8;
1050
+ see https://verbump.de/ for what these numbers do
1051
+
1052
+ Special thanks to:
1053
+ Matt Sergeant
1054
+ Samanta Navarro
1055
+ Sergei Trofimovich
1056
+ and
1057
+ NixOS
1058
+ Perl XML::Parser
1059
+
1060
+ Release 2.4.5 Fri February 18 2022
1061
+ Security fixes:
1062
+ #562 CVE-2022-25235 -- Passing malformed 2- and 3-byte UTF-8
1063
+ sequences (e.g. from start tag names) to the XML
1064
+ processing application on top of Expat can cause
1065
+ arbitrary damage (e.g. code execution) depending
1066
+ on how invalid UTF-8 is handled inside the XML
1067
+ processor; validation was not their job but Expat's.
1068
+ Exploits with code execution are known to exist.
1069
+ #561 CVE-2022-25236 -- Passing (one or more) namespace separator
1070
+ characters in "xmlns[:prefix]" attribute values
1071
+ made Expat send malformed tag names to the XML
1072
+ processor on top of Expat which can cause
1073
+ arbitrary damage (e.g. code execution) depending
1074
+ on such unexpectable cases are handled inside the XML
1075
+ processor; validation was not their job but Expat's.
1076
+ Exploits with code execution are known to exist.
1077
+ #558 CVE-2022-25313 -- Fix stack exhaustion in doctype parsing
1078
+ that could be triggered by e.g. a 2 megabytes
1079
+ file with a large number of opening braces.
1080
+ Expected impact is denial of service or potentially
1081
+ arbitrary code execution.
1082
+ #560 CVE-2022-25314 -- Fix integer overflow in function copyString;
1083
+ only affects the encoding name parameter at parser creation
1084
+ time which is often hardcoded (rather than user input),
1085
+ takes a value in the gigabytes to trigger, and a 64-bit
1086
+ machine. Expected impact is denial of service.
1087
+ #559 CVE-2022-25315 -- Fix integer overflow in function storeRawNames;
1088
+ needs input in the gigabytes and a 64-bit machine.
1089
+ Expected impact is denial of service or potentially
1090
+ arbitrary code execution.
1091
+
1092
+ Other changes:
1093
+ #557 #564 Version info bumped from 9:4:8 to 9:5:8;
1094
+ see https://verbump.de/ for what these numbers do
1095
+
1096
+ Special thanks to:
1097
+ Ivan Fratric
1098
+ Samanta Navarro
1099
+ and
1100
+ Google Project Zero
1101
+ JetBrains
1102
+
1103
+ Release 2.4.4 Sun January 30 2022
1104
+ Security fixes:
1105
+ #550 CVE-2022-23852 -- Fix signed integer overflow
1106
+ (undefined behavior) in function XML_GetBuffer
1107
+ (that is also called by function XML_Parse internally)
1108
+ for when XML_CONTEXT_BYTES is defined to >0 (which is both
1109
+ common and default).
1110
+ Impact is denial of service or more.
1111
+ #551 CVE-2022-23990 -- Fix unsigned integer overflow in function
1112
+ doProlog triggered by large content in element type
1113
+ declarations when there is an element declaration handler
1114
+ present (from a prior call to XML_SetElementDeclHandler).
1115
+ Impact is denial of service or more.
1116
+
1117
+ Bug fixes:
1118
+ #544 #545 xmlwf: Fix a memory leak on output file opening error
1119
+
1120
+ Other changes:
1121
+ #546 Autotools: Fix broken CMake support under Cygwin
1122
+ #554 Windows: Add missing files to the installer to fix
1123
+ compilation with CMake from installed sources
1124
+ #552 #554 Version info bumped from 9:3:8 to 9:4:8;
1125
+ see https://verbump.de/ for what these numbers do
1126
+
1127
+ Special thanks to:
1128
+ Carlo Bramini
1129
+ hwt0415
1130
+ Roland Illig
1131
+ Samanta Navarro
1132
+ and
1133
+ Clang LeakSan and the Clang team
1134
+
1135
+ Release 2.4.3 Sun January 16 2022
1136
+ Security fixes:
1137
+ #531 #534 CVE-2021-45960 -- Fix issues with left shifts by >=29 places
1138
+ resulting in
1139
+ a) realloc acting as free
1140
+ b) realloc allocating too few bytes
1141
+ c) undefined behavior
1142
+ depending on architecture and precise value
1143
+ for XML documents with >=2^27+1 prefixed attributes
1144
+ on a single XML tag a la
1145
+ "<r xmlns:a='[..]' a:a123='[..]' [..] />"
1146
+ where XML_ParserCreateNS is used to create the parser
1147
+ (which needs argument "-n" when running xmlwf).
1148
+ Impact is denial of service, or more.
1149
+ #532 #538 CVE-2021-46143 (ZDI-CAN-16157) -- Fix integer overflow
1150
+ on variable m_groupSize in function doProlog leading
1151
+ to realloc acting as free.
1152
+ Impact is denial of service or more.
1153
+ #539 CVE-2022-22822 to CVE-2022-22827 -- Prevent integer overflows
1154
+ near memory allocation at multiple places. Mitre assigned
1155
+ a dedicated CVE for each involved internal C function:
1156
+ - CVE-2022-22822 for function addBinding
1157
+ - CVE-2022-22823 for function build_model
1158
+ - CVE-2022-22824 for function defineAttribute
1159
+ - CVE-2022-22825 for function lookup
1160
+ - CVE-2022-22826 for function nextScaffoldPart
1161
+ - CVE-2022-22827 for function storeAtts
1162
+ Impact is denial of service or more.
1163
+
1164
+ Other changes:
1165
+ #535 CMake: Make call to file(GENERATE [..]) work for CMake <3.19
1166
+ #541 Autotools|CMake: MinGW: Make run.sh(.in) work for Cygwin
1167
+ and MSYS2 by not going through Wine on these platforms
1168
+ #527 #528 Address compiler warnings
1169
+ #533 #543 Version info bumped from 9:2:8 to 9:3:8;
1170
+ see https://verbump.de/ for what these numbers do
1171
+
1172
+ Infrastructure:
1173
+ #536 CI: Check for realistic minimum CMake version
1174
+ #529 #539 CI: Cover compilation with -m32
1175
+ #529 CI: Store coverage reports as artifacts for download
1176
+ #528 CI: Upgrade Clang from 11 to 13
1177
+
1178
+ Special thanks to:
1179
+ An anonymous whitehat
1180
+ Christopher Degawa
1181
+ J. Peter Mugaas
1182
+ Tyson Smith
1183
+ and
1184
+ GCC Farm Project
1185
+ Trend Micro Zero Day Initiative
1186
+
1187
+ Release 2.4.2 Sun December 19 2021
1188
+ Other changes:
1189
+ #509 #510 Link againgst libm for function "isnan"
1190
+ #513 #514 Include expat_config.h as early as possible
1191
+ #498 Autotools: Include files with release archives:
1192
+ - buildconf.sh
1193
+ - fuzz/*.c
1194
+ #507 #519 Autotools: Sync CMake templates with CMake 3.20
1195
+ #495 #524 CMake: MinGW: Fix pkg-config section "Libs" for
1196
+ - non-release build types (e.g. -DCMAKE_BUILD_TYPE=Debug)
1197
+ - multi-config CMake generators (e.g. Ninja Multi-Config)
1198
+ #502 #503 docs: Document that function XML_GetBuffer may return NULL
1199
+ when asking for a buffer of 0 (zero) bytes size
1200
+ #522 #523 docs: Fix return value docs for both
1201
+ XML_SetBillionLaughsAttackProtection* functions
1202
+ #525 #526 Version info bumped from 9:1:8 to 9:2:8;
1203
+ see https://verbump.de/ for what these numbers do
1204
+
1205
+ Special thanks to:
1206
+ Donghee Na
1207
+ Joergen Ibsen
1208
+ Kai Pastor
1209
+
1210
+ Release 2.4.1 Sun May 23 2021
1211
+ Bug fixes:
1212
+ #488 #490 Autotools: Fix installed header expat_config.h for multilib
1213
+ systems; regression introduced in 2.4.0 by pull request #486
1214
+
1215
+ Other changes:
1216
+ #491 #492 Version info bumped from 9:0:8 to 9:1:8;
1217
+ see https://verbump.de/ for what these numbers do
1218
+
1219
+ Special thanks to:
1220
+ Gentoo's QA check "multilib_check_headers"
1221
+
1222
+ Release 2.4.0 Sun May 23 2021
1223
+ Security fixes:
1224
+ #34 #466 #484 CVE-2013-0340/CWE-776 -- Protect against billion laughs attacks
1225
+ (denial-of-service; flavors targeting CPU time or RAM or both,
1226
+ leveraging general entities or parameter entities or both)
1227
+ by tracking and limiting the input amplification factor
1228
+ (<amplification> := (<direct> + <indirect>) / <direct>).
1229
+ By conservative default, amplification up to a factor of 100.0
1230
+ is tolerated and rejection only starts after 8 MiB of output bytes
1231
+ (=<direct> + <indirect>) have been processed.
1232
+ The fix adds the following to the API:
1233
+ - A new error code XML_ERROR_AMPLIFICATION_LIMIT_BREACH to
1234
+ signals this specific condition.
1235
+ - Two new API functions ..
1236
+ - XML_SetBillionLaughsAttackProtectionMaximumAmplification and
1237
+ - XML_SetBillionLaughsAttackProtectionActivationThreshold
1238
+ .. to further tighten billion laughs protection parameters
1239
+ when desired. Please see file "doc/reference.html" for details.
1240
+ If you ever need to increase the defaults for non-attack XML
1241
+ payload, please file a bug report with libexpat.
1242
+ - Two new XML_FEATURE_* constants ..
1243
+ - that can be queried using the XML_GetFeatureList function, and
1244
+ - that are shown in "xmlwf -v" output.
1245
+ - Two new environment variable switches ..
1246
+ - EXPAT_ACCOUNTING_DEBUG=(0|1|2|3) and
1247
+ - EXPAT_ENTITY_DEBUG=(0|1)
1248
+ .. for runtime debugging of accounting and entity processing.
1249
+ Specific behavior of these values may change in the future.
1250
+ - Two new command line arguments "-a FACTOR" and "-b BYTES"
1251
+ for xmlwf to further tighten billion laughs protection
1252
+ parameters when desired.
1253
+ If you ever need to increase the defaults for non-attack XML
1254
+ payload, please file a bug report with libexpat.
1255
+
1256
+ Bug fixes:
1257
+ #332 #470 For (non-default) compilation with -DEXPAT_MIN_SIZE=ON (CMake)
1258
+ or CPPFLAGS=-DXML_MIN_SIZE (GNU Autotools): Fix segfault
1259
+ for UTF-16 payloads containing CDATA sections.
1260
+ #485 #486 Autotools: Fix generated CMake files for non-64bit and
1261
+ non-Linux platforms (e.g. macOS and MinGW in particular)
1262
+ that were introduced with release 2.3.0
1263
+
1264
+ Other changes:
1265
+ #468 #469 xmlwf: Improve help output and the xmlwf man page
1266
+ #463 xmlwf: Improve maintainability through some refactoring
1267
+ #477 xmlwf: Fix man page DocBook validity
1268
+ #456 Autotools: Sync CMake templates with CMake 3.18
1269
+ #458 #459 CMake: Support absolute paths for both CMAKE_INSTALL_LIBDIR
1270
+ and CMAKE_INSTALL_INCLUDEDIR
1271
+ #471 #481 CMake: Add support for standard variable BUILD_SHARED_LIBS
1272
+ #457 Unexpose symbol _INTERNAL_trim_to_complete_utf8_characters
1273
+ #467 Resolve macro HAVE_EXPAT_CONFIG_H
1274
+ #472 Delete unused legacy helper file "conftools/PrintPath"
1275
+ #473 #483 Improve attribution
1276
+ #464 #465 #477 doc/reference.html: Fix XHTML validity
1277
+ #475 #478 doc/reference.html: Replace the 90s look by OK.css
1278
+ #479 Version info bumped from 8:0:7 to 9:0:8
1279
+ due to addition of new symbols and error codes;
1280
+ see https://verbump.de/ for what these numbers do
1281
+
1282
+ Infrastructure:
1283
+ #456 CI: Enable periodic runs
1284
+ #457 CI: Start covering the list of exported symbols
1285
+ #474 CI: Isolate coverage task
1286
+ #476 #482 CI: Adapt to breaking changes in image "ubuntu-18.04"
1287
+ #477 CI: Cover well-formedness and DocBook/XHTML validity
1288
+ of doc/reference.html and doc/xmlwf.xml
1289
+
1290
+ Special thanks to:
1291
+ Dimitry Andric
1292
+ Eero Helenius
1293
+ Nick Wellnhofer
1294
+ Rhodri James
1295
+ Tomas Korbar
1296
+ Yury Gribov
1297
+ and
1298
+ Clang LeakSan
1299
+ JetBrains
1300
+ OSS-Fuzz
1301
+
1302
+ Release 2.3.0 Thu March 25 2021
1303
+ Bug fixes:
1304
+ #438 When calling XML_ParseBuffer without a prior successful call to
1305
+ XML_GetBuffer as a user, no longer trigger undefined behavior
1306
+ (by adding an integer to a NULL pointer) but rather return
1307
+ XML_STATUS_ERROR and set the error code to (new) code
1308
+ XML_ERROR_NO_BUFFER. Found by UBSan (UndefinedBehaviorSanitizer)
1309
+ of Clang 11 (but not Clang 9).
1310
+ #444 xmlwf: Exit status 2 was used for both:
1311
+ - malformed input files (documented) and
1312
+ - invalid command-line arguments (undocumented).
1313
+ The case of invalid command-line arguments now
1314
+ has its own exit status 4, resolving the ambiguity.
1315
+
1316
+ Other changes:
1317
+ #439 xmlwf: Add argument -k to allow continuing after
1318
+ non-fatal errors
1319
+ #439 xmlwf: Add section about exit status to the -h help output
1320
+ #422 #426 #447 Windows: Drop support for Visual Studio <=14.0/2015
1321
+ #434 Windows: CMake: Detect unsupported Visual Studio at
1322
+ configure time (rather than at compile time)
1323
+ #382 #428 testrunner: Make verbose mode (argument "-v") report
1324
+ about passed tests, and make default mode report about
1325
+ failures, as well.
1326
+ #442 CMake: Call "enable_language(CXX)" prior to tinkering
1327
+ with CMAKE_CXX_* variables
1328
+ #448 Document use of libexpat from a CMake-based project
1329
+ #451 Autotools: Install CMake files as generated by CMake 3.19.6
1330
+ so that users with "find_package(expat [..] CONFIG [..])"
1331
+ are served on distributions that are *not* using the CMake
1332
+ build system inside for libexpat packaging
1333
+ #436 #437 Autotools: Drop obsolescent macro AC_HEADER_STDC
1334
+ #450 #452 Autotools: Resolve use of obsolete macro AC_CONFIG_HEADER
1335
+ #441 Address compiler warnings
1336
+ #443 Version info bumped from 7:12:6 to 8:0:7
1337
+ due to addition of error code XML_ERROR_NO_BUFFER
1338
+ (see https://verbump.de/ for what these numbers do)
1339
+
1340
+ Infrastructure:
1341
+ #435 #446 Replace Travis CI by GitHub Actions
1342
+
1343
+ Special thanks to:
1344
+ Alexander Richardson
1345
+ Oleksandr Popovych
1346
+ Thomas Beutlich
1347
+ Tim Bray
1348
+ and
1349
+ Clang LeakSan, Clang 11 UBSan and the Clang team
1350
+
1351
+ Release 2.2.10 Sat October 3 2020
1352
+ Bug fixes:
1353
+ #390 #395 #398 Fix undefined behavior during parsing caused by
1354
+ pointer arithmetic with NULL pointers
1355
+ #404 #405 Fix reading uninitialized variable during parsing
1356
+ #406 xmlwf: Add missing check for malloc NULL return
1357
+
1358
+ Other changes:
1359
+ #396 Windows: Drop support for Visual Studio <=8.0/2005
1360
+ #409 Windows: Add missing file "Changes" to the installer
1361
+ to fix compilation with CMake from installed sources
1362
+ #403 xmlwf: Document exit codes in xmlwf manpage and
1363
+ exit with code 3 (rather than code 1) for output errors
1364
+ when used with "-d DIRECTORY"
1365
+ #356 #359 MinGW: Provide declaration of rand_s for mingwrt <5.3.0
1366
+ #383 #392 Autotools: Use -Werror while configure tests the compiler
1367
+ for supported compile flags to avoid false positives
1368
+ #383 #393 #394 Autotools: Improve handling of user (C|CPP|CXX|LD)FLAGS,
1369
+ e.g. ensure that they have the last word over flags added
1370
+ while running ./configure
1371
+ #360 CMake: Create libexpatw.{dll,so} and expatw.pc (with emphasis
1372
+ on suffix "w") with -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
1373
+ #360 CMake: Detect and deny unsupported build combinations
1374
+ involving -DEXPAT_CHAR_TYPE=(ushort|wchar_t)
1375
+ #360 CMake: Install pre-compiled shipped xmlwf.1 manpage in case
1376
+ of -DEXPAT_BUILD_DOCS=OFF
1377
+ #375 #380 #419 CMake: Fix use of Expat by means of add_subdirectory
1378
+ #407 #408 CMake: Keep expat target name constant at "expat"
1379
+ (i.e. refrain from using the target name to control
1380
+ build artifact filenames)
1381
+ #385 CMake: Fix compilation with -DEXPAT_SHARED_LIBS=OFF for
1382
+ Windows
1383
+ CMake: Expose man page compilation as target "xmlwf-manpage"
1384
+ #413 #414 CMake: Introduce option EXPAT_BUILD_PKGCONFIG
1385
+ to control generation of pkg-config file "expat.pc"
1386
+ #424 CMake: Add minimalistic support for building binary packages
1387
+ with CMake target "package"; based on CPack
1388
+ #366 CMake: Add option -DEXPAT_OSSFUZZ_BUILD=(ON|OFF) with
1389
+ default OFF to build fuzzer code against OSS-Fuzz and
1390
+ related environment variable LIB_FUZZING_ENGINE
1391
+ #354 Fix testsuite for -DEXPAT_DTD=OFF and -DEXPAT_NS=OFF, each
1392
+ #354 #355 ..
1393
+ #356 #412 Address compiler warnings
1394
+ #368 #369 Address pngcheck warnings with doc/*.png images
1395
+ #425 Version info bumped from 7:11:6 to 7:12:6
1396
+
1397
+ Special thanks to:
1398
+ asavah
1399
+ Ben Wagner
1400
+ Bhargava Shastry
1401
+ Frank Landgraf
1402
+ Jeffrey Walton
1403
+ Joe Orton
1404
+ Kleber Tarcísio
1405
+ Ma Lin
1406
+ Maciej Sroczyński
1407
+ Mohammed Khajapasha
1408
+ Vadim Zeitlin
1409
+ and
1410
+ Cppcheck 2.0 and the Cppcheck team
1411
+
1412
+ Release 2.2.9 Wed September 25 2019
1413
+ Other changes:
1414
+ examples: Drop executable bits from elements.c
1415
+ #349 Windows: Change the name of the Windows DLLs from expat*.dll
1416
+ to libexpat*.dll once more (regression from 2.2.8, first
1417
+ fixed in 1.95.3, issue #61 on SourceForge today,
1418
+ was issue #432456 back then); needs a fix due
1419
+ case-insensitive file systems on Windows and the fact that
1420
+ Perl's XML::Parser::Expat compiles into Expat.dll.
1421
+ #347 Windows: Only define _CRT_RAND_S if not defined
1422
+ Version info bumped from 7:10:6 to 7:11:6
1423
+
1424
+ Special thanks to:
1425
+ Ben Wagner
1426
+
1427
+ Release 2.2.8 Fri September 13 2019
1428
+ Security fixes:
1429
+ #317 #318 CVE-2019-15903 -- Fix heap overflow triggered by
1430
+ XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber),
1431
+ and deny internal entities closing the doctype;
1432
+ fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43
1433
+
1434
+ Bug fixes:
1435
+ #240 Fix cases where XML_StopParser did not have any effect
1436
+ when called from inside of an end element handler
1437
+ #341 xmlwf: Fix exit code for operation without "-d DIRECTORY";
1438
+ previously, only "-d DIRECTORY" would give you a proper
1439
+ exit code:
1440
+ # xmlwf -d . <<<'<not well-formed>' 2>/dev/null ; echo $?
1441
+ 2
1442
+ # xmlwf <<<'<not well-formed>' 2>/dev/null ; echo $?
1443
+ 0
1444
+ Now both cases return exit code 2.
1445
+
1446
+ Other changes:
1447
+ #299 #302 Windows: Replace LoadLibrary hack to access
1448
+ unofficial API function SystemFunction036 (RtlGenRandom)
1449
+ by using official API function rand_s (needs WinXP+)
1450
+ #325 Windows: Drop support for Visual Studio <=7.1/2003
1451
+ and document supported compilers in README.md
1452
+ #286 Windows: Remove COM code from xmlwf; in case it turns
1453
+ out needed later, there will be a dedicated repository
1454
+ below https://github.com/libexpat/ for that code
1455
+ #322 Windows: Remove explicit MSVC solution and project files.
1456
+ You can generate Visual Studio solution files through
1457
+ CMake, e.g.: cmake -G"Visual Studio 15 2017" .
1458
+ #338 xmlwf: Make "xmlwf -h" help output more friendly
1459
+ #339 examples: Improve elements.c
1460
+ #244 #264 Autotools: Add argument --enable-xml-attr-info
1461
+ #239 #301 Autotools: Add arguments
1462
+ --with-getrandom
1463
+ --without-getrandom
1464
+ --with-sys-getrandom
1465
+ --without-sys-getrandom
1466
+ #312 #343 Autotools: Fix linking issues with "./configure LD=clang"
1467
+ Autotools: Fix "make run-xmltest" for out-of-source builds
1468
+ #329 #336 CMake: Pull all options from Expat <=2.2.7 into namespace
1469
+ prefix EXPAT_ with the exception of DOCBOOK_TO_MAN:
1470
+ - BUILD_doc -> EXPAT_BUILD_DOCS (plural)
1471
+ - BUILD_examples -> EXPAT_BUILD_EXAMPLES
1472
+ - BUILD_shared -> EXPAT_SHARED_LIBS
1473
+ - BUILD_tests -> EXPAT_BUILD_TESTS
1474
+ - BUILD_tools -> EXPAT_BUILD_TOOLS
1475
+ - DOCBOOK_TO_MAN -> DOCBOOK_TO_MAN (unchanged)
1476
+ - INSTALL -> EXPAT_ENABLE_INSTALL
1477
+ - MSVC_USE_STATIC_CRT -> EXPAT_MSVC_STATIC_CRT
1478
+ - USE_libbsd -> EXPAT_WITH_LIBBSD
1479
+ - WARNINGS_AS_ERRORS -> EXPAT_WARNINGS_AS_ERRORS
1480
+ - XML_CONTEXT_BYTES -> EXPAT_CONTEXT_BYTES
1481
+ - XML_DEV_URANDOM -> EXPAT_DEV_URANDOM
1482
+ - XML_DTD -> EXPAT_DTD
1483
+ - XML_NS -> EXPAT_NS
1484
+ - XML_UNICODE -> EXPAT_CHAR_TYPE=ushort (!)
1485
+ - XML_UNICODE_WCHAR_T -> EXPAT_CHAR_TYPE=wchar_t (!)
1486
+ #244 #264 CMake: Add argument -DEXPAT_ATTR_INFO=(ON|OFF),
1487
+ default OFF
1488
+ #326 CMake: Add argument -DEXPAT_LARGE_SIZE=(ON|OFF),
1489
+ default OFF
1490
+ #328 CMake: Add argument -DEXPAT_MIN_SIZE=(ON|OFF),
1491
+ default OFF
1492
+ #239 #277 CMake: Add arguments
1493
+ -DEXPAT_WITH_GETRANDOM=(ON|OFF|AUTO), default AUTO
1494
+ -DEXPAT_WITH_SYS_GETRANDOM=(ON|OFF|AUTO), default AUTO
1495
+ #326 CMake: Install expat_config.h to include directory
1496
+ #326 CMake: Generate and install configuration files for
1497
+ future find_package(expat [..] CONFIG [..])
1498
+ CMake: Now produces a summary of applied configuration
1499
+ CMake: Require C++ compiler only when tests are enabled
1500
+ #330 CMake: Fix compilation for 16bit character types,
1501
+ i.e. ex -DXML_UNICODE=ON (and ex -DXML_UNICODE_WCHAR_T=ON)
1502
+ #265 CMake: Fix linking with MinGW
1503
+ #330 CMake: Add full support for MinGW; to enable, use
1504
+ -DCMAKE_TOOLCHAIN_FILE=[expat]/cmake/mingw-toolchain.cmake
1505
+ #330 CMake: Port "make run-xmltest" from GNU Autotools to CMake
1506
+ #316 CMake: Windows: Make binary postfix match MSVC
1507
+ Old: expat[d].lib
1508
+ New: expat[w][d][MD|MT].lib
1509
+ CMake: Migrate files from Windows to Unix line endings
1510
+ #308 CMake: Integrate OSS-Fuzz fuzzers, option
1511
+ -DEXPAT_BUILD_FUZZERS=(ON|OFF), default OFF
1512
+ #14 Drop an OpenVMS support leftover
1513
+ #235 #268 ..
1514
+ #270 #310 ..
1515
+ #313 #331 #333 Address compiler warnings
1516
+ #282 #283 ..
1517
+ #284 #285 Address cppcheck warnings
1518
+ #294 #295 Address Clang Static Analyzer warnings
1519
+ #24 #293 Mass-apply clang-format 9 (and ensure conformance during CI)
1520
+ Version info bumped from 7:9:6 to 7:10:6
1521
+
1522
+ Special thanks to:
1523
+ David Loffredo
1524
+ Joonun Jang
1525
+ Kishore Kunche
1526
+ Marco Maggi
1527
+ Mitch Phillips
1528
+ Mohammed Khajapasha
1529
+ Rolf Ade
1530
+ xantares
1531
+ Zhongyuan Zhou
1532
+
1533
+ Release 2.2.7 Wed June 19 2019
1534
+ Security fixes:
1535
+ #186 #262 CVE-2018-20843 -- Fix extraction of namespace prefixes from
1536
+ XML names; XML names with multiple colons could end up in
1537
+ the wrong namespace, and take a high amount of RAM and CPU
1538
+ resources while processing, opening the door to
1539
+ use for denial-of-service attacks
1540
+
1541
+ Other changes:
1542
+ #195 #197 Autotools/CMake: Utilize -fvisibility=hidden to stop
1543
+ exporting non-API symbols
1544
+ #227 Autotools: Add --without-examples and --without-tests
1545
+ #228 Autotools: Modernize configure.ac
1546
+ #245 #246 Autotools: Fix check for -fvisibility=hidden for Clang
1547
+ #247 #248 Autotools: Fix compilation for lack of docbook2x-man
1548
+ #236 #258 Autotools: Produce .tar.{gz,lz,xz} release archives
1549
+ #212 CMake: Make libdir of pkgconfig expat.pc support multilib
1550
+ #158 #263 CMake: Build man page in PROJECT_BINARY_DIR not _SOURCE_DIR
1551
+ #219 Remove fallback to bcopy, assume that memmove(3) exists
1552
+ #257 Use portable "/usr/bin/env bash" shebang (e.g. for OpenBSD)
1553
+ #243 Windows: Fix syntax of .def module definition files
1554
+ Version info bumped from 7:8:6 to 7:9:6
1555
+
1556
+ Special thanks to:
1557
+ Benjamin Peterson
1558
+ Caolán McNamara
1559
+ Hanno Böck
1560
+ KangLin
1561
+ Kishore Kunche
1562
+ Marco Maggi
1563
+ Rhodri James
1564
+ Sebastian Dröge
1565
+ userwithuid
1566
+ Yury Gribov
1567
+
1568
+ Release 2.2.6 Sun August 12 2018
1569
+ Bug fixes:
1570
+ #170 #206 Avoid doing arithmetic with NULL pointers in XML_GetBuffer
1571
+ #204 #205 Fix 2.2.5 regression with suspend-resume while parsing
1572
+ a document like '<root/>'
1573
+
1574
+ Other changes:
1575
+ #165 #168 Autotools: Fix docbook-related configure syntax error
1576
+ #166 Autotools: Avoid grep option `-q` for Solaris
1577
+ #167 Autotools: Support
1578
+ ./configure DOCBOOK_TO_MAN="xmlto man --skip-validation"
1579
+ #159 #167 Autotools: Support DOCBOOK_TO_MAN command which produces
1580
+ xmlwf.1 rather than XMLWF.1; also covers case insensitive
1581
+ file systems
1582
+ #181 Autotools: Drop -rpath option passed to libtool
1583
+ #188 Autotools: Detect and deny SGML docbook2man as ours is XML
1584
+ #188 Autotools/CMake: Support command db2x_docbook2man as well
1585
+ #174 CMake: Introduce option WARNINGS_AS_ERRORS, defaults to OFF
1586
+ #184 #185 CMake: Introduce option MSVC_USE_STATIC_CRT, defaults to OFF
1587
+ #207 #208 CMake: Introduce option XML_UNICODE and XML_UNICODE_WCHAR_T,
1588
+ both defaulting to OFF
1589
+ #175 CMake: Prefer check_symbol_exists over check_function_exists
1590
+ #176 CMake: Create the same pkg-config file as with GNU Autotools
1591
+ #178 #179 CMake: Use GNUInstallDirs module to set proper defaults for
1592
+ install directories
1593
+ #208 CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM
1594
+ #180 Windows: Fix compilation of test suite for Visual Studio 2008
1595
+ #131 #173 #202 Address compiler warnings
1596
+ #187 #190 #200 Fix miscellaneous typos
1597
+ Version info bumped from 7:7:6 to 7:8:6
1598
+
1599
+ Special thanks to:
1600
+ Anton Maklakov
1601
+ Benjamin Peterson
1602
+ Brad King
1603
+ Franek Korta
1604
+ Frank Rast
1605
+ Joe Orton
1606
+ luzpaz
1607
+ Pedro Vicente
1608
+ Rainer Jung
1609
+ Rhodri James
1610
+ Rolf Ade
1611
+ Rolf Eike Beer
1612
+ Thomas Beutlich
1613
+ Tomasz Kłoczko
1614
+
1615
+ Release 2.2.5 Tue October 31 2017
1616
+ Bug fixes:
1617
+ #8 If the parser runs out of memory, make sure its internal
1618
+ state reflects the memory it actually has, not the memory
1619
+ it wanted to have.
1620
+ #11 The default handler wasn't being called when it should for
1621
+ a SYSTEM or PUBLIC doctype if an entity declaration handler
1622
+ was registered.
1623
+ #137 #138 Fix a case of mistakenly reported parsing success where
1624
+ XML_StopParser was called from an element handler
1625
+ #162 Function XML_ErrorString was returning NULL rather than
1626
+ a message for code XML_ERROR_INVALID_ARGUMENT
1627
+ introduced with release 2.2.1
1628
+
1629
+ Other changes:
1630
+ #106 xmlwf: Add argument -N adding notation declarations
1631
+ #75 #106 Test suite: Resolve expected failure cases where xmlwf
1632
+ output was incomplete
1633
+ #127 Windows: Fix test suite compilation
1634
+ #126 #127 Windows: Fix compilation for Visual Studio 2012
1635
+ Windows: Upgrade shipped project files to Visual Studio 2017
1636
+ #33 #132 tests: Mass-fix compilation for XML_UNICODE_WCHAR_T
1637
+ #129 examples: Fix compilation for XML_UNICODE_WCHAR_T
1638
+ #130 benchmark: Fix compilation for XML_UNICODE_WCHAR_T
1639
+ #144 xmlwf: Fix compilation for XML_UNICODE_WCHAR_T; still needs
1640
+ Windows or MinGW for 2-byte wchar_t
1641
+ #9 Address two Clang Static Analyzer false positives
1642
+ #59 Resolve troublesome macros hiding parser struct membership
1643
+ and dereferencing that pointer
1644
+ #6 Resolve superfluous internal malloc/realloc switch
1645
+ #153 #155 Improve docbook2x-man detection
1646
+ #160 Undefine NDEBUG in the test suite (rather than rejecting it)
1647
+ #161 Address compiler warnings
1648
+ Version info bumped from 7:6:6 to 7:7:6
1649
+
1650
+ Special thanks to:
1651
+ Benbuck Nason
1652
+ Hans Wennborg
1653
+ José Gutiérrez de la Concha
1654
+ Pedro Monreal Gonzalez
1655
+ Rhodri James
1656
+ Rolf Ade
1657
+ Stephen Groat
1658
+ and
1659
+ Core Infrastructure Initiative
1660
+
1661
+ Release 2.2.4 Sat August 19 2017
1662
+ Bug fixes:
1663
+ #115 Fix copying of partial characters for UTF-8 input
1664
+
1665
+ Other changes:
1666
+ #109 Fix "make check" for non-x86 architectures that default
1667
+ to unsigned type char (-128..127 rather than 0..255)
1668
+ #109 coverage.sh: Cover -funsigned-char
1669
+ Autotools: Introduce --without-xmlwf argument
1670
+ #65 Autotools: Replace handwritten Makefile with GNU Automake
1671
+ #43 CMake: Auto-detect high quality entropy extractors, add new
1672
+ option USE_libbsd=ON to use arc4random_buf of libbsd
1673
+ #74 CMake: Add -fno-strict-aliasing only where supported
1674
+ #114 CMake: Always honor manually set BUILD_* options
1675
+ #114 CMake: Compile man page if docbook2x-man is available, only
1676
+ #117 Include file tests/xmltest.log.expected in source tarball
1677
+ (required for "make run-xmltest")
1678
+ #117 Include (existing) Visual Studio 2013 files in source tarball
1679
+ Improve test suite error output
1680
+ #111 Fix some typos in documentation
1681
+ Version info bumped from 7:5:6 to 7:6:6
1682
+
1683
+ Special thanks to:
1684
+ Jakub Wilk
1685
+ Joe Orton
1686
+ Lin Tian
1687
+ Rolf Eike Beer
1688
+
1689
+ Release 2.2.3 Wed August 2 2017
1690
+ Security fixes:
1691
+ #82 CVE-2017-11742 -- Windows: Fix DLL hijacking vulnerability
1692
+ using Steve Holme's LoadLibrary wrapper for/of cURL
1693
+
1694
+ Bug fixes:
1695
+ #85 Fix a dangling pointer issue related to realloc
1696
+
1697
+ Other changes:
1698
+ Increase code coverage
1699
+ #91 Linux: Allow getrandom to fail if nonblocking pool has not
1700
+ yet been initialized and read /dev/urandom then, instead.
1701
+ This is in line with what recent Python does.
1702
+ #81 Pre-10.7/Lion macOS: Support entropy from arc4random
1703
+ #86 Check that a UTF-16 encoding in an XML declaration has the
1704
+ right endianness
1705
+ #4 #5 #7 Recover correctly when some reallocations fail
1706
+ Repair "./configure && make" for systems without any
1707
+ provider of high quality entropy
1708
+ and try reading /dev/urandom on those
1709
+ Ensure that user-defined character encodings have converter
1710
+ functions when they are needed
1711
+ Fix mis-leading description of argument -c in xmlwf.1
1712
+ Rely on macro HAVE_ARC4RANDOM_BUF (rather than __CloudABI__)
1713
+ for CloudABI
1714
+ #100 Fix use of SIPHASH_MAIN in siphash.h
1715
+ #23 Test suite: Fix memory leaks
1716
+ Version info bumped from 7:4:6 to 7:5:6
1717
+
1718
+ Special thanks to:
1719
+ Chanho Park
1720
+ Joe Orton
1721
+ Pascal Cuoq
1722
+ Rhodri James
1723
+ Simon McVittie
1724
+ Vadim Zeitlin
1725
+ Viktor Szakats
1726
+ and
1727
+ Core Infrastructure Initiative
1728
+
1729
+ Release 2.2.2 Wed July 12 2017
1730
+ Security fixes:
1731
+ #43 Protect against compilation without any source of high
1732
+ quality entropy enabled, e.g. with CMake build system;
1733
+ commit ff0207e6076e9828e536b8d9cd45c9c92069b895
1734
+ #60 Windows with _UNICODE:
1735
+ Unintended use of LoadLibraryW with a non-wide string
1736
+ resulted in failure to load advapi32.dll and degradation
1737
+ in quality of used entropy when compiled with _UNICODE for
1738
+ Windows; you can launch existing binaries with
1739
+ EXPAT_ENTROPY_DEBUG=1 in the environment to inspect the
1740
+ quality of entropy used during runtime; commits
1741
+ * 95b95032f907ef1cd17ee7a9a1768010a825d61d
1742
+ * 73a5a2e9c081f49f2d775cf7ced864158b68dc80
1743
+ [MOX-006] Fix non-NULL parser parameter validation in XML_Parse;
1744
+ resulted in NULL dereference, previously;
1745
+ commit ac256dafdffc9622ab0dc2c62fcecb0dfcfa71fe
1746
+
1747
+ Bug fixes:
1748
+ #69 Fix improper use of unsigned long long integer literals
1749
+
1750
+ Other changes:
1751
+ #73 Start requiring a C99 compiler
1752
+ #49 Fix "==" Bashism in configure script
1753
+ #50 Fix too eager getrandom detection for Debian GNU/kFreeBSD
1754
+ #52 and macOS
1755
+ #51 Address lack of stdint.h in Visual Studio 2003 to 2008
1756
+ #58 Address compile warnings
1757
+ #68 Fix "./buildconf.sh && ./configure" for some versions
1758
+ of Dash for /bin/sh
1759
+ #72 CMake: Ease use of Expat in context of a parent project
1760
+ with multiple CMakeLists.txt files
1761
+ #72 CMake: Resolve mistaken executable permissions
1762
+ #76 Address compile warning with -DNDEBUG (not recommended!)
1763
+ #77 Address compile warning about macro redefinition
1764
+
1765
+ Special thanks to:
1766
+ Alexander Bluhm
1767
+ Ben Boeckel
1768
+ Cătălin Răceanu
1769
+ Kerin Millar
1770
+ László Böszörményi
1771
+ S. P. Zeidler
1772
+ Segev Finer
1773
+ Václav Slavík
1774
+ Victor Stinner
1775
+ Viktor Szakats
1776
+ and
1777
+ Radically Open Security
1778
+
1779
+ Release 2.2.1 Sat June 17 2017
1780
+ Security fixes:
1781
+ CVE-2017-9233 -- External entity infinite loop DoS
1782
+ Details: https://libexpat.github.io/doc/cve-2017-9233/
1783
+ Commit c4bf96bb51dd2a1b0e185374362ee136fe2c9d7f
1784
+ [MOX-002] CVE-2016-9063 -- Detect integer overflow; commit
1785
+ d4f735b88d9932bd5039df2335eefdd0723dbe20
1786
+ (Fixed version of existing downstream patches!)
1787
+ (SF.net) #539 Fix regression from fix to CVE-2016-0718 cutting off
1788
+ longer tag names; commits
1789
+ * 896b6c1fd3b842f377d1b62135dccf0a579cf65d
1790
+ * af507cef2c93cb8d40062a0abe43a4f4e9158fb2
1791
+ #16 * 0dbbf43fdb20f593ddf4fa1ff67288000dd4a7fd
1792
+ #25 More integer overflow detection (function poolGrow); commits
1793
+ * 810b74e4703dcfdd8f404e3cb177d44684775143
1794
+ * 44178553f3539ce69d34abee77a05e879a7982ac
1795
+ [MOX-002] Detect overflow from len=INT_MAX call to XML_Parse; commits
1796
+ * 4be2cb5afcc018d996f34bbbce6374b7befad47f
1797
+ * 7e5b71b748491b6e459e5c9a1d090820f94544d8
1798
+ [MOX-005] #30 Use high quality entropy for hash initialization:
1799
+ * arc4random_buf on BSD, systems with libbsd
1800
+ (when configured with --with-libbsd), CloudABI
1801
+ * RtlGenRandom on Windows XP / Server 2003 and later
1802
+ * getrandom on Linux 3.17+
1803
+ In a way, that's still part of CVE-2016-5300.
1804
+ https://github.com/libexpat/libexpat/pull/30/commits
1805
+ [MOX-005] For the low quality entropy extraction fallback code,
1806
+ the parser instance address can no longer leak, commit
1807
+ 04ad658bd3079dd15cb60fc67087900f0ff4b083
1808
+ [MOX-003] Prevent use of uninitialised variable; commit
1809
+ [MOX-004] a4dc944f37b664a3ca7199c624a98ee37babdb4b
1810
+ Add missing parameter validation to public API functions
1811
+ and dedicated error code XML_ERROR_INVALID_ARGUMENT:
1812
+ [MOX-006] * NULL checks; commits
1813
+ * d37f74b2b7149a3a95a680c4c4cd2a451a51d60a (merge/many)
1814
+ * 9ed727064b675b7180c98cb3d4f75efba6966681
1815
+ * 6a747c837c50114dfa413994e07c0ba477be4534
1816
+ * Negative length (XML_Parse); commit
1817
+ [MOX-002] 70db8d2538a10f4c022655d6895e4c3e78692e7f
1818
+ [MOX-001] #35 Change hash algorithm to William Ahern's version of SipHash
1819
+ to go further with fixing CVE-2012-0876.
1820
+ https://github.com/libexpat/libexpat/pull/39/commits
1821
+
1822
+ Bug fixes:
1823
+ #32 Fix sharing of hash salt across parsers;
1824
+ relevant where XML_ExternalEntityParserCreate is called
1825
+ prior to XML_Parse, in particular (e.g. FBReader)
1826
+ #28 xmlwf: Auto-disable use of memory-mapping (and parsing
1827
+ as a single chunk) for files larger than ~1 GB (2^30 bytes)
1828
+ rather than failing with error "out of memory"
1829
+ #3 Fix double free after malloc failure in DTD code; commit
1830
+ 7ae9c3d3af433cd4defe95234eae7dc8ed15637f
1831
+ #17 Fix memory leak on parser error for unbound XML attribute
1832
+ prefix with new namespaces defined in the same tag;
1833
+ found by Google's OSS-Fuzz; commits
1834
+ * 16f87daae5a16132e479e4f71862128c7a915c73
1835
+ * b47dbc9745932c160893d433220e462bd605f8cd
1836
+ xmlwf on Windows: Add missing calls to CloseHandle
1837
+
1838
+ New features:
1839
+ #30 Introduced environment switch EXPAT_ENTROPY_DEBUG=1
1840
+ for runtime debugging of entropy extraction
1841
+
1842
+ Other changes:
1843
+ Increase code coverage
1844
+ #33 Reject use of XML_UNICODE_WCHAR_T with sizeof(wchar_t) != 2;
1845
+ XML_UNICODE_WCHAR_T was never meant to be used outside
1846
+ of Windows; 4-byte wchar_t is common on Linux
1847
+ (SF.net) #538 Start using -fno-strict-aliasing
1848
+ (SF.net) #540 Support compilation against cloudlibc of CloudABI
1849
+ Allow MinGW cross-compilation
1850
+ (SF.net) #534 CMake: Introduce option "BUILD_doc" (enabled by default)
1851
+ to bypass compilation of the xmlwf.1 man page
1852
+ (SF.net) pr2 CMake: Introduce option "INSTALL" (enabled by default)
1853
+ to bypass installation of expat files
1854
+ CMake: Fix ninja support
1855
+ Autotools: Add parameters --enable-xml-context [COUNT]
1856
+ and --disable-xml-context; default of context of 1024
1857
+ bytes enabled unchanged
1858
+ #14 Drop AmigaOS 4.x code and includes
1859
+ #14 Drop ancient build systems:
1860
+ * Borland C++ Builder
1861
+ * OpenVMS
1862
+ * Open Watcom
1863
+ * Visual Studio 6.0
1864
+ * Pre-X Mac OS (MPW Makefile)
1865
+ If you happen to rely on some of these, please get in
1866
+ touch for joining with maintenance.
1867
+ #10 Move from WIN32 to _WIN32
1868
+ #13 Fix "make run-xmltest" order instability
1869
+ Address compile warnings
1870
+ Bump version info from 7:2:6 to 7:3:6
1871
+ Add AUTHORS file
1872
+
1873
+ Infrastructure:
1874
+ #1 Migrate from SourceForge to GitHub (except downloads):
1875
+ https://github.com/libexpat/
1876
+ #1 Re-create http://libexpat.org/ project website
1877
+ Start utilizing Travis CI
1878
+
1879
+ Special thanks to:
1880
+ Andy Wang
1881
+ Don Lewis
1882
+ Ed Schouten
1883
+ Karl Waclawek
1884
+ Pascal Cuoq
1885
+ Rhodri James
1886
+ Sergei Nikulov
1887
+ Tobias Taschner
1888
+ Viktor Szakats
1889
+ and
1890
+ Core Infrastructure Initiative
1891
+ Mozilla Foundation (MOSS Track 3: Secure Open Source)
1892
+ Radically Open Security
1893
+
1894
+ Release 2.2.0 Tue June 21 2016
1895
+ Security fixes:
1896
+ #537 CVE-2016-0718 -- Fix crash on malformed input
1897
+ CVE-2016-4472 -- Improve insufficient fix to CVE-2015-1283 /
1898
+ CVE-2015-2716 introduced with Expat 2.1.1
1899
+ #499 CVE-2016-5300 -- Use more entropy for hash initialization
1900
+ than the original fix to CVE-2012-0876
1901
+ #519 CVE-2012-6702 -- Resolve troublesome internal call to srand
1902
+ that was introduced with Expat 2.1.0
1903
+ when addressing CVE-2012-0876 (issue #496)
1904
+
1905
+ Bug fixes:
1906
+ Fix uninitialized reads of size 1
1907
+ (e.g. in little2_updatePosition)
1908
+ Fix detection of UTF-8 character boundaries
1909
+
1910
+ Other changes:
1911
+ #532 Fix compilation for Visual Studio 2010 (keyword "C99")
1912
+ Autotools: Resolve use of "$<" to better support bmake
1913
+ Autotools: Add QA script "qa.sh" (and make target "qa")
1914
+ Autotools: Respect CXXFLAGS if given
1915
+ Autotools: Fix "make run-xmltest"
1916
+ Autotools: Have "make run-xmltest" check for expected output
1917
+ p90 CMake: Fix static build (BUILD_shared=OFF) on Windows
1918
+ #536 CMake: Add soversion, support -DNO_SONAME=yes to bypass
1919
+ #323 CMake: Add suffix "d" to differentiate debug from release
1920
+ CMake: Define WIN32 with CMake on Windows
1921
+ Annotate memory allocators for GCC
1922
+ Address all currently known compile warnings
1923
+ Make sure that API symbols remain visible despite
1924
+ -fvisibility=hidden
1925
+ Remove executable flag from source files
1926
+ Resolve COMPILED_FROM_DSP in favor of WIN32
1927
+
1928
+ Special thanks to:
1929
+ Björn Lindahl
1930
+ Christian Heimes
1931
+ Cristian Rodríguez
1932
+ Daniel Krügler
1933
+ Gustavo Grieco
1934
+ Karl Waclawek
1935
+ László Böszörményi
1936
+ Marco Grassi
1937
+ Pascal Cuoq
1938
+ Sergei Nikulov
1939
+ Thomas Beutlich
1940
+ Warren Young
1941
+ Yann Droneaud
1942
+
1943
+ Release 2.1.1 Sat March 12 2016
1944
+ Security fixes:
1945
+ #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer
1946
+
1947
+ Bug fixes:
1948
+ #502: Fix potential null pointer dereference
1949
+ #520: Symbol XML_SetHashSalt was not exported
1950
+ Output of "xmlwf -h" was incomplete
1951
+
1952
+ Other changes:
1953
+ #503: Document behavior of calling XML_SetHashSalt with salt 0
1954
+ Minor improvements to man page xmlwf(1)
1955
+ Improvements to the experimental CMake build system
1956
+ libtool now invoked with --verbose
1957
+
1958
+ Release 2.1.0 Sat March 24 2012
1959
+ - Security fixes:
1960
+ #2958794: CVE-2012-1148 - Memory leak in poolGrow.
1961
+ #2895533: CVE-2012-1147 - Resource leak in readfilemap.c.
1962
+ #3496608: CVE-2012-0876 - Hash DOS attack.
1963
+ #2894085: CVE-2009-3560 - Buffer over-read and crash in big2_toUtf8().
1964
+ #1990430: CVE-2009-3720 - Parser crash with special UTF-8 sequences.
1965
+ - Bug Fixes:
1966
+ #1742315: Harmful XML_ParserCreateNS suggestion.
1967
+ #1785430: Expat build fails on linux-amd64 with gcc version>=4.1 -O3.
1968
+ #1983953, 2517952, 2517962, 2649838:
1969
+ Build modifications using autoreconf instead of buildconf.sh.
1970
+ #2815947, #2884086: OBJEXT and EXEEXT support while building.
1971
+ #2517938: xmlwf should return non-zero exit status if not well-formed.
1972
+ #2517946: Wrong statement about XMLDecl in xmlwf.1 and xmlwf.sgml.
1973
+ #2855609: Dangling positionPtr after error.
1974
+ #2990652: CMake support.
1975
+ #3010819: UNEXPECTED_STATE with a trailing "%" in entity value.
1976
+ #3206497: Uninitialized memory returned from XML_Parse.
1977
+ #3287849: make check fails on mingw-w64.
1978
+ - Patches:
1979
+ #1749198: pkg-config support.
1980
+ #3010222: Fix for bug #3010819.
1981
+ #3312568: CMake support.
1982
+ #3446384: Report byte offsets for attr names and values.
1983
+ - New Features / API changes:
1984
+ Added new API member XML_SetHashSalt() that allows setting an initial
1985
+ value (salt) for hash calculations. This is part of the fix for
1986
+ bug #3496608 to randomize hash parameters.
1987
+ When compiled with XML_ATTR_INFO defined, adds new API member
1988
+ XML_GetAttributeInfo() that allows retrieving the byte
1989
+ offsets for attribute names and values (patch #3446384).
1990
+ Added CMake build system.
1991
+ See bug #2990652 and patch #3312568.
1992
+ Added run-benchmark target to Makefile.in - relies on testdata module
1993
+ present in the same relative location as in the repository.
1994
+
1995
+ Release 2.0.1 Tue June 5 2007
1996
+ - Fixed bugs #1515266, #1515600: The character data handler's calling
1997
+ of XML_StopParser() was not handled properly; if the parser was
1998
+ stopped and the handler set to NULL, the parser would segfault.
1999
+ - Fixed bug #1690883: Expat failed on EBCDIC systems as it assumed
2000
+ some character constants to be ASCII encoded.
2001
+ - Minor cleanups of the test harness.
2002
+ - Fixed xmlwf bug #1513566: "out of memory" error on file size zero.
2003
+ - Fixed outline.c bug #1543233: missing a final XML_ParserFree() call.
2004
+ - Fixes and improvements for Windows platform:
2005
+ bugs #1409451, #1476160, #1548182, #1602769, #1717322.
2006
+ - Build fixes for various platforms:
2007
+ HP-UX, Tru64, Solaris 9: patch #1437840, bug #1196180.
2008
+ All Unix: #1554618 (refreshed config.sub/config.guess).
2009
+ #1490371, #1613457: support both, DESTDIR and INSTALL_ROOT,
2010
+ without relying on GNU-Make specific features.
2011
+ #1647805: Patched configure.in to work better with Intel compiler.
2012
+ - Fixes to Makefile.in to have make check work correctly:
2013
+ bugs #1408143, #1535603, #1536684.
2014
+ - Added Open Watcom support: patch #1523242.
2015
+
2016
+ Release 2.0.0 Wed Jan 11 2006
2017
+ - We no longer use the "check" library for C unit testing; we
2018
+ always use the (partial) internal implementation of the API.
2019
+ - Report XML_NS setting via XML_GetFeatureList().
2020
+ - Fixed headers for use from C++.
2021
+ - XML_GetCurrentLineNumber() and XML_GetCurrentColumnNumber()
2022
+ now return unsigned integers.
2023
+ - Added XML_LARGE_SIZE switch to enable 64-bit integers for
2024
+ byte indexes and line/column numbers.
2025
+ - Updated to use libtool 1.5.22 (the most recent).
2026
+ - Added support for AmigaOS.
2027
+ - Some mostly minor bug fixes. SF issues include: #1006708,
2028
+ #1021776, #1023646, #1114960, #1156398, #1221160, #1271642.
2029
+
2030
+ Release 1.95.8 Fri Jul 23 2004
2031
+ - Major new feature: suspend/resume. Handlers can now request
2032
+ that a parse be suspended for later resumption or aborted
2033
+ altogether. See "Temporarily Stopping Parsing" in the
2034
+ documentation for more details.
2035
+ - Some mostly minor bug fixes, but compilation should no
2036
+ longer generate warnings on most platforms. SF issues
2037
+ include: #827319, #840173, #846309, #888329, #896188, #923913,
2038
+ #928113, #961698, #985192.
2039
+
2040
+ Release 1.95.7 Mon Oct 20 2003
2041
+ - Fixed enum XML_Status issue (reported on SourceForge many
2042
+ times), so compilers that are properly picky will be happy.
2043
+ - Introduced an XMLCALL macro to control the calling
2044
+ convention used by the Expat API; this macro should be used
2045
+ to annotate prototypes and definitions of callback
2046
+ implementations in code compiled with a calling convention
2047
+ other than the default convention for the host platform.
2048
+ - Improved ability to build without the configure-generated
2049
+ expat_config.h header. This is useful for applications
2050
+ which embed Expat rather than linking in the library.
2051
+ - Fixed a variety of bugs: see SF issues #458907, #609603,
2052
+ #676844, #679754, #692878, #692964, #695401, #699323, #699487,
2053
+ #820946.
2054
+ - Improved hash table lookups.
2055
+ - Added more regression tests and improved documentation.
2056
+
2057
+ Release 1.95.6 Tue Jan 28 2003
2058
+ - Added XML_FreeContentModel().
2059
+ - Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
2060
+ - Fixed a variety of bugs: see SF issues #615606, #616863,
2061
+ #618199, #653180, #673791.
2062
+ - Enhanced the regression test suite.
2063
+ - Man page improvements: includes SF issue #632146.
2064
+
2065
+ Release 1.95.5 Fri Sep 6 2002
2066
+ - Added XML_UseForeignDTD() for improved SAX2 support.
2067
+ - Added XML_GetFeatureList().
2068
+ - Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
2069
+ - Use an incomplete struct instead of a void* for the parser
2070
+ (may not retain).
2071
+ - Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
2072
+ - Finally fixed bug where default handler would report DTD
2073
+ events that were already handled by another handler.
2074
+ Initial patch contributed by Darryl Miles.
2075
+ - Removed unnecessary DllMain() function that caused static
2076
+ linking into a DLL to be difficult.
2077
+ - Added VC++ projects for building static libraries.
2078
+ - Reduced line-length for all source code and headers to be
2079
+ no longer than 80 characters, to help with AS/400 support.
2080
+ - Reduced memory copying during parsing (SF patch #600964).
2081
+ - Fixed a variety of bugs: see SF issues #580793, #434664,
2082
+ #483514, #580503, #581069, #584041, #584183, #584832, #585537,
2083
+ #596555, #596678, #598352, #598944, #599715, #600479, #600971.
2084
+
2085
+ Release 1.95.4 Fri Jul 12 2002
2086
+ - Added support for VMS, contributed by Craig Berry. See
2087
+ vms/README.vms for more information.
2088
+ - Added Mac OS (classic) support, with a makefile for MPW,
2089
+ contributed by Thomas Wegner and Daryle Walker.
2090
+ - Added Borland C++ Builder 5 / BCC 5.5 support, contributed
2091
+ by Patrick McConnell (SF patch #538032).
2092
+ - Fixed a variety of bugs: see SF issues #441449, #563184,
2093
+ #564342, #566334, #566901, #569461, #570263, #575168, #579196.
2094
+ - Made skippedEntityHandler conform to SAX2 (see source comment)
2095
+ - Re-implemented WFC: Entity Declared from XML 1.0 spec and
2096
+ added a new error "entity declared in parameter entity":
2097
+ see SF bug report #569461 and SF patch #578161
2098
+ - Re-implemented section 5.1 from XML 1.0 spec:
2099
+ see SF bug report #570263 and SF patch #578161
2100
+
2101
+ Release 1.95.3 Mon Jun 3 2002
2102
+ - Added a project to the MSVC workspace to create a wchar_t
2103
+ version of the library; the DLLs are named libexpatw.dll.
2104
+ - Changed the name of the Windows DLLs from expat.dll to
2105
+ libexpat.dll; this fixes SF bug #432456.
2106
+ - Added the XML_ParserReset() API function.
2107
+ - Fixed XML_SetReturnNSTriplet() to work for element names.
2108
+ - Made the XML_UNICODE builds usable (thanks, Karl!).
2109
+ - Allow xmlwf to read from standard input.
2110
+ - Install a man page for xmlwf on Unix systems.
2111
+ - Fixed many bugs; see SF bug reports #231864, #461380, #464837,
2112
+ #466885, #469226, #477667, #484419, #487840, #494749, #496505,
2113
+ #547350. Other bugs which we can't test as easily may also
2114
+ have been fixed, especially in the area of build support.
2115
+
2116
+ Release 1.95.2 Fri Jul 27 2001
2117
+ - More changes to make MSVC happy with the build; add a single
2118
+ workspace to support both the library and xmlwf application.
2119
+ - Added a Windows installer for Windows users; includes
2120
+ xmlwf.exe.
2121
+ - Added compile-time constants that can be used to determine the
2122
+ Expat version
2123
+ - Removed a lot of GNU-specific dependencies to aide portability
2124
+ among the various Unix flavors.
2125
+ - Fix the UTF-8 BOM bug.
2126
+ - Cleaned up warning messages for several compilers.
2127
+ - Added the -Wall, -Wstrict-prototypes options for GCC.
2128
+
2129
+ Release 1.95.1 Sun Oct 22 15:11:36 EDT 2000
2130
+ - Changes to get expat to build under Microsoft compiler
2131
+ - Removed all aborts and instead return an UNEXPECTED_STATE error.
2132
+ - Fixed a bug where a stray '%' in an entity value would cause an
2133
+ abort.
2134
+ - Defined XML_SetEndNamespaceDeclHandler. Thanks to Darryl Miles for
2135
+ finding this oversight.
2136
+ - Changed default patterns in lib/Makefile.in to fit non-GNU makes
2137
+ Thanks to robin@unrated.net for reporting and providing an
2138
+ account to test on.
2139
+ - The reference had the wrong label for XML_SetStartNamespaceDecl.
2140
+ Reported by an anonymous user.
2141
+
2142
+ Release 1.95.0 Fri Sep 29 2000
2143
+ - XML_ParserCreate_MM
2144
+ Allows you to set a memory management suite to replace the
2145
+ standard malloc,realloc, and free.
2146
+ - XML_SetReturnNSTriplet
2147
+ If you turn this feature on when namespace processing is in
2148
+ effect, then qualified, prefixed element and attribute names
2149
+ are returned as "uri|name|prefix" where '|' is whatever
2150
+ separator character is used in namespace processing.
2151
+ - Merged in features from perl-expat
2152
+ o XML_SetElementDeclHandler
2153
+ o XML_SetAttlistDeclHandler
2154
+ o XML_SetXmlDeclHandler
2155
+ o XML_SetEntityDeclHandler
2156
+ o StartDoctypeDeclHandler takes 3 additional parameters:
2157
+ sysid, pubid, has_internal_subset
2158
+ o Many paired handler setters (like XML_SetElementHandler)
2159
+ now have corresponding individual handler setters
2160
+ o XML_GetInputContext for getting the input context of
2161
+ the current parse position.
2162
+ - Added reference material
2163
+ - Packaged into a distribution that builds a sharable library