[Development] QtCore missing check for memory allocation
mathias at taschenorakel.de
Wed Feb 25 17:41:21 CET 2015
Am 25.02.2015 um 17:34 schrieb Ulf Hermann:
>> Also, you are not even guaranteed to get a null pointer/bad_alloc
>> due to things like Linux overcommitting.
> Overcommitting is not dangerous as it will reliably lead to the
> process getting killed if it goes wrong. If you can exploit that, we
> have a much worse problem, and not only in Qt.
You are contradicting yourself. Just a few minutes ago you considered it
a problem, if you don't know the exact location of a failed allocation.
Now when it comes to overcommiting you say not knowing the location is
not a problem. I am confused now.
More information about the Development