support realloc in corruption checker