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;

Jonathan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net