Check <= SSIZE_MAX before assignign to ssize_t