Added assert to check for memory stomping