openethereum/ethcore/src
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
..
account_provider Permission fix (#8441) 2018-04-20 12:22:19 +02:00
blockchain Fetching logs by hash in blockchain database (#8463) 2018-05-02 09:40:27 +02:00
blooms revert removing blooms (#8066) 2018-03-12 20:15:55 +00:00
client Don't panic in import_block if invalid rlp (#8522) 2018-05-03 09:01:13 +02:00
engines Return error if RLP size of transaction exceeds the limit (#8473) 2018-04-27 15:02:45 +02:00
ethereum Move ethcore::Error to error_chain (#8386) 2018-04-19 11:52:54 +02:00
json_tests Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
miner Return error if RLP size of transaction exceeds the limit (#8473) 2018-04-27 15:02:45 +02:00
snapshot `duration_ns: u64 -> duration: Duration` (#8457) 2018-04-27 15:04:27 +02:00
spec Return error if RLP size of transaction exceeds the limit (#8473) 2018-04-27 15:02:45 +02:00
state Pass on storage keys tracing to handle the case when it is not modified (#8491) 2018-05-02 15:47:53 +01:00
tests Don't panic in import_block if invalid rlp (#8522) 2018-05-03 09:01:13 +02:00
trace Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
verification Don't panic in import_block if invalid rlp (#8522) 2018-05-03 09:01:13 +02:00
views Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
account_db.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
block.rs Fix receipts stripping. (#8414) 2018-04-19 10:25:15 +01:00
builtin.rs dissolve util (#7460) 2018-01-10 15:35:18 +03:00
cache_manager.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
db.rs Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
encoded.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
error.rs Don't panic in import_block if invalid rlp (#8522) 2018-05-03 09:01:13 +02:00
executed.rs Move ethcore::Error to error_chain (#8386) 2018-04-19 11:52:54 +02:00
executive.rs Improve VM executor stack size estimation rules (#8439) 2018-04-20 12:32:25 +02:00
externalities.rs Private transactions integration pr (#6422) 2018-04-09 16:14:33 +02:00
factory.rs Kovan WASM fork code (#7849) 2018-02-19 12:27:42 +01:00
header.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
lib.rs Move ethcore::Error to error_chain (#8386) 2018-04-19 11:52:54 +02:00
machine.rs Return error if RLP size of transaction exceeds the limit (#8473) 2018-04-27 15:02:45 +02:00
pod_account.rs removed redundant PodAccount::new method (#7928) 2018-02-19 10:58:04 +01:00
pod_state.rs clean up account fmt::Debug (#7983) 2018-02-27 18:37:36 +01:00
state_db.rs Permission fix (#8441) 2018-04-20 12:22:19 +02:00
test_helpers.rs Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
test_helpers_internal.rs Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
tx_filter.rs New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00