Skip to content

Fix postponer ring buffer index underflow on prepend. - #1637

Merged
kareltucek merged 1 commit into
masterfrom
fix_postponer_prepend
Oct 8, 2026
Merged

kareltucek merged 1 commit into
masterfrom
fix_postponer_prepend

Conversation

@kareltucek

Copy link
Copy Markdown
Collaborator

Changelog:

  • Fix crashes and a memory corruption caused by activateKeyPostponed prepend command.

Closes #1326

prependEvent() decremented bufferPosition without wrapping, so
activateKeyPostponed prepend could leave it at 254/255 and the
next buffer[bufferPosition] access read out of bounds, causing
hard faults or a stuck postponer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kareltucek
kareltucek merged commit ce84126 into master Oct 8, 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.

UHK60v1=Reproducible freeze from activateKeyPostponed

1 participant