SHA256
8
0
forked from pool/libxml2

Accepting request 748960 from home:pmonrealgonzalez:branches:devel:libraries:c_c++

- Version update to 2.9.10:
  * Portability:
    + Fix exponent digits when running tests under old MSVC
    + Work around buggy ceil() function on AIX
    + Don't call printf with NULL string in runtest.c
    + Switched from unsigned long to ptrdiff_t in parser.c
    + timsort.h: support older GCCs
    + Make configure.ac work with older pkg-config
  * Bug Fixes:
    + Fix for conditional sections at end of document
    + Make sure that Python tests exit with error code
    + Audit memory error handling in xpath.c
    + Fix error code in xmlTextWriterStartDocument
    + Fix integer overflow when counting written bytes
    + Fix uninitialized memory access in HTML parser
    + Fix memory leak in xmlSchemaValAtomicType
    + Disallow conditional sections in internal subset
    + Fix use-after-free in xmlTextReaderFreeNodeList
    + Fix Regextests
    + Fix empty branch in regex
    + Fix integer overflow in entity recursion check
    + Don't read external entities or XIncludes from stdin
    + Fix Schema determinism check of ##other namespaces
    + Fix potential null deref in xmlSchemaIDCFillNodeTables
    + Fix potential memory leak in xmlBufBackToBuffer
    + Fix error message when processing XIncludes with fallbacks
    + Fix memory leak in xmlRegEpxFromParse
    + 14:00 is a valid timezone for xs:dateTime
    + Fix memory leak in xmlParseBalancedChunkMemoryRecover
    + Fix potential null deref in xmlRelaxNGParsePatterns

OBS-URL: https://build.opensuse.org/request/show/748960
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxml2?expand=0&rev=139
This commit is contained in:
Tomáš Chvátal
2019-11-16 07:50:11 +00:00
committed by Git OBS Bridge
parent 4baea7ff69
commit 1389083202
7 changed files with 134 additions and 24 deletions

View File

@@ -11,9 +11,9 @@ Date: Thu Jan 26 19:11:02 2012 +0800
Index: SAX2.c
===================================================================
--- SAX2.c.orig 2012-09-11 08:01:01.000000000 +0200
+++ SAX2.c 2012-12-15 16:32:27.353560391 +0100
@@ -2188,7 +2188,6 @@
--- SAX2.c.orig
+++ SAX2.c
@@ -2222,7 +2222,6 @@ xmlSAX2StartElementNs(void *ctx,
xmlNodePtr parent;
xmlNsPtr last = NULL, ns;
const xmlChar *uri, *pref;
@@ -21,7 +21,7 @@ Index: SAX2.c
int i, j;
if (ctx == NULL) return;
@@ -2208,20 +2207,6 @@
@@ -2242,20 +2241,6 @@ xmlSAX2StartElementNs(void *ctx,
}
/*
@@ -42,7 +42,7 @@ Index: SAX2.c
* allocate the node
*/
if (ctxt->freeElems != NULL) {
@@ -2234,10 +2219,7 @@
@@ -2269,10 +2254,7 @@ xmlSAX2StartElementNs(void *ctx,
if (ctxt->dictNames)
ret->name = localname;
else {
@@ -54,7 +54,7 @@ Index: SAX2.c
if (ret->name == NULL) {
xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
return;
@@ -2249,11 +2231,8 @@
@@ -2284,11 +2266,8 @@ xmlSAX2StartElementNs(void *ctx,
if (ctxt->dictNames)
ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
(xmlChar *) localname, NULL);
@@ -67,12 +67,12 @@ Index: SAX2.c
if (ret == NULL) {
xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
return;
@@ -2360,31 +2339,6 @@
@@ -2399,31 +2378,6 @@ xmlSAX2StartElementNs(void *ctx,
*/
if (nb_attributes > 0) {
for (j = 0,i = 0;i < nb_attributes;i++,j+=5) {
- /*
- * Handle the rare case of an undefined atribute prefix
- * Handle the rare case of an undefined attribute prefix
- */
- if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) {
- if (ctxt->dictNames) {
@@ -99,7 +99,6 @@ Index: SAX2.c
xmlSAX2AttributeNs(ctxt, attributes[j], attributes[j+1],
attributes[j+3], attributes[j+4]);
}
Index: result/namespaces/err_7.xml
===================================================================
--- result/namespaces/err_7.xml.orig