Click or drag to resize

DocumentTaskSettingsMaxArchiveCompressionRatio Property

Archive maximum compression ratio security feature to help protect against archive compression 'ZIP-bombs'.

Namespace: OpenDiscoverSDK.Interfaces.Platform.Settings
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2025.4.4.0 (2025.4.4)
Syntax
C#
[DataMemberAttribute]
public double MaxArchiveCompressionRatio { get; set; }

Property Value

Double
Remarks

Untrusted archives should be tested for actual expansion size and compression ration. See property TestArchives.

If an archive or nested archives within archives have a combined parent/child hierarchy compression ratio that exceeds the compression ratio value of this property then their Result properties get marked with MaxArchiveCompressionRatioError and are not processed further. The archive, if a child item, will get written to the "LargeFiles" folder for inspection and/or later re-queuing. Often compression 'zip-bombs' rely on deeply nested and repeated archives within archives to achieve their very high compression ratios.

Compression ratio is defined as: (Total archive expanded size)/(total archive packed size)

The default maximum archive compression ratio to trigger an error is 750. Valid values: less than 0 = no limit; 100.0 to double.MaxValue

See Also