DicomObjects.NET.8.48 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 System.Boolean
    public static System.bool FailOnSuspiciousPreamble {get; set;}
    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: .NET CLR 4.8 or higher

    See Also