Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-05-08 12:51:53

Jonathan Turkanis wrote:

> Fourth, the implementation of write is unsafe, since you don't check
> for overflow. Writing too many characters will lead to stack
> corruption.

I forgot to mention that

  m_nBufferLen = n;

should be

  m_nBufferLen += n;


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at