Closed dcb314 closed 6 years ago
You know, there are two really hard things in computer science
I'm planning to modernize the toolchain, something like asan
should help find if this is an actual error. in the mean time, I'll comb through the code to see what is going on exactly. Thanks for reporting the potential error ;-)
In this particular case, what happen is that the erasing is being made on the current object pointed by "i", then nobody touches this iterator until the next times we go through the loop, and here there's a test if i != mFactoryObjects.end()
. So there's no way this can cause an issue as-is.
OISInputManager.cpp:255] -> [OISInputManager.cpp:250]: (warning) Missing bounds check for extra iterator increment in loop.
Source code is