Skip to content

Commit ffab08b

Browse files
committed
Update to 2.14.2
1 parent cc8266f commit ffab08b

14 files changed

Lines changed: 74 additions & 22 deletions

NEWS

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
NEWS file for libxml2
22

3+
v2.14.2: Apr 17 2025
4+
5+
### Security
6+
7+
- [CVE-2025-32415] schemas: Fix heap buffer overflow in
8+
xmlSchemaIDCFillNodeTables
9+
- [CVE-2025-32414] python: Read at most len/4 characters. (Maks Verver)
10+
11+
### Build
12+
13+
- error: Fix initGenericErrorDefaultFunc compatibility macro
14+
- meson: don't link with pthreads on Windows (Benjamin Gilbert)
15+
- cmake, meson: Align Darwin version info with Autotools
16+
- globals: Fix --with-thread-alloc build
17+
- meson: ensure relaxng option supports minimum option (Lovell Fuller)
18+
19+
320
v2.14.1: Apr 3 2025
421

522
### Regressions
@@ -59,6 +76,11 @@ parser. Custom SAX parsers must use the "len" argument.
5976

6077
xmlIOParseDTD doesn't allow null bytes at the end of the input anymore.
6178

79+
Type and layout of conversion callbacks in struct xmlCharEncodingHandler
80+
were changed. Applications using libxml2's encoding conversion API
81+
should use functions xmlCharEncInFunc and xmlCharEncOutFunc instead of
82+
accessing the callbacks directly.
83+
6284
### New features
6385

6486
Input callbacks can now be set on a parser context and an improved API
@@ -99,6 +121,9 @@ The xpointer() scheme now behaves like the xpath1() scheme.
99121

100122
Several legacy symbols and the functions in xmlunicode.h were removed.
101123

124+
Some unprefixed, internal macros like ATTRIBUTE_UNUSED were removed
125+
from public headers.
126+
102127
ELF version information was removed.
103128

104129
The shell was moved from libxml2 to xmllint. Several related functions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
libxml2 Windows build with Visual Studio.
44

5-
This version is libxml2-2.14.1.
5+
This version is libxml2-2.14.2.
66

77
Note that LZMA support is only available for VS2013 or later.
88

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.14.1
1+
2.14.2

distfiles/download.url

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.1.tar.xz
1+
https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.2.tar.xz

distfiles/libxml2-2.14.1.tar.xz

-2.22 MB
Binary file not shown.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
5873615e8a9ecbf5c8857c4312ee05d6 Copyright
22
99c953e6877c283c0f407c46da99c06d HTMLparser.c
33
b6af69c727b8f394fa0131e85db4716a HTMLtree.c
4-
44290b10c7ee9e205b94f3c1df0d8d6c NEWS
4+
b6267ecb8446655085d104dec1fdec7b NEWS
55
826516c7a30d76598dca45cc14bce41a README.libxml2.md
66
bfb3abb8bd95e33844e48cc5ccecc7ab SAX2.c
7-
15d86deed4a1ab175ac6ec88d2b8923a VERSION
7+
35d7f12f3f1d587e02852833d2e49263 VERSION
88
0bbf040d005dc21c6c18801bb50c9677 buf.c
99
8dd775089733bafb67ab4381a3b0d678 c14n.c
1010
e7a49d2c72750c90a9d024951a717414 catalog.c
@@ -14,7 +14,7 @@ e083ef976478258a08a62e4f00791f8e dict.c
1414
d8fe10692cd89df2041db5b582e60905 encoding.c
1515
b478f9b23e2c37a1198ef38727555c26 entities.c
1616
3fb5998214ac2f8c1d7b48edd03f5b1e error.c
17-
14bed921f11929e2a4e90ad04dc98984 globals.c
17+
8830e531ad96d273576be5e1ab590223 globals.c
1818
7f27751b7d2e4eb2be8fc2814b55092c hash.c
1919
06131ee0b2510dd09ff84e08e5c90721 html5ent.inc
2020
5fb4e30fb993c3c352b7631a4830f11b include/libxml/HTMLparser.h
@@ -47,7 +47,7 @@ cb66fe1651e4cdb9d7be0f9bedb5946d include/libxml/valid.h
4747
5f5515f392eb784e32cbbb0625d4e850 include/libxml/xlink.h
4848
e4d51583ec205b5db552dbd2dc64f464 include/libxml/xmlIO.h
4949
e298a2a7623ba7d34f7cc15d177c53a7 include/libxml/xmlautomata.h
50-
6030d789ab38da98381c3ba1bc77f426 include/libxml/xmlerror.h
50+
02ac6b7e281ddd7348a452883a1f6393 include/libxml/xmlerror.h
5151
26d97d177931da50c14fb9a2a3aeb089 include/libxml/xmlexports.h
5252
b20325261409bd411e72faae05f94396 include/libxml/xmlmemory.h
5353
42daa004760de761b516979aca3fefcb include/libxml/xmlmodule.h
@@ -123,7 +123,7 @@ b438c22cebc47ac8844e8a6ce7496152 xmlmodule.c
123123
de1da5678d5f8d51302262a3240a4c61 xmlreader.c
124124
8d569adc59ca3c0b3478f02b09d35a31 xmlregexp.c
125125
1b5fb7fe5f1fedf0e5ee5434a85c5fa0 xmlsave.c
126-
b184e6f918eb71b92607769cba73b42a xmlschemas.c
126+
062620d60d0d5e5b7b004622ff5449a9 xmlschemas.c
127127
80ef1acabf48e79a4829884b78da8481 xmlschemastypes.c
128128
94e990955eb6a68a37d6cb6815ad7d27 xmlstring.c
129129
6bb5de44558e539f98325ca8f122d6ef xmlunicode.c

distfiles/libxml2-2.14.2.tar.xz

2.22 MB
Binary file not shown.

globals.c

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,11 @@ xmlInitGlobalState(xmlGlobalStatePtr gs) {
598598

599599
#ifdef LIBXML_THREAD_ALLOC_ENABLED
600600
/* XML_GLOBALS_ALLOC */
601-
gs->gs_xmlFree = free;
602-
gs->gs_xmlMalloc = malloc;
603-
gs->gs_xmlMallocAtomic = malloc;
604-
gs->gs_xmlRealloc = realloc;
605-
gs->gs_xmlMemStrdup = xmlPosixStrdup;
601+
gs->free = free;
602+
gs->malloc = malloc;
603+
gs->mallocAtomic = malloc;
604+
gs->realloc = realloc;
605+
gs->memStrdup = xmlPosixStrdup;
606606
#endif
607607

608608
xmlMutexLock(&xmlThrDefMutex);
@@ -754,6 +754,33 @@ __xmlOutputBufferCreateFilenameValue(void) {
754754
return(&xmlGetThreadLocalStorage(0)->outputBufferCreateFilenameValue);
755755
}
756756

757+
#ifdef LIBXML_THREAD_ALLOC_ENABLED
758+
xmlMallocFunc *
759+
__xmlMalloc(void) {
760+
return(&xmlGetThreadLocalStorage(0)->malloc);
761+
}
762+
763+
xmlMallocFunc *
764+
__xmlMallocAtomic(void) {
765+
return(&xmlGetThreadLocalStorage(0)->mallocAtomic);
766+
}
767+
768+
xmlReallocFunc *
769+
__xmlRealloc(void) {
770+
return(&xmlGetThreadLocalStorage(0)->realloc);
771+
}
772+
773+
xmlFreeFunc *
774+
__xmlFree(void) {
775+
return(&xmlGetThreadLocalStorage(0)->free);
776+
}
777+
778+
xmlStrdupFunc *
779+
__xmlMemStrdup(void) {
780+
return(&xmlGetThreadLocalStorage(0)->memStrdup);
781+
}
782+
#endif /* LIBXML_THREAD_ALLOC_ENABLED */
783+
757784
/**
758785
* xmlGetLocalRngState:
759786
*

0 commit comments

Comments
 (0)