Skip to content

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