mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 25e752fbd8
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
------------------
This commit was generated by Migit
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