Actions
Bug #1026
closeddcmqrscp may crash when reading malformed configuration file
Start date:
2022-05-24
Due date:
% Done:
100%
Estimated time:
1:00 h
Module:
dcmqrscp
Operating System:
Compiler:
Description
Three issues have been detected in class DcmQueryRetrieveConfig that may cause an application crash of dcmqrscp when reading a malformed configuration file, due to insufficient validation of the input data. The issues can be reproduced by compiling DCMTK (on Linux, with gcc) using the following cmake options:
cmake -G"Unix Makefiles" .. -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -fsanitize=address" -DCMAKE_CXX_FLAGS="-g -fprofile-arcs -ftest-coverage -fsanitize=address"
and then running
dcmqrscp -c bugN_dcmqrscp.cfg
with one of the three configuration files provided below.
Reported 2022-05-24 by Zahra Mirzamomen <zahra.mirzamomen@monash.edu> and Marcel Böhme <marcel.boehme@mpi-sp.org>.
Files
Actions