-
Notifications
You must be signed in to change notification settings - Fork 155
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
Ubsan fixes #5303
Ubsan fixes #5303
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Neat trick with the union for aligned reads. Probably we could use alignas at this point instead but it seems fine.
Thanks for this!
Yeah, this trick was used in places in the code before (may still be) - have fixed a couple more now. |
This avoids passing NULLs to qsort
We can just compare the representation, and copy it into place too.
I got sick of compiling with ubsan and then not being able to run Cassandane tests, so this fixes a lot of the noise!