SIGN IN SIGN UP
gofiber / fiber UNCLAIMED

⚡️ Express inspired web framework written in Go

0 0 151 Go

🐛 bug: prevent int64 overflow in adaptor body limit

Cap the LimitReader limit at math.MaxInt64 so a BodyLimit of
math.MaxInt64 does not overflow to a negative value (which
io.LimitReader treats as 0, returning EOF immediately).

Addresses review feedback on #4306.
R
René committed
b67853e4ef4c64e7ebaa6d9bd3cede8973cf841b
Parent: 5842f01