Fix out of bounds access for std::string_view

C++20
elsid 3 years ago
parent 72e76ad820
commit 071ab3f650
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -30,6 +30,8 @@ namespace
{
unsigned long utf8ToUnicode(std::string_view utf8)
{
if (utf8.empty())
return 0;
size_t i = 0;
unsigned long unicode;
size_t numbytes;

Loading…
Cancel
Save