Description:
Adding the BOM support has resulted in a securiy alert form CodeQL because of the conversion from a char* to a wchar_t*. In this particular case it is correct, but CodeQL doesn't know that. The safe workaround would be to create a special version of utf16to8 that takes a std::string_view instead of a wstring_view.
Description:
Adding the BOM support has resulted in a securiy alert form CodeQL because of the conversion from a char* to a wchar_t*. In this particular case it is correct, but CodeQL doesn't know that. The safe workaround would be to create a special version of utf16to8 that takes a std::string_view instead of a wstring_view.