Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2004 13:00:42 -0700 (PDT)
From:      Andrei Iltchenko <iltchenko@yahoo.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/66386: Buffer overrun in the 'in_pcbopts' function.
Message-ID:  <200405102000.i4AK0g5o013629@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

The following reply was made to PR kern/66386; it has been noted by GNATS.

From: Andrei Iltchenko <iltchenko@yahoo.com>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: kern/66386: Buffer overrun in the 'in_pcbopts' function.
Date: Mon, 10 May 2004 12:53:14 -0700 (PDT)

 Yes, I did mean "(unsigned)cnt - (IPOPT_MINOFF - 1))".
 Sorry for the slipup.
 
 Regards,
 Andrei.
 
 --- Maxim Konovalov <maxim@macomnet.ru> wrote:
 > 
 > Did you mean "(unsigned)cnt - (IPOPT_MINOFF - 1))"?
 > 
 > Index: ip_output.c
 >
 ===================================================================
 > RCS file: /home/ncvs/src/sys/netinet/ip_output.c,v
 > retrieving revision 1.215
 > diff -u -r1.215 ip_output.c
 > --- ip_output.c	14 Apr 2004 01:13:14 -0000	1.215
 > +++ ip_output.c	9 May 2004 13:40:41 -0000
 > @@ -1735,7 +1735,7 @@
 >  			 */
 >  			bcopy((&cp[IPOPT_OFFSET+1] + sizeof(struct
 > in_addr)),
 >  			    &cp[IPOPT_OFFSET+1],
 > -			    (unsigned)cnt + sizeof(struct in_addr));
 > +			    (unsigned)cnt - (IPOPT_MINOFF - 1));
 >  			break;
 >  		}
 >  	}
 > %%%
 > 
 > -- 
 > Maxim Konovalov
 
 
 
 	
 		
 __________________________________
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs  
 http://hotjobs.sweepstakes.yahoo.com/careermakeover 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405102000.i4AK0g5o013629>