Skip to content

[BOX32] Fix copy-paste bug in SDL_ShowMessageBox#3619

Merged
ptitSeb merged 1 commit intoptitSeb:mainfrom
devarajabc:0306
Mar 6, 2026
Merged

[BOX32] Fix copy-paste bug in SDL_ShowMessageBox#3619
ptitSeb merged 1 commit intoptitSeb:mainfrom
devarajabc:0306

Conversation

@devarajabc
Copy link
Contributor

In my32_2_SDL_ShowMessageBox, the loop converting 32-bit SDL_MessageBoxButtonData to 64-bit incorrectly read src[i].buttonid for all three fields instead of src[i].flags and src[i].text.

In my32_2_SDL_ShowMessageBox, the loop converting 32-bit
SDL_MessageBoxButtonData to 64-bit incorrectly read src[i].buttonid
for all three fields instead of src[i].flags and src[i].text.
This caused the button text pointer to be set to a small integer,
resulting in a SIGSEGV when native SDL tried
to read the text string.
@ptitSeb ptitSeb merged commit 5800544 into ptitSeb:main Mar 6, 2026
30 checks passed
@devarajabc
Copy link
Contributor Author

Thanks.

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