Document |
[DataMemberAttribute] public double MaxArchiveCompressionRatio { get; set; }
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