Incorrect (throw-based) alloFunc for zlib1. Possible memory leak. -----------------------------------------------------------------
Key: CORE-6221 URL: http://tracker.firebirdsql.org/browse/CORE-6221 Project: Firebird Core Issue Type: Bug Affects Versions: 3.0.5 Reporter: Kovalenko Dmitry https://www.zlib.net/manual.html Usage of z_stream_s structure: zalloc must return Z_NULL if there is not enough memory for the object. Firebird code, if I understood correctly, assign to zalloc throw-based allocation func: void* allocFunc(void*, uInt items, uInt size) { return MemoryPool::globalAlloc(items * size ALLOC_ARGS); //thow ? } In deflateInit, for example, has five calls of zalloc functions and has rollback of initialization if second (and next) call of zalloc return nullptr. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel