Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DecompressionBombChecker (0.29 sec)

  1. okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/DecompressionBombChecker.kt

     */
    package okhttp3.brotli.internal
    
    import okio.Buffer
    import okio.ForwardingSource
    import okio.IOException
    import okio.Source
    
    /** Fails decompression if the ratio is too high. */
    internal class DecompressionBombChecker(
      private val maxRatio: Long,
    ) {
      private var inputByteCount = 0L
      private var outputByteCount = 0L
    
      fun wrapInput(source: Source): Source {
        return object : ForwardingSource(source) {
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top