[Freeciv-Dev] (PR#6141) infinite string malloc
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Sometimes with //TRANSLIT iconv gets confused and tries to output a
(seemingly) infinite-length string. This results in an arbitrarily
large malloc which will eventually crash the server in S1_14.
It's too bad iconv has such a bad API. The only two workarounds I see
are to not use //TRANSLIT (which is a bad idea; someone using ASCII
should still be able to see valid text via transliteration) or to cap
the string length.
jason
- [Freeciv-Dev] (PR#6141) infinite string malloc,
Jason Short <=
|
|