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: golang/net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: golang/net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 6, 2022

  1. http2: limit canonical header cache by bytes, not entries

    The canonical header cache is a per-connection cache mapping header
    keys to their canonicalized form. (For example, "foo-bar" => "Foo-Bar").
    We limit the number of entries in the cache to prevent an attacker
    from consuming unbounded amounts of memory by sending many unique
    keys, but a small number of very large keys can still consume an
    unreasonable amount of memory.
    
    Track the amount of memory consumed by the cache and limit it based
    on memory rather than number of entries.
    
    Thanks to Josselin Costanzi for reporting this issue.
    
    For golang/go#56350
    
    Change-Id: I41db4c9823ed5bf371a9881accddff1268489b16
    Reviewed-on: https://go-review.googlesource.com/c/net/+/455635
    Reviewed-by: Jenny Rakoczy <jenny@golang.org>
    Run-TryBot: Damien Neil <dneil@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    neild committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    1e63c2f View commit details
    Browse the repository at this point in the history
Loading