Hello Bruno,
Bruno Haible wrote:
> Rainer Tammer wrote:
>
>> # ./testme
>> res = 0
>> outptr-buf = 2, outbytesleft = -1, buf = { 0xC3, 0x84 }
>>
> This is a buffer overrun bug: Although an outbytesleft argument of 1 is
> given, the iconv() function writes 2 bytes into memory. This kind of
Rainer Tammer wrote:
> # ./testme
> res = 0
> outptr-buf = 2, outbytesleft = -1, buf = { 0xC3, 0x84 }
This is a buffer overrun bug: Although an outbytesleft argument of 1 is
given, the iconv() function writes 2 bytes into memory. This kind of bug,
if not worked around, can crash any program that u
Hello Bruno,
Bruno Haible wrote:
> Rainer Tammer wrote:
>
>> AIX 6.1 Technology Level 4:
>>
>> # xlc testme.c -liconv
>> # ./a.out
>> res = 0
>>
>> AIX 7.1BETA
>>
>> # ./a.out
>> res = 0
>>
> Thanks. This is surprising. I'm not sure I fully understand what happens. Can
> you run this sligh
Rainer Tammer wrote:
> AIX 6.1 Technology Level 4:
>
> # xlc testme.c -liconv
> # ./a.out
> res = 0
>
> AIX 7.1BETA
>
> # ./a.out
> res = 0
Thanks. This is surprising. I'm not sure I fully understand what happens. Can
you run this slightly extended test program as well, please?
===
Hello Bruno,
Bruno Haible wrote:
> Hello Rainer,
>
> The logs say:
>
> test-iconv.c:81: assertion failed
> FAIL: test-iconv
>
> Can you please compile and run the following program, and show the output?
>
> ===
> #incl
Hello Rainer,
The logs say:
test-iconv.c:81: assertion failed
FAIL: test-iconv
Can you please compile and run the following program, and show the output?
===
#include
#include
#include
int main ()
{
iconv_t cd