Integer overflow issues

Halli and I have a patch to address a few integer overflows in memcached.