OpenTTD/src/os
Peter Nelson e2a796dbcd Codefix: Potential unterminated string returned from convert_to_fs.
Converting from UTF-8 to UTF-16 could have resulted in a buffer overflow if the buffer size was exactly the length of the converted string.

Pass string_view/span to convert_from/to_fs instead, and ensure the buffer is terminated. This replaces passing a pointer to the buffer and the buffer size as separate parameters, allowing the compiler to pass both in one parameter.

Removes use of `lengthof()`.
2024-07-10 20:57:02 +01:00
..
macosx Fix #12735: Default fonts should use default font size as-is. (#12814) 2024-06-26 12:45:39 +01:00
unix Fix: Unable to choose a font containing hyphen. (#12684) 2024-05-16 00:38:23 +01:00
windows Codefix: Potential unterminated string returned from convert_to_fs. 2024-07-10 20:57:02 +01:00
CMakeLists.txt