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

New issue 385 by [email protected]: in debug mode cache will cause object's destructor to misbehavior
https://code.google.com/p/memcached/issues/detail?id=385

What steps will reproduce the problem?
1. Code Analysis

What is the expected output? What do you see instead?
In debug mode, this Bug will cause destructor to misbehavior.

What version of the product are you using? On what operating system?
memcached-1.4.21

Please provide any additional information below.
File: cache.c
Line: 140
Explanation:
if (cache->destructor) {
    cache->destructor(ptr, NULL);
}
shoud be
if (cache->destructor) {
    cache->destructor(get_object(ptr), NULL);
}
in debug mode, the object pointer will be ptr + 1.


--
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