Skip to content

Fix callback crash when playing back entered digits (issue #180)#277

Merged
hecko merged 1 commit intomasterfrom
fix/issue180-callback-crash
Feb 19, 2026
Merged

Fix callback crash when playing back entered digits (issue #180)#277
hecko merged 1 commit intomasterfrom
fix/issue180-callback-crash

Conversation

@hecko
Copy link
Contributor

@hecko hecko commented Feb 19, 2026

The callback application crashed with a kernel trap when users entered digits followed by * or #. The bug was caused by undefined behavior: creating an empty string and writing to index 0.

Fixed by properly converting character digits to strings using int2str(), which matches how prompts are registered. Also added debug logging to help troubleshoot digit playback.

This fixes the issue where SEMS would restart after playing back the entered number.

The callback application crashed with a kernel trap when users entered
digits followed by * or #. The bug was caused by undefined behavior:
creating an empty string and writing to index 0.

Fixed by properly converting character digits to strings using int2str(),
which matches how prompts are registered. Also added debug logging to
help troubleshoot digit playback.

This fixes the issue where SEMS would restart after playing back the
entered number.
Copilot AI review requested due to automatic review settings February 19, 2026 10:19
@hecko hecko mentioned this pull request Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical crash in the callback application that occurred when users entered digits followed by * or #. The crash was caused by undefined behavior where an empty string was created and a character was written to index 0 without proper allocation.

Changes:

  • Replaced undefined string manipulation with proper int2str() conversion to match prompt registration
  • Added debug logging to track digit playback and aid troubleshooting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hecko hecko merged commit 23c3393 into master Feb 19, 2026
17 checks passed
@hecko hecko deleted the fix/issue180-callback-crash branch February 19, 2026 10:22
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