Skip to content

Add missing IDX_DS_ADAPTIVE_TRIGGERS sentinel to packetTypesGen3..7 - #168

Merged
cgutman merged 1 commit into
moonlight-stream:masterfrom
ccsimplyspolit:fix/packet-types-adaptive-triggers-sentinel
Oct 26, 2026
Merged

cgutman merged 1 commit into
moonlight-stream:masterfrom
ccsimplyspolit:fix/packet-types-adaptive-triggers-sentinel

Conversation

@ccsimplyspolit

Copy link
Copy Markdown
Contributor

When IDX_DS_ADAPTIVE_TRIGGERS (12) was added to packetTypesGen7Enc[], packetTypesGen3[], packetTypesGen4[], packetTypesGen5[], and packetTypesGen7[] remained at 12 entries (0..11). Because needsAsyncCallback() and queueAsyncCallback() index packetTypes[IDX_DS_ADAPTIVE_TRIGGERS] unconditionally, non-encrypted/older control streams read one element past the end of those tables.

Add the missing -1 sentinel entry for IDX_DS_ADAPTIVE_TRIGGERS to packetTypesGen3[], packetTypesGen4[], packetTypesGen5[], and packetTypesGen7[].

@cgutman
cgutman merged commit 5d3c0ec into moonlight-stream:master Oct 26, 2026
11 checks 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.

2 participants