From 74e6874851b9104343e69955cc105ca0b73b576b Mon Sep 17 00:00:00 2001 From: Karl Waclawek Date: Sat, 28 Sep 2002 14:47:34 +0000 Subject: [PATCH] Fix for bug #615606. --- expat/lib/xmlparse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 9d2c225c..5853e08e 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1670,8 +1670,12 @@ storeRawNames(XML_Parser parser) char *temp = REALLOC(tag->buf, bufSize); if (temp == NULL) return XML_FALSE; + /* if tag->name.str points to tag->buf (i.e. when namespace + processing is off) then we have to update it + */ + if (tag->name.str == (XML_Char *)tag->buf) + tag->name.str = (XML_Char *)temp; tag->buf = temp; - tag->name.str = (XML_Char *)temp; tag->bufEnd = temp + bufSize; rawNameBuf = temp + nameLen; } -- 2.40.0