[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev gettext() question
From: |
Leonid Pauzner |
Subject: |
Re: lynx-dev gettext() question |
Date: |
Tue, 17 Nov 1998 16:13:37 +0300 (MSK) |
>> >> But some bug (example buffer overflow) can arise only whith some
>> >> translation
>> >> file...
>>
>> >Can you give us more information on this? I worry because it is often
>> >impossible to give a clear translation within the same length as the
>> >English message.
>>
>> As an example:
>>
>> char tmp[100];
>> sprintf(tmp, "%s",gettext("English Message little then 99 car."));
> I'm aware of these (and would like to eliminate most of the fixed-buffer
> formatting)
look src/LYMainLoop.c:5422 -
problem usually arise then message have several `%s' templates,
probably change those sprintf with HTSprintf or what so evere...
>> ...
>>
>> If the translated text is greater then 99 car. -> overflow
>> So it's OK whith english message and can core dump with other.
>> Claude
> --
> Thomas E. Dickey
Re: lynx-dev gettext() question, Nelson Henry Eric, 1998/11/13
Re: lynx-dev gettext() question, Nelson Henry Eric, 1998/11/15
Re: lynx-dev gettext() question, Claude SOMA - CNTS, 1998/11/16
Re: lynx-dev gettext() question, Claude SOMA - CNTS, 1998/11/16
Re: lynx-dev gettext() question, Nelson Henry Eric, 1998/11/16
Re: lynx-dev gettext() question, dickey, 1998/11/17