xmlparse.cpp: add condition to avoid possible crash

pool->start seems to be a null pointer in some constellations,
memmove don't like such for parameter 2
This commit is contained in:
2019-10-27 16:24:47 +01:00
parent 0080ac220d
commit 40633dcfb5

View File

@@ -2732,6 +2732,7 @@ static int poolGrow(STRING_POOL *pool)
tem->next=pool->blocks;
pool->blocks=tem;
if (!pool->start) return 0; //FIXME: hack: pool->start seems to be a null pointer in some constellations, memmove don't like such for parameter 2
memmove(tem->s, pool->start, (pool->ptr-pool->start)*sizeof(XML_Char));