clifordsymack / Electron-Cash

Electrum; Bitcoin thin client
MIT License
6 stars 3 forks source link

Harden the code against protobuf exceptions on bad messages from peers #109

Closed cculianu closed 5 years ago

cculianu commented 5 years ago

protobuf ParseFromString may raise exceptions which this code wasn't catching.

It's entirely possible for peers to send a malformed message intentionally... we attempt to deal with it and blame when we can.

cculianu commented 5 years ago

Ok, well.. I reviewed this and tested it. Merging.