Skip to content

Commit 98dd945

Browse files
committed
Update to 2.14.4
1 parent 5acca03 commit 98dd945

20 files changed

Lines changed: 138 additions & 80 deletions

HTMLtree.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ htmlNodeDumpFileFormat(FILE *out, xmlDocPtr doc,
456456
if (htmlFindOutputEncoder(encoding, &handler) != XML_ERR_OK)
457457
return(-1);
458458
buf = xmlOutputBufferCreateFile(out, handler);
459-
if (buf == NULL)
459+
if (buf == NULL) {
460+
xmlCharEncCloseFunc(handler);
460461
return(-1);
462+
}
461463

462464
htmlNodeDumpFormatOutput(buf, doc, cur, NULL, format);
463465

@@ -508,8 +510,10 @@ htmlDocDumpMemoryFormat(xmlDocPtr cur, xmlChar**mem, int *size, int format) {
508510
if (htmlFindOutputEncoder(encoding, &handler) != XML_ERR_OK)
509511
return;
510512
buf = xmlAllocOutputBuffer(handler);
511-
if (buf == NULL)
513+
if (buf == NULL) {
514+
xmlCharEncCloseFunc(handler);
512515
return;
516+
}
513517

514518
htmlDocContentDumpFormatOutput(buf, cur, NULL, format);
515519

@@ -973,8 +977,10 @@ htmlDocDump(FILE *f, xmlDocPtr cur) {
973977
if (htmlFindOutputEncoder(encoding, &handler) != XML_ERR_OK)
974978
return(-1);
975979
buf = xmlOutputBufferCreateFile(f, handler);
976-
if (buf == NULL)
980+
if (buf == NULL) {
981+
xmlCharEncCloseFunc(handler);
977982
return(-1);
983+
}
978984
htmlDocContentDumpOutput(buf, cur, NULL);
979985

980986
ret = xmlOutputBufferClose(buf);
@@ -1049,8 +1055,10 @@ htmlSaveFileFormat(const char *filename, xmlDocPtr cur,
10491055
* save the content to a temp buffer.
10501056
*/
10511057
buf = xmlOutputBufferCreateFilename(filename, handler, 0);
1052-
if (buf == NULL)
1058+
if (buf == NULL) {
1059+
xmlCharEncCloseFunc(handler);
10531060
return(0);
1061+
}
10541062

10551063
htmlDocContentDumpFormatOutput(buf, cur, encoding, format);
10561064

NEWS

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

3+
v2.14.4: Jun 16 2025
4+
5+
### Regressions
6+
7+
- parser: Fix parsing of PublicIds and VersionNums
8+
- parser: Fix custom SAX parsers without cdataBlock handler
9+
- error: Fix initGenericErrorDefaultFunc compatibility macro again
10+
- io: Make xmlOutputBufferCreate* not free encoder on error
11+
- reader: Fix null deref on malloc failure
12+
- Revert "meson: Install libxml2.py"
13+
14+
### Security
15+
16+
- tree: Fix integer overflow in xmlBuildQName
17+
18+
### Improvements
19+
20+
- parser: Use parser context as default in resource loader
21+
- parser: Only validate EnumerationTypes when requested
22+
- parser: Undeprecate some parser context members
23+
24+
### Build systems
25+
26+
- cmake: Avoid overlinking with non-CMake libxml2-config.cmake
27+
- cmake: Make iconv a private dependency
28+
29+
330
v2.14.3: May 13 2025
431

532
### Regressions

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.3.
5+
This version is libxml2-2.14.4.
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.3
1+
2.14.4

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.3.tar.xz
1+
https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.4.tar.xz

distfiles/libxml2-2.14.3.tar.xz

-2.22 MB
Binary file not shown.
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
5873615e8a9ecbf5c8857c4312ee05d6 Copyright
22
593527269e72117a954aa57d433736ab HTMLparser.c
3-
b6af69c727b8f394fa0131e85db4716a HTMLtree.c
4-
150aebe6502208cd65ede2e92d8c4161 NEWS
3+
02015071c39bef3988175a54921b75cf HTMLtree.c
4+
7735151db0506855dceecb1254a32a8f NEWS
55
826516c7a30d76598dca45cc14bce41a README.libxml2.md
66
bfb3abb8bd95e33844e48cc5ccecc7ab SAX2.c
7-
8981690c83b7cec9b1477cb8a4cc14f9 VERSION
7+
f520edc86e45214b1c37efa3cc866047 VERSION
88
0bbf040d005dc21c6c18801bb50c9677 buf.c
99
8dd775089733bafb67ab4381a3b0d678 c14n.c
1010
e7a49d2c72750c90a9d024951a717414 catalog.c
@@ -33,7 +33,7 @@ d00de0e505d1b4dfcccf9ff38837b61a include/libxml/dict.h
3333
90371c7017be1221a0c4d20089ade92a include/libxml/list.h
3434
a19091d87607448f6151d44a0fc199af include/libxml/nanoftp.h
3535
95b1e4eadd008ebd16424f0f47213062 include/libxml/nanohttp.h
36-
ad2d5d6d9bc3c4203533bfab2f9ce9f1 include/libxml/parser.h
36+
ddc5cccfd33c085f21266892a7742ce7 include/libxml/parser.h
3737
7ebced2873a2b4385242a62fd6a1b772 include/libxml/parserInternals.h
3838
dfa0e955ce14744df32c8a050c5ee84a include/libxml/pattern.h
3939
57f3904c5e485147b394efc08e57725b include/libxml/relaxng.h
@@ -47,7 +47,7 @@ cb66fe1651e4cdb9d7be0f9bedb5946d include/libxml/valid.h
4747
5f5515f392eb784e32cbbb0625d4e850 include/libxml/xlink.h
4848
bdd75f61d6a16a46a90b19a0c7a9f1b1 include/libxml/xmlIO.h
4949
e298a2a7623ba7d34f7cc15d177c53a7 include/libxml/xmlautomata.h
50-
02ac6b7e281ddd7348a452883a1f6393 include/libxml/xmlerror.h
50+
4fb61e44aaff915738a2b1b30702ee7c include/libxml/xmlerror.h
5151
26d97d177931da50c14fb9a2a3aeb089 include/libxml/xmlexports.h
5252
b20325261409bd411e72faae05f94396 include/libxml/xmlmemory.h
5353
42daa004760de761b516979aca3fefcb include/libxml/xmlmodule.h
@@ -89,8 +89,8 @@ e9abcc62adf1d6d1928b3ab09fcbd219 libxml.h
8989
91becf3bf916098d90a6b8dd32f4ce26 lintmain.c
9090
43ff7214436ef334d4ac37cc05391890 list.c
9191
3b672d1cebfb584afd6e698fd402944e nanohttp.c
92-
89be0ab25028d2f3765f672ec71787d5 parser.c
93-
c17618cd151cc54c30954e9c4a593d9b parserInternals.c
92+
94f9fe94f6027efb5290c168eb86dfc8 parser.c
93+
ec3d964a25e6bfd39f5e055643575148 parserInternals.c
9494
2e2f84d12f5b5bf7dbeb82e757950a80 pattern.c
9595
6f2afc821223df750e66988d191b3814 relaxng.c
9696
209388fe5ba75e7d5196e742ae44692b runsuite.c
@@ -108,21 +108,21 @@ c83897a4ef0aa1cbb253f3aec705e57e runxmlconf.c
108108
e51f257be1b98c5a4eeb36880ac33612 testrecurse.c
109109
bd32c7d1228161f2238acd5dcbc61f48 threads.c
110110
97968cacb07d5faec9b175a0d140f913 timsort.h
111-
3fccd36be84b1583650720344acbb3e4 tree.c
111+
8662b9e2d00f6f5d2a5c8b9f969e307c tree.c
112112
6568350c0cf452133acf9a18557a20ac uri.c
113113
4b064c268011fecb1229a6881c35bc56 valid.c
114114
9c005ff633d641334c935d5ed9c560c5 win32/config.h
115115
9ca0965eeabe09b4f8d9a1c6c5d8c3b0 win32/libxml2.rc
116116
6518a873570147854a8e735d544ef069 xinclude.c
117117
7ba9bd3faa15039b66b2ce63577b8c8e xlink.c
118-
d574393c6443e60909a4252816aeb286 xmlIO.c
118+
d6e26158888efb78f2220462f46d46a9 xmlIO.c
119119
a746369f9f1667e6f02ec0094eab54c5 xmlcatalog.c
120120
fd8375f38b5ff6dc929dec42794a892c xmllint.c
121121
da3b1b8cacd1e6d5dc8fd39a6a0d3689 xmlmemory.c
122122
b438c22cebc47ac8844e8a6ce7496152 xmlmodule.c
123-
75a6f48b8814f3a4437c3f36d4f4883c xmlreader.c
123+
e615d295e99a3abab92980f1c1b503e6 xmlreader.c
124124
8d569adc59ca3c0b3478f02b09d35a31 xmlregexp.c
125-
fe3e1a395ae39f6b4234e4a8a3e65722 xmlsave.c
125+
6e2cfdce0eab6f7de85b1645eef70eca xmlsave.c
126126
062620d60d0d5e5b7b004622ff5449a9 xmlschemas.c
127127
80ef1acabf48e79a4829884b78da8481 xmlschemastypes.c
128128
94e990955eb6a68a37d6cb6815ad7d27 xmlstring.c

distfiles/libxml2-2.14.4.tar.xz

2.22 MB
Binary file not shown.

0 commit comments

Comments
 (0)