sheredom / utf8.h

📚 single header utf8 string functions for C and C++
The Unlicense
1.71k stars 122 forks source link

Fix undefined behavior on empty string in utf8cat #4

Closed fluks closed 8 years ago

fluks commented 8 years ago

When src argument to utf8cat is an empty string, memory is accessed outside of its bounds.

Similar bug as the previous.