Skip to content

fix(status): decode the RakNet pong message length - #13

Merged
Exterminate5573 merged 1 commit into
ViaVersionAddons:mainfrom
StackAnvil:codex/bedrock-raknet-status
Oct 9, 2026
Merged

Exterminate5573 merged 1 commit into
ViaVersionAddons:mainfrom
StackAnvil:codex/bedrock-raknet-status

Conversation

@AlexProgrammerDE

@AlexProgrammerDE AlexProgrammerDE commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Decode the unsigned two-byte length before the RakNet status message. A length byte equal to 0x3B previously became a semicolon and shifted the MOTD and player counts.

Read exactly the advertised message length and retain empty trailing fields. The fixed-length byte reader rejects truncated messages. The fix stays in the existing status handler.

Validation

The branch starts from upstream 14f31f4. It uses public ViaBedrock 0.0.31-SNAPSHOT and contains no StackAnvil setup patch or deferred changes.

Source: owning StackAnvil patch.

Comment thread build.gradle.kts Outdated
Comment thread build.gradle.kts Outdated
Read the unsigned two-byte message length before decoding Bedrock status
fields. Interpreting that prefix as UTF-8 can introduce a semicolon and
shift the MOTD, version, and player counts. Preserve empty trailing fields
and reject truncated payloads through the fixed-length byte reader.

Keep the change in the existing packet handler. The upstream review asks
for a focused protocol fix without extra classes or a new test harness.
@AlexProgrammerDE
AlexProgrammerDE force-pushed the codex/bedrock-raknet-status branch from 5eabcfe to 5d41fce Compare October 8, 2026 11:16
@Exterminate5573
Exterminate5573 merged commit c83e0a0 into ViaVersionAddons:main Oct 9, 2026
1 check passed
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.

4 participants