Bugs item #229071, was opened at 2001-01-16 14:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=229071&group_id=3152

Category: Architecture: Server (nsd)
Group: aolserver3_2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jerry Asher (jerryasher)
Assigned to: Nobody/Anonymous (nobody)
Summary: incorrect read in sock.cpp

Initial Comment:
> I believe I found a fix for a fix within sock.cpp.
> >
> > There was a change to sockread to check for a buffer overflow, but I
>believe
> > the correct amount to read is not the requested amount NOR the size of the
> > buffer, but the lesser of the two.
> >
> > #if 0
> >  cdPtr->cnt =
> >    Ns_SockRecv(
> >      cdPtr->sock, cdPtr->buf,
> >      cdPtr->sdPtr->bufsize, cdPtr->sdPtr->timeout);
> > #else
> >  cdPtr->cnt =
> >    Ns_SockRecv(
> >      cdPtr->sock, cdPtr->buf,
> >      ((toread < cdPtr->sdPtr->bufsize) ? toread : cdPtr->sdPtr->bufsize),
> >      cdPtr->sdPtr->timeout);
> > #endif


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-01-01 00:37

Message:
Logged In: NO

[EMAIL PROTECTED]

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=103152&aid=229071&group_id=3152

Reply via email to