mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user