Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: grpc/grpc-swift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.26.0
Choose a base ref
...
head repository: grpc/grpc-swift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.26.1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jun 3, 2025

  1. Fix decompression of empty messages with a ratio limit (#2246)

    Motivation:
    
    The decompressor has a decompression limit to protect against zip bombs.
    This can either be absolute or ratio based. It's also possible in gRPC
    for a zero length message to be marked as compressed. gRPC attempts to
    decompress the zero length message and fails (because zlib wants a
    non-zero sized buffer and gRPC won't give it one as the limit is the
    buffer size is limited by the `ratio * msg_size` which in this case is
    zero).
    
    Modifications:
    
    - If the input to decompress has no length, skip decompression
    altogether
    
    Result:
    
    - Can decompress zero length payloads with the ratio limit
    - Resolves #2245
    glbrntt authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    a56a157 View commit details
    Browse the repository at this point in the history
Loading