mem: do not check for negative size