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

Invalid alignment in append_bin_stats #26

Closed
GoogleCodeExporter opened this issue Jul 15, 2015 · 1 comment
Closed

Invalid alignment in append_bin_stats #26

GoogleCodeExporter opened this issue Jul 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link
Contributor

append_bin_stats cast a char pointer into a pointer to a structure, but the
problem is that such a structure needs to be aligned in order to access its
members.

We are currently spooling up a lot of data to send back to the client so we
cannot pad the buffer in order to align the structure. A quick fix is to
fill in a local structure and memcpy it into the stream.

Original issue reported on code.google.com by trond.no...@gmail.com on 13 Mar 2009 at 7:18

@GoogleCodeExporter
Copy link
Contributor Author

Fixed in
http://github.com/trondn/memcached/commit/5e40caa44b5e1affa4e8a4d6a08481f3d5efca
ee

Original comment by trond.no...@gmail.com on 13 Mar 2009 at 7:48

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant