Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Brian F. Feldman
On Thu, 29 Jul 1999, Sheldon Hearn wrote: > > > On Thu, 29 Jul 1999 00:52:27 -0400, "Brian F. Feldman" wrote: > > > If noone has any objections, I will commit this and MFC it in a week or so. > > > > --- src/usr.bin/cmp/regular.c.orig Thu Jul 29 00:43:50 1999 > > +++ src/usr.bin/cmp/regular.c

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Brian F. Feldman
On Thu, 29 Jul 1999, Sheldon Hearn wrote: > > > On Thu, 29 Jul 1999 00:52:27 -0400, "Brian F. Feldman" wrote: > > > If noone has any objections, I will commit this and MFC it in a week or so. > > > > --- src/usr.bin/cmp/regular.c.orig Thu Jul 29 00:43:50 1999 > > +++ src/usr.bin/cmp/regular.

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Thomas David Rivers
> > > > > > > If someone is interested to solve a problem: > > > > > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > > > $ cp a b > > > $ cmp a b 0 0x300 > > > Segmentation fault (core dumped) > > > $ cmp a b 0 0x200 > > > cmp: EOF on b > > > $ cmp a b 0x300 0 > > > cmp: EOF on a > > > >

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Sheldon Hearn
On Thu, 29 Jul 1999 00:52:27 -0400, "Brian F. Feldman" wrote: > If noone has any objections, I will commit this and MFC it in a week or so. > > --- src/usr.bin/cmp/regular.c.origThu Jul 29 00:43:50 1999 > +++ src/usr.bin/cmp/regular.c Thu Jul 29 00:44:54 1999 |--- src/usr.bin/cmp/regular.c

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Thomas David Rivers
> > > > > > > If someone is interested to solve a problem: > > > > > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > > > $ cp a b > > > $ cmp a b 0 0x300 > > > Segmentation fault (core dumped) > > > $ cmp a b 0 0x200 > > > cmp: EOF on b > > > $ cmp a b 0x300 0 > > > cmp: EOF on a > > >

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Sheldon Hearn
On Thu, 29 Jul 1999 00:52:27 -0400, "Brian F. Feldman" wrote: > If noone has any objections, I will commit this and MFC it in a week or so. > > --- src/usr.bin/cmp/regular.c.origThu Jul 29 00:43:50 1999 > +++ src/usr.bin/cmp/regular.c Thu Jul 29 00:44:54 1999 |--- src/usr.bin/cmp/regular.

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Warner Losh
In message "Brian F. Feldman" writes: : if ((p1 = (u_char *)mmap(NULL, : - (size_t)length, PROT_READ, MAP_SHARED, fd1, off1)) == (u_char *)MAP_FAILED) : + (size_t)mlength, PROT_READ, MAP_SHARED, fd1, off1)) == (u_char *)MAP_FAILED) : err(ERR_EXIT, "%s", file1

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Warner Losh
In message <[EMAIL PROTECTED]> "Brian F. Feldman" writes: : if ((p1 = (u_char *)mmap(NULL, : - (size_t)length, PROT_READ, MAP_SHARED, fd1, off1)) == (u_char *)MAP_FAILED) : + (size_t)mlength, PROT_READ, MAP_SHARED, fd1, off1)) == (u_char :*)MAP_FAILED) : err(E

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Brian F. Feldman
On Wed, 28 Jul 1999, Thomas David Rivers wrote: > > > > If someone is interested to solve a problem: > > > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > > $ cp a b > > $ cmp a b 0 0x300 > > Segmentation fault (core dumped) > > $ cmp a b 0 0x200 > > cmp: EOF on b > > $ cmp a b 0x300 0 >

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Brian F. Feldman
On Wed, 28 Jul 1999, Thomas David Rivers wrote: > > > > If someone is interested to solve a problem: > > > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > > $ cp a b > > $ cmp a b 0 0x300 > > Segmentation fault (core dumped) > > $ cmp a b 0 0x200 > > cmp: EOF on b > > $ cmp a b 0x300 0 >

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Thomas David Rivers
> > If someone is interested to solve a problem: > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > $ cp a b > $ cmp a b 0 0x300 > Segmentation fault (core dumped) > $ cmp a b 0 0x200 > cmp: EOF on b > $ cmp a b 0x300 0 > cmp: EOF on a > > Jean-Marc > I've seen a similar problem when do

interesting bug in /usr/bin/cmp

1999-07-28 Thread Jean-Marc Zucconi
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc -- Jean-Marc ZucconiPGP Key: finger j...@fre

Re: interesting bug in /usr/bin/cmp

1999-07-28 Thread Thomas David Rivers
> > If someone is interested to solve a problem: > > $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null > $ cp a b > $ cmp a b 0 0x300 > Segmentation fault (core dumped) > $ cmp a b 0 0x200 > cmp: EOF on b > $ cmp a b 0x300 0 > cmp: EOF on a > > Jean-Marc > I've seen a similar problem when d

interesting bug in /usr/bin/cmp

1999-07-28 Thread Jean-Marc Zucconi
If someone is interested to solve a problem: $ dd if=/dev/zero bs=8848 count=1 of=a 2>/dev/null $ cp a b $ cmp a b 0 0x300 Segmentation fault (core dumped) $ cmp a b 0 0x200 cmp: EOF on b $ cmp a b 0x300 0 cmp: EOF on a Jean-Marc -- Jean-Marc ZucconiPGP Key: finger [EMAIL