sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

Add sanity check when reading messages #342

Closed gavin-norman-sociomantic closed 5 years ago

gavin-norman-sociomantic commented 6 years ago

MessageReceiver.receive doesn't currently have any kind of check that the length of the message body is sane. The message header includes a parity check, for safety, but this could fail. It's worth being super secure here and adding an extra sanity check.

gavin-norman-sociomantic commented 5 years ago

Basically a dup of #38.