Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: memory issue causing crash with certain locale configurations #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

julian-CStack
Copy link

Should fix cypherstack/stack_wallet#1021 which is reproducible in the example app when locale is as shown here cypherstack/stack_wallet#1021 (comment)

@julian-CStack julian-CStack marked this pull request as draft December 11, 2024 02:17
@julian-CStack
Copy link
Author

while this "fixes" the issue, its wrong. Will reopen when back at pc and can fix it.

@julian-CStack julian-CStack marked this pull request as ready for review December 11, 2024 15:14
@julian-CStack
Copy link
Author

julian-CStack commented Dec 11, 2024

After reviewing https://sourceware.org/glibc/manual/2.40/html_mono/libc.html#How-Programs-Set-the-Locale which confirms there should be no modification of the return value of setLocale().

Also, @magnatronus was there a specific reason setlocale(category, "") is used instead of setlocale(category, nullptr) ?

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.

Bug: AppImage crashes upon invocation.
1 participant