remove ovf2_ prefix of static function names
emalloc handles out-of-memory