Skip to content

fix(dialog): initialize GetTextDialog key[] to prevent Add Comment crash#363

Merged
No0ne558 merged 1 commit intoViewTouch:masterfrom
No0ne558:master
Apr 9, 2026
Merged

fix(dialog): initialize GetTextDialog key[] to prevent Add Comment crash#363
No0ne558 merged 1 commit intoViewTouch:masterfrom
No0ne558:master

Conversation

@No0ne558
Copy link
Copy Markdown
Contributor

@No0ne558 No0ne558 commented Apr 9, 2026

Summary

This PR fixes a segmentation fault when opening or submitting the "Add Comment" dialog. The crash was caused by an uninitialized entry in the key[] array used by GetTextDialog, which could be dereferenced by OrderCommentDialog. Both GetTextDialog constructors now initialize all key[] entries to nullptr.

What I changed

  • Initialize all entries of key[] to nullptr in both GetTextDialog constructors to prevent dereferencing uninitialized pointers.
  • Added a short changelog entry documenting the fix.

Files changed

@No0ne558 No0ne558 merged commit e38d982 into ViewTouch:master Apr 9, 2026
0 of 6 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.

1 participant