common: Rewrite hiding the end of memory