Re: ptx bug -- unbounded buffer overflow

2008-03-21 Thread Jim Meyering
Cristian Cadar <[EMAIL PROTECTED]> wrote: > Hello, I'm part of a research group at Stanford, working on automatic > bug-finding tools. We are currently testing coreutils, and we found a > crash bug in ptx due to an unbounded buffer overflow. > > Here is a trivial test case that triggers the bu

[PATCH] src/remove.c: cache_fstatat() broken on systems with negative errnos

2008-03-21 Thread Ingo Weinhold
Howdy, on systems with negative errno values (BeOS, Haiku) the method used in the cache_fstatat() function in src/remove.c is broken (st_size will become positive on error). The attached patch changes the function to use the st_ino field to store the errno value instead, which should work on al

Re: [PATCH] src/remove.c: cache_fstatat() broken on systems with negative errnos

2008-03-21 Thread Jim Meyering
Ingo Weinhold <[EMAIL PROTECTED]> wrote: > on systems with negative errno values (BeOS, Haiku) the method used in the > cache_fstatat() function in src/remove.c is broken (st_size will become > positive on error). The attached patch changes the function to use the > st_ino field to store the errno

Re: FYI: new snapshot and an upcoming release

2008-03-21 Thread Jim Meyering
Mike Frysinger <[EMAIL PROTECTED]> wrote: > On Thursday 20 March 2008, Jim Meyering wrote: ... >> http://meyering.net/cu/coreutils-6.10.133-677610.tar.gz >> http://meyering.net/cu/coreutils-6.10.133-677610.tar.lzma > > i get 4 test failures on x86_64/linux running as root: > FAIL: no-give-up.lo

Re: ptx bug -- unbounded buffer overflow

2008-03-21 Thread Cristian Cadar
Hello Jim, Thanks for the prompt answer. Could you please acknowledge Daniel Dunbar ([EMAIL PROTECTED]) and Dawson Engler ([EMAIL PROTECTED]) as well? Our tool works by generating test cases that achieve very high statement and branch coverage. At this point, the tool is not mature en

Re: "mkdir -p" new child dirs don't inherit default POSIX ACLs properly

2008-03-21 Thread Jim Meyering
"C. J. Meidlinger" <[EMAIL PROTECTED]> wrote: > Any word on this thread? I looked at the git repository and didn't see > any thing that addressed this problem. Did I miss something, or has this > report been classified as something other than a bug? Thanks for the ping. I haven't looked at this

Re: ptx bug -- unbounded buffer overflow

2008-03-21 Thread Dawson Engler
Cristi, were there any statements in ptx you were having a hard time hitting that it might make sense to ask Jim about? > > > Hello Jim, > > Thanks for the prompt answer. > Could you please acknowledge Daniel Dunbar ([EMAIL PROTECTED]) and > Dawson Engler ([EMAIL PROTECTED]) as well? >

configure fails on Maemo/OS2008 (sed: no previous regexp)

2008-03-21 Thread Vincent Lefevre
When configuring coreutils 6.10 on my Nokia N810 (Linux Maemo/OS2008, using BusyBox v1.6.1), I get: [...] checking for getspnam... yes checking for library containing crypt... -lcrypt sed: no previous regexp configure: error: internal error: g'l_INCLUDE_EXCLUDE_PROG's 2nd arg, ,