Details
Description
In out of memory situation I expect std::bad_alloc exception to be thrown, but when I try to serialize a large structure into QByteArray using QDataStream I get KERN-EXEC 3 panic. I've attached the test case that reproduces the problem.