openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Non initialized array


From: Michel Lerenard
Subject: Re: [Openexr-devel] Non initialized array
Date: Tue, 22 Nov 2016 17:11:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0

On 11/22/2016 04:55 PM, Paul Miller wrote:
On 11/22/2016 8:28 AM, Michel Lerenard wrote:
The lineSampleCount array is never reset. The code calls
_data->lineSampleCount.resizeErase(_data->maxY - _data->minY + 1);

in initialize(), then in the execute function of the buffer task, we
increment the values of the cells, although they have never been set to
zero !

Doesn't "resizeErase" also set to zero?



_______________________________________________
Openexr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Unfortunately not:

From ImfArray.h:

template <class T>
inline void
Array<T>::resizeErase (long size)
{
    T *tmp = new T[size];
    delete [] _data;
    _size = size;
    _data = tmp;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]