Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6141) infinite string malloc
Home

[Freeciv-Dev] Re: (PR#6141) infinite string malloc

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6141) infinite string malloc
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Sep 2003 17:05:11 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:
> 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.

I should add that this problem only happens on my current computer, 
which is not my normal computer - it's a Red Hat 8 maching with a lot of 
extra software, some of which was compiled against Red Hat 7 (or even 
earlier).  So it could be a linking bug in iconv, or something.

jason




[Prev in Thread] Current Thread [Next in Thread]