Correct MAX_BUF_SIZE in serialization 2018-09-ser-fixes
authorMatt Corallo <git@bluematt.me>
Wed, 12 Sep 2018 17:21:13 +0000 (13:21 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 12 Sep 2018 17:22:42 +0000 (13:22 -0400)
commitd7ed4c63e7ac0ef94189e318300edc456d472e86
tree1cf4895e0c2636e245ee6a03993ecb530ee12656
parentc3e225597d3981410644b84ad1e7b02c7a6bc7c7
Correct MAX_BUF_SIZE in serialization

I think this might have been my fault due to faulty review
feedback, but fuzzer caught trivial crash here where you try to
send a ping message larger than 16KB (but smaller than the
max-length 64KB) and you crash as message serialization is unwrap()
src/util/ser.rs