        bool         CheckRegion(int nPos, int nSize)
        {
            return (nPos >= 0 && nPos + nSize >= nPos && nPos + nSize <= m_nLen);
        }
The software writes data past the end, or before the beginning, of the intended buffer.