64d895bcca177ee840268180ca7a4e3841295613 |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-charset: Fixed assert-crash with some iconv() versions.
Older glibc iconv() versions seem to skip over invalid characters, at least
with some charsets, while newer versions don't. We were assuming that the
skipping never happened, so if the invalid character was at the end of the
string we could have wrapped size to (size_t)-1 and caused a crash later on. |