viewer breaks in directory with malformed DICOM images

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

User avatar
bugreporter
Posts: 7
Joined: Tue Dec 05, 2017 1:15 pm

viewer breaks in directory with malformed DICOM images

Post by bugreporter »

If a directory currently being viewed contains a DICOM file, with PixelData, Rows, Columns but no SamplesPerPixel field, the viewer crashes upon entry to that directory. Sadly the forum doesn't let me upload DICOM files so I can't provide a sample. Tried decompile it without much success.
Edit: this is on an x86_64 Arch Linux machine.
Last edited by bugreporter on Fri Jan 01, 2021 3:13 pm, edited 2 times in total.
cday
XnThusiast
Posts: 4134
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: viewer breaks in directory with malformed DICOM images

Post by cday »

bugreporter wrote:If a directory currently being viewed contains a DICOM file, with PixelData, Rows, Columns but no SamplesPerPixel field, the viewer crashes upon entry to that directory. Sadly the forum doesn't let me upload DICOM files so I can't provide a sample.

This is on an x86_64 Arch Linux machine.
You should be able to upload a DICOM file in a ZIP or similar archive, 2MiB the current attachment limit...