Project

General

Profile

Potential memory corruption bug in DataBuf::alloc() ยป databuf_alloc_bug.diff

Matthias Baas, 22 Aug 2010 08:43

View differences:

src/types.cpp (Arbeitskopie)
152 152
    {
153 153
        if (size > size_) {
154 154
            delete[] pData_;
155
            pData_ = 0;
156
            size_ = 0;
157
            pData_ = new byte[size];
155 158
            size_ = size;
156
            pData_ = new byte[size];
157 159
        }
158 160
    }
159 161

  
    (1-1/1)