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 option index overflow in remember_file_options #1246

Merged
merged 1 commit into from Dec 11, 2023

Conversation

ak2
Copy link
Contributor

@ak2 ak2 commented Dec 10, 2023

There are more than 256 config options (!), which means that using a uchar is no longer sufficient for storing the index of options found in the config file or changed in the UI.

The overflow meant that for example a BoldBlue setting in the config file (which currently has option index 262) turned into a TekForegroundColour setting (with index 6) when changing some unrelated setting in the config dialog and saving.

There are more than 256 config options (!), which means that using a
uchar is no longer sufficient for storing the index of options found in
the config file or changed in the UI.

The overflow meant that for example a BoldBlue setting in the config
file (which currently has option index 262) turned into a
TekForegroundColour setting (with index 6) when changing some unrelated
setting in the config dialog and saving.
@mintty mintty merged commit c374559 into mintty:master Dec 11, 2023
1 check passed
@mintty
Copy link
Owner

mintty commented Dec 11, 2023

Hmm, I wonder what obscure behaviour this may have caused in the past.

@mintty
Copy link
Owner

mintty commented Feb 24, 2024

Released 3.7.1.

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.

None yet

2 participants