mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 23:40:25 -04:00
add empty container sanity checks when using front() and back()
This commit is contained in:
parent
56fa6ce15f
commit
45a1c4c088
9 changed files with 32 additions and 6 deletions
|
@ -799,6 +799,10 @@ namespace rpc
|
|||
}
|
||||
|
||||
header.hash = hash_in;
|
||||
if (b.miner_tx.vin.size() != 1 || b.miner_tx.vin.front().type() != typeid(txin_gen))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
header.height = boost::get<txin_gen>(b.miner_tx.vin.front()).height;
|
||||
|
||||
header.major_version = b.major_version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue