Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 02:27:51 -0500
From:      Jerry Hicks <wghhicks@ix.netcom.com>
To:        "Jamil J. Weatherbee" <jamil@trojanhorse.ml.org>, freebsd-chat@freebsd.org
Subject:   Re: Possible Kernel Bug?
Message-ID:  <346808F7.D6555734@ix.netcom.com>
References:  <Pine.BSF.3.96.971110194629.1253A-100000@trojanhorse.ml.org> <3467FA72.2536360D@ix.netcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jerry Hicks wrote:
> 
> [moved to -chat]
> 
> Jamil J. Weatherbee wrote:
> >
> > I may be dead wrong about this but it is worth a try:
> >
> > void *data;
> > void *data_end;
> >
> > lets say you are passed a struct buf with a data buffer bp->b_data
> > and bp->b_bcount = 1000;
> >
> > if you say data = bp->b_data /* this is fine */
> > what about data_end = bp->b_data + bp->b_bcount  /* this pointer could
> > point to something nonexistent??? */

OOOPS!  I ass-u-me-d that bp->b_data was a void pointer.

If it's a char pointer, that *is* legal.

J. Hicks



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