Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Invalid alignment in append_bin_stats #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Fixed in
http://github.com/trondn/memcached/commit/5e40caa44b5e1affa4e8a4d6a08481f3d5efca
ee

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