5a43bb5d5a851a6eec8d3735995cea9ba2ab0a7f |
|
30-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Various fixes to str_sanitize*()
- UTF-8 sequences could have been truncated to become partial sequences
- Truncation may not have happened at all to text containing UTF-8
- str_sanitize_append() might have truncated string beyond what we were
appending, although that happened only if max_len was very small |