Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R4R] security patch from go-ethereum #63

Merged
merged 8 commits into from
Jan 11, 2021
Merged

[R4R] security patch from go-ethereum #63

merged 8 commits into from
Jan 11, 2021

Commits on Jan 11, 2021

  1. consensus/ethash: use 64bit indexes for the DAG generation (#21793)

    * Bit boundary fix for the DAG generation routine
    
    * Fix unnecessary conversion warnings
    
    Co-authored-by: Sergey Pavlov <[email protected]>
    2 people authored and unclezoro committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    2a79ac1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a64615 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad3ff64 View commit details
    Browse the repository at this point in the history
  4. internal/ethapi: fix nil deref + fix estimateGas console bindings (#2…

    …1601)
    
    * tried to fix
    
    * fix for js api
    
    * fix for nil pointer ex
    
    * rev space
    
    * rev space
    
    * input call formatter
    MariusVanDerWijden authored and unclezoro committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    d1f95d5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4608da6 View commit details
    Browse the repository at this point in the history
  6. accounts/abi: fix a bug in getTypeSize method (#21501)

    * accounts/abi: fix a bug in getTypeSize method
    
    e.g. for "Tuple[2]" type, the element of the array is a tuple type and the size of the tuple may not be 32.
    
    * accounts/abi: add unit test of getTypeSize method
    tofudfy authored and unclezoro committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    670009d View commit details
    Browse the repository at this point in the history
  7. p2p/enode: avoid crashing for invalid IP (#21981)

    The database panicked for invalid IPs. This is usually no problem
    because all code paths leading to node DB access verify the IP, but it's
    dangerous because improper validation can turn this panic into a DoS
    vulnerability. The quick fix here is to just turn database accesses
    using invalid IP into a noop. This isn't great, but I'm planning to
    remove the node DB for discv5 long-term, so it should be fine to have
    this quick fix for half a year.
    
    Fixes #21849
    fjl authored and unclezoro committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    ca1d1cb View commit details
    Browse the repository at this point in the history
  8. p2p/discover: fix deadlock in discv5 message dispatch (#21858)

    This fixes a deadlock that could occur when a response packet arrived
    after a call had already received enough responses and was about to
    signal completion to the dispatch loop.
    
    Co-authored-by: Felix Lange <[email protected]>
    2 people authored and unclezoro committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    9e8ee51 View commit details
    Browse the repository at this point in the history