mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-25 04:47:50 +00:00
Motivation: NIOHTTPRequestDecompressor and HTTPResponseDecompressor are both affected by an issue where the decompression limits defined by their DecompressionLimit property wasn't correctly checked when is was set with DecompressionLimit.size(...), allowing denial of service attacks. Modifications: - Update DecompressionLimit.size(...) to correctly check the size of the decompressed data. - Update test cases to avoid future regressions regarding the size checks. Result: Prevents DoS attacks though maliciously crafted compressed data.