Re: iconv test on AIX 7.1BETA

2010-07-31 Thread Rainer Tammer
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

Re: iconv test on AIX 7.1BETA

2010-07-31 Thread Bruno Haible
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

Re: iconv test on AIX 7.1BETA

2010-07-31 Thread Rainer Tammer
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

Re: iconv test on AIX 7.1BETA

2010-07-31 Thread Bruno Haible
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? ===

Re: iconv test on AIX 7.1BETA

2010-07-30 Thread Rainer Tammer
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

iconv test on AIX 7.1BETA

2010-07-30 Thread Bruno Haible
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