1 #73
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/gobds!73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1
Summary by CodeRabbit
Bug Fixes
Chores
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
96fe7742-588a-4158-9535-a865b7cef4a0📥 Commits
Reviewing files that changed from the base of the PR and between
ba93a9bf3bandc06b0dfca5.📒 Files selected for processing (3)
.github/workflows/lint.ymlgobds/session/handler_player_auth_input.gogobds/session/session.go📝 Walkthrough
Walkthrough
Adds safe type assertion and sanity bounds checks to
PlayerAuthInputHandler. Introduces a payload signature blocking mechanism insession.gothat drops client packets matching a hardcoded hex signature for IDs 1 and 135. Downgradesgolangci-lint-actionfrom v2.7.2 to v1.60.1.Changes
Packet Validation and Blocking
gobds/session/handler_player_auth_input.goBlockActionsexceeds 1000 orTickis negative.gobds/session/session.gobytes,encoding/hex, andminecraft/protocolimports; inserts an early filter inhandlePacketfor packet IDs 1 and 135; addsmatchesBlockedPayloadthat hex-decodes a fixed signature, marshals the packet, and drops it if the signature is found.CI Lint Version Downgrade
.github/workflows/lint.ymlgolangci/golangci-lint-actionversionfromv2.7.2tov1.60.1.Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.ignore, wanted to merge for my fork
Pull request closed