Please sign in to comment.
[Fix] Misc bug fixes
Summary: I turned on some c++ std library debugging features, and found a few minor issues. - we deleted an entry from a vector, while iterating over it without adjusting the total count, or the current index (so we ended up skipping the next element, and accessing past the end of the vector) - the iterator didnt match the map in a few places - uninitialized stl iterators are "singular" - meaning that you cant do anything with them, including initialize /another/ iterator with them. This means that using  on a map of iterators is technically undefined behavior. Test Plan: fast_tests slow_tests Reviewers: qigao, myang Reviewed By: myang CC: ps, mwilliams, myang Differential Revision: 340611
- Loading branch information...
Showing with 9 additions and 7 deletions.