8093b598c3a11681df46fc0d281f4c97ffb23086
body_.size() + size could wrap size_t when an attacker-controlled chunk size (up to 0xFFFFFFFFFFFFFFFF) was added to an already non-empty body, making the body_cap_ comparison pass when it should reject with 413. Check the remaining budget instead of the sum: reject if body_ already exceeds the cap, or if the declared chunk size exceeds what's left. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
moloapp
5.2 MiB
Languages
C++
90%
Python
3.2%
Pawn
3.2%
POV-Ray SDL
1.3%
JavaScript
1.1%
Other
1.1%