an error in function "void* vtkHeap::AllocateMemory(size_t n)"
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In this function, there are the following codes:
#...
if ( ! this->Current || (this->Position + n) >= this->Current->Size ) { this->Add(blockSize); }
#...
I think "(this->Position + n) >= this->Current->Size )" should be replaced by "(this->Position + n) > this->Current->Size )".
For example, there is a block with "pos=0, size=5", which can satisfy quest of n<=5 but not n<=4.