diff 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
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.h	Tue Mar 17 16:36:14 2020 +0100
+++ b/Core/DicomFormat/DicomMap.h	Tue Mar 17 19:19:48 2020 +0100
@@ -180,6 +180,9 @@
 
     void GetTags(std::set<DicomTag>& tags) const;
 
+    static bool IsDicomFile(const char* dicom,
+                            size_t size);
+    
     static bool ParseDicomMetaInformation(DicomMap& result,
                                           const char* dicom,
                                           size_t size);