Re: dirname() trailing slash Segfault bug

2008-08-25 Thread Mirsad Todorovac
On Sun, 24 Aug 2008, Vincent Danjean wrote: Mirsad Todorovac wrote: Carlos, I have verified your claim. On x86 system ii libc6 2.3.6.ds1-13etch5GNU C Library the result is truly so. I have, however, verified the bug both on Debian x86_64 system and on

Re: dirname() trailing slash Segfault bug

2008-08-24 Thread Vincent Danjean
Mirsad Todorovac wrote: Carlos, I have verified your claim. On x86 system ii libc6 2.3.6.ds1-13etch5GNU C Library the result is truly so. I have, however, verified the bug both on Debian x86_64 system and on CentOS 4 x64. It seems that the bug is tied

Re: dirname() trailing slash Segfault bug

2008-08-19 Thread Carlos O'Donell
On Fri, Aug 15, 2008 at 9:03 AM, Mirsad Todorovac [EMAIL PROTECTED] wrote: I have came across a bug in dirname() function of GNU libc. It is triggered by the following minimal source: #include stdio.h #include string.h int main (int argc, char *argv[]) { char *buf = usr/;

dirname() trailing slash Segfault bug

2008-08-15 Thread Mirsad Todorovac
Dear Sirs, I have came across a bug in dirname() function of GNU libc. It is triggered by the following minimal source: #include stdio.h #include string.h int main (int argc, char *argv[]) { char *buf = usr/; char *word = strdup (buf); printf (dirname ('%s')='%s'\n,