You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If m_WayRefs is empty, string is written at negative index. This bug causes crash after adding restriction tag for relation element into configuration xml.
Minimalist fix would be adding space into std::string way_list("");
More efficient fix is replacing way_list[way_list.size() -1] = ' '; with this:
size_t n = way_list.size();
if (n > 0) way_list.resize(n - 1);
Cheers, Martin
The text was updated successfully, but these errors were encountered:
Hi, there is a bug in method Relation::members_str.
If
m_WayRefs
is empty, string is written at negative index. This bug causes crash after addingrestriction
tag forrelation
element into configuration xml.Minimalist fix would be adding space into
std::string way_list("");
More efficient fix is replacing
way_list[way_list.size() -1] = ' ';
with this:Cheers, Martin
The text was updated successfully, but these errors were encountered: