# HG changeset patch # User Sebastien Jodogne # Date 1583933317 -3600 # Node ID 21efa32c8a10d479926d3f13154384289a391265 # Parent e69c556f19134bce1ada9a4e9ed3934142b36bc9 safeguard diff -r e69c556f1913 -r 21efa32c8a10 Core/DicomNetworking/DicomUserConnection.cpp --- a/Core/DicomNetworking/DicomUserConnection.cpp Wed Mar 11 11:04:48 2020 +0100 +++ b/Core/DicomNetworking/DicomUserConnection.cpp Wed Mar 11 14:28:37 2020 +0100 @@ -1685,6 +1685,17 @@ throw OrthancException(ErrorCode_ParameterOutOfRange); } + for (size_t i = 0; i < sopClassUids.size(); i++) + { + if (sopClassUids[i].empty() || + sopInstanceUids[i].empty()) + { + throw OrthancException(ErrorCode_ParameterOutOfRange, + "The SOP class/instance UIDs cannot be empty, found: \"" + + sopClassUids[i] + "\" / \"" + sopInstanceUids[i] + "\""); + } + } + if (transactionUid.size() < 5 || transactionUid.substr(0, 5) != "2.25.") {