Closed RobertHabrich closed 1 month ago
Thanks for the report. I've tested your files on my linux box with valgrind, and I likewise see heap corruption,
==11483== Invalid write of size 1
==11483== at 0x4A0D874: vtkDICOMReader::YBRToRGB(int, int, void*, long long)
Fixed by 4ea84f1.
That was a very fast fix 👍 Have also verified that it is working properly in our environment. Thank you
Using this simple test application, I can consistently reproduce a heap corruption when using a debug version of vtk-dicom 0.8.16 when left-clicking into the render window (to unload the first image and load another one):
This is the heap corruption message I get:
These are the two sample images I'm using:
YBR_FULL_HEAP_CORRUPTION_SAMPLES.zip