Don't ignore read errors.
When reading file without a pre proccessor command don't blindly assume readFile works. Add Q_ASSERT to bail out if copyBufFrom is called with no source buffer this not a workable state.