[vtkusers] Leak + Segfault in XML Image Reader

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Oct 3 10:49:56 EDT 2006


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! 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061003/208f0466/attachment.pgp>


More information about the vtkusers mailing list