QIODeviceOutStream: allocate memory dynamically
Instead of using a fixed size array.
I've only seen this being problematic in oss-fuzz created files, but I don't see why an actual file wouldn't create issues here too, so even if this is a bit slower, be on the safe side.