openethereum/ethcore
Andrew Jones 66c0638f3b Don't panic in import_block if invalid rlp (#8522)
* Don't panic in import_block if invalid rlp

* Remove redundant type annotation

* Replace RLP header view usage with safe decoding

Using the view will panic with invalid RLP. Here we use Rlp decoding directly which will return a `Result<_, DecoderError>`. While this path currently should not have any invalid RLP - it makes it safer if ever called with invalid RLP from other code paths.
2018-05-03 09:01:13 +02:00
..
benches Fixes bench and removes rustc_serialize dependency (#5988) 2017-10-11 17:39:12 +07:00
crypto ethcrypto renamed to ethcore-crypto and moved to ethcore dir (#8340) 2018-04-10 13:56:56 +02:00
evm remove evmjit (#8229) 2018-04-04 18:07:49 +09:00
light Show imported messages for light client (#8517) 2018-05-01 14:16:03 +02:00
node_filter Bump master to 1.12 (#8477) 2018-04-25 16:25:43 +02:00
private-tx duration_ns: u64 -> duration: Duration (#8457) 2018-04-27 15:04:27 +02:00
res Enable WebAssembly and Byzantium for Ellaism (#8520) 2018-05-01 19:41:46 +01:00
service More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
src Don't panic in import_block if invalid rlp (#8522) 2018-05-03 09:01:13 +02:00
stratum Bump master to 1.12 (#8477) 2018-04-25 16:25:43 +02:00
sync duration_ns: u64 -> duration: Duration (#8457) 2018-04-27 15:04:27 +02:00
transaction Return error if RLP size of transaction exceeds the limit (#8473) 2018-04-27 15:02:45 +02:00
types Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
vm Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
wasm Update wasmi and pwasm-utils (#8493) 2018-04-26 14:00:42 +02:00
Cargo.toml Bump master to 1.12 (#8477) 2018-04-25 16:25:43 +02:00