Use meaningful errno for ssize_t overflow in read(). Catch size_t overflow in malloc().
PR: 204230 MFC after: 1 week