Actions
Bug #987
closedReading DICOM files from stdin may lead to infinite loop on Windows
Start date:
2021-05-01
Due date:
% Done:
100%
Estimated time:
2:00 h
Module:
dcmdata
Operating System:
Win32
Compiler:
Description
The recently introduced feature that allows DICOM files to be read from stdin causes DcmFileFormat::loadFile() to be stuck in an infinite loop in some cases.
This only affects Windows, not any of the Posix operating systems.
The reason is apparently that Windows by default operates stdin in text mode, and DCMTK fails to switch to binary mode before starting to read DICOM data from stdin.
The error can be reproduced by piping the attached sample file to dcmdump with dcmdump - < dset_xfer_deflated.dcm
Files
Actions