[vtkusers] Leak + Segfault in XML Image Reader

Brad King brad.king at kitware.com
Wed Oct 4 13:57:58 EDT 2006


Kevin H. Hobbs wrote:
> Hunting through vtkXMLDataParser.cxx in ddd for the source of my leak
> and segfault I see that at line 668 which is :
> 
> 	memcpy(data, blockBuffer+beginBlockOffset, n);
> 
> sometimes (data + n) > blockBuffer so the memcopy will overwrite
> blockBuffer. Specifically I see on about the 75th time I get to a
> breakpoint here :
> 
> 	memcpy(5404388, 5404432+0, 112);
> 
> 5404388 + 112 = 5404500. Oops! 

Please submit your example code and this analysis to the bug tracker:

http://www.vtk.org/Bug

Thanks,
-Brad



More information about the vtkusers mailing list