diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-23 22:02:55 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-17 20:42:41 +0800 |
commit | c35f4fd0bd93bcab01ba7704fc144514a2cc7a1b (patch) | |
tree | f83e6627c6e29830907ea1b3f5df17ef064a5f85 /p2p/message.go | |
parent | 4020258801febb9cb3fc221245812fae07d1f2a5 (diff) | |
download | dexon-c35f4fd0bd93bcab01ba7704fc144514a2cc7a1b.tar.gz dexon-c35f4fd0bd93bcab01ba7704fc144514a2cc7a1b.tar.zst dexon-c35f4fd0bd93bcab01ba7704fc144514a2cc7a1b.zip |
rlp: check top-level value sizes against input limit
This is a preliminary fix for #420 (SEC-18 RLP decoder unsafe
allocation). If a sane input limit is set on the rlp.Stream,
it should no longer be possible to cause huge []byte allocations.
Diffstat (limited to 'p2p/message.go')
0 files changed, 0 insertions, 0 deletions