title: How to lock a buffer which needs to be write-only?
body: <p>Is it possible to overload the <code>new</code> operator to allocate a bigger buffer with read-only memory on both sides to detect memory overflow, and how could I make that memory read-only?</p>
  
  <p>linux + gcc</p>