bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in TCPStream::overflow


From: David Sugar
Subject: Re: bug in TCPStream::overflow
Date: Sat, 20 Dec 2003 06:39:46 -0500
User-agent: KMail/1.5.3

I presume the same issue exists in the Serial stuff...

On Friday 19 December 2003 01:17 am, Keith Thornton wrote:
> Commoncpp2-1.0.13 file socket.cpp line 1438
> I think that the line memmove(pbuf, pptr() + rlen, req);
> should read memmove(pbuf, pbuf + rlen, req);
>
> TCPStream::overflow() is called because the buffer is full and data needs
> to be written to the device. I.e. pptr() == epptr.
> therefore,  reading from pptr() + rlen reads from past the end of the
> buffer causing a segmentation violation. We really want to move the data
> which could not be written to the device (pbase + rlen) to the start of the
> buffer.
> Best wishes
> Keith Thornton
>
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]