-
Notifications
You must be signed in to change notification settings - Fork 100
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
Bus error/invalid alignment on HP-UX (1.1.7) #79
Comments
Thanks. You can fork the repo, add the patch, and push it back. Or, if it's a github issue, just attach the patch again in a few minues. |
Since it's short I'll just add it here:
|
Someone pointed out that this is misusing unions. That's true, in theory, but in practice we know it will work. (The issue is that the standard doesn't guarantee that setting one union field and then reading the other will do what you expect.) Another solution is to simply change Alternatively, don't use the AUTH_HDR overlay struct, and pack/unpack the header byte by byte instead. |
The simpler way to fix it is to just declare the buffer as |
On HP-UX/ia64:
this happens in rc_send_server:
Note the odd address for auth and send_buffer (and recv_buffer).
A fix has been attached; instead of cast:ing between a misaligned char buffer and a struct, use a union to ensure proper alignment.
... ok, so not attached after all. I get "Something went really wrong, and we can't process that file." no matter in which form I try to upload the patch. Patch can be emailed on request.
The text was updated successfully, but these errors were encountered: