DicomObjects.NET8 Documentation
DicomObjects Namespace / DicomGlobal Class / FailOnSuspiciousPreamble Property



In This Topic
    FailOnSuspiciousPreamble Property
    In This Topic
    Detect any non-zero data in the preamble (the first 128 bytes) leading to 'DICM', and alert if any unwanted bytes or malicious code is present. A pre-defined list of file formats PreambleFileSignatures is used for checking against the non-zero preamble This mainly affects data with such preamble when reading it in. Writing to disk or sending using DICOM protocol would remove existing preamble (effectively cleaning any malicious preamble) and recreate it when written to disk on the receiving side
    Syntax
    'Declaration
     
    
    Public Shared Property FailOnSuspiciousPreamble As Boolean
    'Usage
     
    
    Dim value As Boolean
     
    DicomGlobal.FailOnSuspiciousPreamble = value
     
    value = DicomGlobal.FailOnSuspiciousPreamble
    public static bool FailOnSuspiciousPreamble {get; set;}
    public:
    static property bool FailOnSuspiciousPreamble {
       bool get();
       void set (    bool value);
    }
    Remarks
    This mainly affects data with such preamble when reading it in. Writing to disk or sending using DICOM protocol would remove existing preamble (effectively cleaning any malicious preamble) and recreate it when written to disk on the receiving side
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also