mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
On 32-bit systems, this value could overflow. Add a check for the overflow and return ErrInvalidRange if it does overflow. The type in GetObjectOutput for ContentLength is *int64, but the fasthttp.RequestCtx.SetBodyStream() takes type int. So there is no way to set the bodysize to the correct limit if the value overflows.