Skip to content

Fix #79311: enchant_dict_suggest() fails on big endian architecture #5222

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Feb 28, 2020

For obvious reasons, we must not assign a size_t value to an int
variable using memcpy(). However, there is actually no need for the
intermediate n_sugg_st here, if we use the proper types in the first
place.

A regression test is not necessary, because dict_suggest.phpt already
exhibits the erroneous behavior on big endian architectures.

For obvious reasons, we must not assign a `size_t` value to an `int`
variable using memcpy().  However, there is actually no need for the
intermediate `n_sugg_st` here, if we use the proper types in the first
place.

A regression test is not necessary, because dict_suggest.phpt already
exhibits the erroneous behavior on big endian architectures.
@cmb69 cmb69 added the Bug label Feb 28, 2020
@cmb69
Copy link
Member Author

cmb69 commented Feb 28, 2020

Thanks! Applied as 6adb885.

@cmb69 cmb69 closed this Feb 28, 2020
@cmb69 cmb69 deleted the cmb/79311 branch February 28, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants