Page MenuHomePhabricator

Memory errors in ipSegmentation
Closed, ResolvedPublic

Description

Email from Bryn Lloyd:

By running valgrind I have come across several memory erros, e.g. in the function cdelete() in ipSegmentationCombineRegion.c. It causes following
error:

28165== Source and destination overlap in memcpy(0x10E48474, 0x10E48488, 60)

28165== at 0x4024959: memcpy (mc_replace_strmem.c:402)

28165== by 0xB2C33D8: cdelete (in

/scratch/blloyd/mitk-svn-build/bin/libipSegmentation.so)

28165== by 0xB2C4B70: ipMITKSegmentationCombineRegion (in

Related Objects

Event Timeline

heimann added a subscriber: heimann.

This can be fixed by replacing "memcpy" by "memmove", which is the suggested "official" replacement for "bcopy".
http://www.opengroup.org/onlinepubs/000095399/functions/bcopy.html

[SVN revision 23804]
FIX (#4333): Memory errors in ipSegmentation

Merging "Utilities" component into "Other"