Re: interesting bug in /usr/bin/cmp

1999-07-29 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) :

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 |---

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 Jean-Marc I've seen a

Re: interesting bug in /usr/bin/cmp

1999-07-29 Thread Warner Losh
In message pine.bsf.4.10.9907290051210.3955-100...@janus.syracuse.net 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

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.orig

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 Jean-Marc I've seen a

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 Thu

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

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 doing cmp with

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

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 doing cmp with

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 cmp: EOF on a