retoorandClaude Sonnet 5 8093b598c3 fix(runtime): close chunk-size cap-check overflow in FeedChunkSize
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>
2026-10-25 20:05:29 +01:00
S
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%