Repository navigation
Patch Go networking vulnerabilities and fix upload cancellation race - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The scheduled Go Vulncheck run https://github.com/Distortions81/GD-DOOM/actions/runs/39284060465 reports reachable vulnerabilities in Go 1.26.6 and golang.org/x/net v0.56.0. Require Go 1.26.10 and x/net v0.60.0 (including its required crypto, sync and text versions). Go 1.26.10 also addresses the newer GO-2026-6809 certificate-trust advisory.
The newest Go CI failure on dependency PR #29 is TestUploadCancellationClosesSourceReader: closing a canceled upload's reader can race HTTP cancellation and return io.ErrClosedPipe. Return the canceled upload context's error when requestWithBody fails, preserving prompt reader closure and ordinary transport errors.
Validation: reproduced 2 failures in 100 cancellation-test runs before the fix; full package-by-package xvfb Go test suite and go build ./... pass with Go 1.26.10; go test -race ./internal/lobby -run 'TestUpload|TestHTTP' -count=100 passes. Both GitHub Actions checks now pass: Go CI https://github.com/Distortions81/GD-DOOM/actions/runs/39597166463 and Go Vulncheck https://github.com/Distortions81/GD-DOOM/actions/runs/39597166518 . Fresh scans report zero reachable vulnerabilities. One module-only advisory concerns unused x/crypto/openpgp; it is not imported by the application. Existing unrelated Dependabot upgrades are unchanged.