Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: frithjofh on December 02, 2015, 12:22:01 pm
-
hi everybody,
found a bug in configmanager.cpp which can lead to undefined behaviour. probably harmless...
but patch attached.
function used map.erase(iterator) and then tries to increment that iterator in the next loop and use it again. this is undefined according to both wx documentation and stl documentation.
replaced call to map.erase(iter) inside the loop with call to clear map.clear() after the loop
regards
-
patch has an error
attached the correct one
-
This will probably cause a crash someday. Will apply it next week, when I get access to my computer back.
-
The patch is in trunk now, thanks.