Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert Chin
* tree.c: Dodji pointed out a bug in xmlGetNodePath()
* xmlcatalog.c: applied patch from Albert Chin to add a
--no-super-update option to xmlcatalog see #145461
and another patch also from Albert Chin to not crash
on -sgml --del without args see #145462
* Makefile.am: applied another patch from Albert Chin to
fix a problem with diff on Solaris #145511
* xmlstring.c: fix xmlCheckUTF8() according to the suggestion
in bug #148115
* python/libxml.py: apply fix from Marc-Antoine Parent about
the errors in libxml(2).py on the node wrapper #135547
Daniel
diff --git a/xmlstring.c b/xmlstring.c
index 5c64053..4a8aa6f 100644
--- a/xmlstring.c
+++ b/xmlstring.c
@@ -766,7 +766,7 @@
for (ix = 0; (c = utf[ix]);) {
if (c & 0x80) {
- if ((utf[ix + 1] & 0xc0) != 0x80)
+ if ((c & 0xc0) != 0x80 || (utf[ix + 1] & 0xc0) != 0x80)
return(0);
if ((c & 0xe0) == 0xe0) {
if ((utf[ix + 2] & 0xc0) != 0x80)