comparison Core/DicomFormat/DicomMap.h @ 3771:74889e6f6d68

fix memory issues if parsing invalid DICOM file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Mar 2020 19:19:48 +0100
parents a9ce35d67c3c
children e7003b2203a7
comparison
equal deleted inserted replaced
3769:eb044cc49d51 3771:74889e6f6d68
178 178
179 static void GetMainDicomTags(std::set<DicomTag>& result); 179 static void GetMainDicomTags(std::set<DicomTag>& result);
180 180
181 void GetTags(std::set<DicomTag>& tags) const; 181 void GetTags(std::set<DicomTag>& tags) const;
182 182
183 static bool IsDicomFile(const char* dicom,
184 size_t size);
185
183 static bool ParseDicomMetaInformation(DicomMap& result, 186 static bool ParseDicomMetaInformation(DicomMap& result,
184 const char* dicom, 187 const char* dicom,
185 size_t size); 188 size_t size);
186 189
187 void LogMissingTagsForStore() const; 190 void LogMissingTagsForStore() const;