Page MenuHomePhabricator

ProportionalTimeGeometry initialization causing crash in mitkAutoCropImageFilter
Closed, WontfixPublic

Description

When using mitkAutoCropImageFilter to crop 4D single sliced binary image, initialization of ProportionalTimeGeometry crashes when cloning geometry in after the first timestep iteration [2].

Changing type of passed geometry [3] from raw pointer to smart pointer fixed the problem.

[1] https://github.com/MITK/MITK/blob/4a18c923c66edcdb5d3fa0901c75b62321ebe923/Modules/AlgorithmsExt/src/mitkAutoCropImageFilter.cpp#L180

[2] https://github.com/MITK/MITK/blob/9f1c49328c616a57ef042fc3597a1a076488a5a3/Modules/Core/src/DataManagement/mitkProportionalTimeGeometry.cpp#L248

[3] https://github.com/MITK/MITK/blob/master/Modules/AlgorithmsExt/src/mitkAutoCropImageFilter.cpp#L150

Event Timeline

kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.