mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-19 15:14:40 +09:00
Backport https://github.com/go-gitea/gitea/pull/40401 https://github.com/blakesmith/ar is unmaintained since 2019 and panics on a negative member size (https://pkg.go.dev/vuln/GO-2026-6905), with no fixed version. Debian packages only need a small subset of the `ar` format, so this reads it in-tree. - Malformed or truncated archives are rejected with a 400 instead of a 500 or a panic - Parsing stops after the first `control.tar` member, deb(5) allows only one Assisted-by: Claude Code:claude-opus-5-5