-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Incorrect pointer alignment in _PyVectorcall_Function() of cpython/abstract.h #84233
Comments
In file included from /builds/cryptomilk/pam_wrapper/src/python/pypamtest.c:21: The correct way to do it would be: union {
char *data;
vectorcallfunc *ptr;
} vc; vc.data = (char *)callable + offset;
return *vc.ptr; |
Hi! I cannot reproduce the error. Could you provide the way to reproduce? thanks |
clang -Werror -Wcast-align ... rpm -q clang9 Does that help? Found in CI of |
I forgot, for detecting alignment issues or strict aliasing and this also falls under strict aliasing, you need to turn on optimizations. clang -O2 -Werror -Wcast-align ... |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: