Page MenuHomePhabricator

ImageGenerator::GenerateFromReference causes HEAP CORRUPTION
Open, NormalPublic

Description

OS: Windows, VS 2017

Situation: Having a unit test that uses following line:

mitk::Image::pointer m_zMax = mitk::ImageGenerator::GenerateImageFromReference<double>(refImage, 0.95);

If this line is active we have an excpetion at the and of the test, when everything is cleand up and the test is pulled down.

The error says

Debug Error
HEAP CORRUPTION DETECTED: after Normal block (#ääää) at 0xSomething.
CRT detected that the application wrote to memory after end of heap buffer.

If this line is not part of the test everything works fine. (No corruption).

Event Timeline

floca created this task.Mar 8 2019, 5:20 PM
kislinsk triaged this task as Normal priority.Mar 29 2019, 8:42 AM
kislinsk added a project: Restricted Project.