mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
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