mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-20 01:53:57 +09:00
Backport #39818 by @SHIVANSHGARG07 parseProtobufBody read the full Twirp request body via io.ReadAll with no size limit, allowing an authenticated runner token holder to force unbounded memory allocation. Cap it at 1 MiB via io.LimitReader, matching the existing pattern in job_summary.go. Fixes https://github.com/go-gitea/gitea/issues/39814 Co-authored-by: Shivansh Garg <shivanshgarg587@gmail.com>