Skip to content

Instantly share code, notes, and snippets.

@shesek
Created April 24, 2019 22:34
Show Gist options
  • Save shesek/452c5f7c30be4cbf3fa12893413f190f to your computer and use it in GitHub Desktop.
Save shesek/452c5f7c30be4cbf3fa12893413f190f to your computer and use it in GitHub Desktop.
Patch Electrum v3.1.3 to fix remote networking thread crash vulnerability
559,564c559,568
< if error is None and result > 0:
< i = params[0]
< fee = int(result*COIN)
< self.config.update_fee_estimates(i, fee)
< self.print_error("fee_estimates[%d]" % i, fee)
< self.notify('fee')
---
> try:
> if error is None and result > 0:
> i = params[0]
> fee = int(result*COIN)
> self.config.update_fee_estimates(i, fee)
> self.print_error("fee_estimates[%d]" % i, fee)
> self.notify('fee')
> except:
> self.print_error("ignoring estimatefee exception")
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment