Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 360 by [email protected]: Alignment check on in configure.ac is broken and results in addition memcpy()s
http://code.google.com/p/memcached/issues/detail?id=360

What steps will reproduce the problem?
1. Build memcached
2. NEED_ALIGN is always set to 1
3. The memcached code does an unneeded memmove

What is the expected output? What do you see instead?
NEED_ALIGN should be set to 0 on x86 and all modern ARM systems (ARMv6+)

What version of the product are you using? On what operating system?
head of git repo on linux

Please provide any additional information below.

The line of the configure script is incorrect. It looks like the author wanted the numbers to be sequentially increasing, however 2 is repeated twice.
 *buf =  1; *(buf +1) = 2; *(buf + 2) = 2; *(buf + 3) = 3; *(buf + 4) = 4;

The test for the buffer is incorrect, i should be dereferenced (*i).
 return (84148994 == i) ? 0 : 1;

Thanks,
Ali



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to