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.
seems wrong as there is no way to make sure tmp is not a 0 sized vector which leads &tmp[0] to be undefined behaviour.
Moreover, on my fedora 30, a vector assertion fails __builtin_expect(__n < this->size(), true) and leads the program to crash.
A fix could be to use tmp.data() instead (if this function is really supposed to handle 0 lenght entry).
The text was updated successfully, but these errors were encountered:
in do_basic_transform https://github.com/boostorg/locale/blob/develop/src/icu/collator.cpp#L90
line
int len = collate->getSortKey(str,&tmp[0],tmp.size());seems wrong as there is no way to make sure tmp is not a 0 sized vector which leads &tmp[0] to be undefined behaviour.
Moreover, on my fedora 30, a vector assertion fails
__builtin_expect(__n < this->size(), true)and leads the program to crash.A fix could be to use
tmp.data()instead (if this function is really supposed to handle 0 lenght entry).The text was updated successfully, but these errors were encountered: