Comment #3 on issue 247 by [email protected]: memcached segmentation fault (1.4.5 and 1.4.11)
http://code.google.com/p/memcached/issues/detail?id=247

After applying following patch to memcached.c I don't see any more seg fault, open the file and go to line 3245 where it says this:
    ntokens = tokenize_command(command, tokens, MAX_TOKENS);
    if (ntokens >= 3 &&
and then apply the following patch in between the above lines.
3245,3248d3244
<     if ( tokens[COMMAND_TOKEN].value == NULL) {
<       out_string(c,"ERROR");
<       return;
<     }

Dormando or Tornd or any other organization member please verify the above patch and let us know if that make sense or not.

Reply via email to