When `input_len > UINT_MAX` avail_in is truncated to 0 (see https://coliru.stacked-crooked.com/a/e8e64f3d7b473acd) which will enter in a weird state. In wouldn't be surprised if users tries to decompress file greater than 4GB.
I suggest to emulate `std::clamp` with (0, std::numeric_limits<uInt>::max()). [ Full content available at: https://github.com/apache/arrow/pull/2696 ] This message was relayed via gitbox.apache.org for [email protected]
