Thread-unsafe initialisation of global variable globalParams in glib/poppler-document.cc
glib/poppler-document.cc#L185-L196
PopplerDocument *
poppler_document_new_from_file (const char *uri,
const char *password,
GError **error)
{
PDFDoc *newDoc;
GooString *password_g;
char *filename;
if (!globalParams) {
globalParams = std::make_unique<GlobalParams>();
}
There was new GlobalParams(...)
about 2 months ago. That caused just one-time memory leaks in practice. But now almost always things such as malloc: *** error for object 0x10a805d20: pointer being freed was not allocated
.