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

prevent to cast from pointer to uint64 directly #4690

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

obache
Copy link
Contributor

@obache obache commented Oct 17, 2023

It is unsafe, especially, sizeof(void*) < sizeof(uint64_t). Change to cast through uintptr_t instead.

It is unsafe, especially, sizeof(void*) < sizeof(uint64_t).
Change to cast through uintptr_t instead.

Signed-off-by: OBATA Akio <[email protected]>
@elliefm elliefm merged commit 2ab6a5f into cyrusimap:master Oct 19, 2023
1 check passed
@obache obache deleted the fix-pointer-int-cast branch October 20, 2023 02:12
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.

2 participants