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

Bug? about controling key whose length is 9 #42

Open
thawk105 opened this issue Jan 11, 2020 · 0 comments
Open

Bug? about controling key whose length is 9 #42

thawk105 opened this issue Jan 11, 2020 · 0 comments

Comments

@thawk105
Copy link

I may found bugs. Could you read this comment?

AC_DEFINE_UNQUOTED([HAVE_UNALIGNED_ACCESS], [1], [Define if unaligned accesses are OK.])

This line defines HAVE_UNALIGNED_ACCESS to 1.

Then, comparing method is forced this line.

#if HAVE_UNALIGNED_ACCESS

I think there is a problem.
If we use the key whose length is 9, or 17, or..., which isn't divisible by 8, it causes segv.

Is this right?
Sincerely yours,
Takayuki

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

No branches or pull requests

1 participant