rttr
rttr copied to clipboard
library_win crash
In the library_win.cpp file there is an error.
The line that is problematic is:
prefix_list.insert(suffix_list.begin(), std::wstring());
It should be
prefix_list.insert(prefix_listbegin(), std::wstring());
The wrong iterator is given to the insert method which causes the crash.
Best regards, Nikola
I have a PR for this, but I would like to understand how this lead to a crash. What happens there exactly? #206
The wrong iterator (suffix_list.begin()) is given to the prefix_list's insert method which causes the crash since prefix_list is trying to insert the item into the memory area of which he isn't the owner.