`compressBound` returned size is largerWith a sufficiently large output buffer, then the input size only failure is Z_MEM_ERROR.
Use the D117853 approach to decrease the size of the Check it and call the noreturn report_bad_allocated buffer for most_error if applicable.
cases, with the difference that we initialize z_stream with default parameters
and call deflate with `Z_FINISH`resize_for_overwrite may call report_bad_alloc_error as well.
In additionSince there is now no other error type, drop a call to convertZlibCodeToString sinwe can replace the way we usereturn type
deflate (adapted from https://zlib.net/zlib_how.html) can't failwith void and simplify call sites.