Skip to content

fix(repeater): prevent stack overflow out of RX handler - #3196

Open
benallfree wants to merge 1 commit into
meshcore-dev:devfrom
MeshEnvy:feature/defer-remote-cli
Open

fix(repeater): prevent stack overflow out of RX handler#3196
benallfree wants to merge 1 commit into
meshcore-dev:devfrom
MeshEnvy:feature/defer-remote-cli

Conversation

@benallfree

@benallfree benallfree commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Hey team, this is a bug I stumbled across as I was customizing the firmware and noticed a stack overflow happening in an advert action from a remote admin UI. It is not reproducible on the stock firmware, but the bug/potential is there nonetheless.

It can be fixed by queuing remote commands and executing them as part of the loop instead of handling them inline.

Remote admin CLI no longer runs handleCommand inside onPeerDataRecv.
Commands queue to MyMesh::loop() so savePrefs and ed25519_sign run at
loop-task stack depth, matching USB serial CLI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@benallfree benallfree changed the title fix(repeater): defer remote admin CLI out of RX handler fix(repeater): prevent stack overflow out of RX handler Aug 13, 2026
@benallfree
benallfree marked this pull request as ready for review August 13, 2026 16:29
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.

1 participant