[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX tests failures
From: |
Albert Chin |
Subject: |
Re: AIX tests failures |
Date: |
Tue, 30 May 2006 15:46:37 -0500 |
User-agent: |
Mutt/1.5.6i |
On Sun, May 28, 2006 at 05:52:45PM +0200, Ralf Wildenhues wrote:
>
> ... AIX strndup is severely broken, at least on 4.3.3 and 5.1, similar
> to its strnlen; see also[1]. See for example this test:
>
> $ cat >a.c <<\EOF
> #include <stdio.h>
> #include <stdlib.h>
>
> extern char *strndup (const char *, size_t);
> int main()
> {
> char *s = strndup ("STICKY_OTHER_WRITABLEx", 21);
> printf ("%s.\n", s);
> free (s);
> printf ("%s.\n", strndup("OTHER_WRITABLE 3", 14));
> }
> EOF
> $ cc -o a a.c && ./a
> STICKY_OTHER_WRITABLE.
> OTHER_WRITABLERITABLE.
I tried this on AIX 5.2 and it gave the same result. AIX 5.3 didn't
though.
--
albert chin (address@hidden)
- Re: [bug-gnulib] Re: AIX tests failures, (continued)
- Re: [bug-gnulib] Re: AIX tests failures, Ralf Wildenhues, 2006/05/30
- Re: [bug-gnulib] AIX tests failures, Bruno Haible, 2006/05/30
- Re: [bug-gnulib] AIX tests failures, Ralf Wildenhues, 2006/05/30
- Re: [bug-gnulib] AIX tests failures, Bruno Haible, 2006/05/30
- Re: [bug-gnulib] AIX tests failures, Albert Chin, 2006/05/30
- Re: [bug-gnulib] AIX tests failures, Albert Chin, 2006/05/30
- Re: AIX tests failures, Albert Chin, 2006/05/29
- Re: AIX tests failures, Jim Meyering, 2006/05/30
- Re: AIX tests failures, Albert Chin, 2006/05/30
- Re: AIX tests failures, Albert Chin, 2006/05/29
- Re: AIX tests failures,
Albert Chin <=