avoid failed assertion with tight malloc