-        memcpy(&id,ri.key,ri.key_len); +        memcpy(&id,ri.key,sizeof(id));
-        memcpy(&id,ri.key,ri.key_len);
+        memcpy(&id,ri.key,sizeof(id));

The memcpy from the key to the id reliease on the fact that this key
*should* be 8 bytes long as it was entered as such a few lines up the
code.

BUT if someone will change the code to the point this is no longer true,
current code can trash the stack which makes debugging very hard
while this fix will result in some garbage id, or even page fault.
Both are preferable to stack mangaling.

JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis