Skip to content

go.mod: bump github.com/stellar/go-xdr to a87d4d0#5938

Merged
tamirms merged 1 commit into
stellar:mainfrom
tamirms:update-go-xdr
Apr 23, 2026
Merged

go.mod: bump github.com/stellar/go-xdr to a87d4d0#5938
tamirms merged 1 commit into
stellar:mainfrom
tamirms:update-go-xdr

Conversation

@tamirms
Copy link
Copy Markdown
Contributor

@tamirms tamirms commented Apr 23, 2026

Summary

  • Bumps github.com/stellar/go-xdr from cc2b0611 to a87d4d0 to pick up stellar/go-xdr#31, which enforces MaxInputLen at the io.Reader boundary via io.LimitedReader instead of trusting the caller's lenLeft implementation.
  • No code changes required in this repo. Decode semantics for generated UnmarshalBinary are unchanged — the bytes.Reader created from inp already bounds reads to len(inp), and the new upstream path enforces the same bound via LimitedReader.

🤖 Generated with Claude Code
EOF
)

Picks up stellar/go-xdr#31, which enforces MaxInputLen at the io.Reader
boundary via io.LimitedReader. Decode semantics are unchanged for the
generated UnmarshalBinary path (bytes.Reader length already bounds reads
to len(inp)); microbenchmarks show a ~3% unmarshal overhead from the
added wrapping.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 23, 2026 13:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the github.com/stellar/go-xdr dependency to pick up upstream changes that enforce MaxInputLen at the io.Reader boundary (via io.LimitedReader), aiming to improve safety without requiring downstream code changes.

Changes:

  • Bump github.com/stellar/go-xdr from cc2b0611 to a87d4d0 in go.mod.
  • Update go.sum checksums to match the new go-xdr pseudo-version.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
go.mod Updates the required github.com/stellar/go-xdr pseudo-version to the newer commit.
go.sum Refreshes module and go.mod hashes for the updated go-xdr version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​stellar/​go-xdr@​v0.0.0-20260312225820-cc2b0611aabf ⏵ v0.0.0-20260423131911-a87d4d0789c398 +1100100100100

View full report

@tamirms tamirms merged commit a42225b into stellar:main Apr 23, 2026
15 checks passed
@tamirms tamirms deleted the update-go-xdr branch April 23, 2026 14:06
urvisavla pushed a commit that referenced this pull request May 28, 2026
Picks up stellar/go-xdr#31, which enforces MaxInputLen at the io.Reader
boundary via io.LimitedReader. Decode semantics are unchanged for the
generated UnmarshalBinary path (bytes.Reader length already bounds reads
to len(inp)); microbenchmarks show a ~3% unmarshal overhead from the
added wrapping.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants