Skip to content

Fail pairing cleanly if the host did not report its version - #2070

Closed
ccowan93 wants to merge 1 commit into
moonlight-stream:masterfrom
ccowan93:fix/pair-missing-appversion
Closed

ccowan93 wants to merge 1 commit into
moonlight-stream:masterfrom
ccowan93:fix/pair-missing-appversion

Conversation

@ccowan93

Copy link
Copy Markdown
Contributor

NvPairingManager::pair() calls .at(0) on parseQuad(appVersion), which is empty if the host's serverinfo has no appversion. In release builds this crashes the client when the user starts pairing.

Tested: a harness calling pair("", ...) against the release build's objects. Before: segfault (exit 139). After: returns PairState::FAILED with a log message.

🤖 Generated with Claude Code

NvPairingManager::pair() called .at(0) on the result of parseQuad(),
which is empty when the host's serverinfo has no appversion. In release
builds this reads past the end of an empty QVector and crashes the
client. A host (or anything answering on its HTTP port) can trigger it
when the user starts pairing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cgutman

cgutman commented Oct 25, 2026

Copy link
Copy Markdown
Member

I took care of this in 0c4f7ae

@cgutman cgutman closed this Oct 25, 2026
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.

2 participants