[Development] QtCore missing check for memory allocation

Rainer Keller rainer.keller at theqtcompany.com
Wed Feb 25 13:25:36 CET 2015

> Anyhow, what's the problem with that?
The problem is that memory allocation fails and Qt continues without
checking the pointers ending up in a SEGV.

Would a fix be in Q_CHECK_PTR to abort in this case (exception or
qFatal) or should QVector get an additional check for null-pointer in
addition to Q_CHECK_PTR?

More information about the Development mailing list