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


Origin commit data
------------------
Commit: 25e752fbd8
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
This commit is contained in:
2019-10-27 22:56:48 +01:00
committed by vanhofen
parent c05c9ab8b6
commit 6146ddb67b

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));