diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-09-27 16:17:17 -0700 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-09-27 16:17:17 -0700 |
commit | 3cbb44a2fd79ce9c667006e2e42e61513993e59a (patch) | |
tree | fbb2d9f86de021996c3104e252d1d89b00a52e5a /src/wallet | |
parent | Merge pull request #6840 (diff) | |
parent | fix a couple bugs found by OSS-fuzz (diff) | |
download | monero-3cbb44a2fd79ce9c667006e2e42e61513993e59a.tar.xz |
Merge pull request #6841
b6c4f8cd5 fix a couple bugs found by OSS-fuzz (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 063c493ce..a3755ff08 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -13043,6 +13043,8 @@ process: crypto::public_key tx_pub_key = get_tx_pub_key_from_received_outs(td); const std::vector<crypto::public_key> additional_tx_pub_keys = get_additional_tx_pub_keys_from_extra(td.m_tx); + THROW_WALLET_EXCEPTION_IF(td.m_internal_output_index >= td.m_tx.vout.size(), + error::wallet_internal_error, "Internal index is out of range"); THROW_WALLET_EXCEPTION_IF(td.m_tx.vout[td.m_internal_output_index].target.type() != typeid(cryptonote::txout_to_key), error::wallet_internal_error, "Unsupported output type"); const crypto::public_key& out_key = boost::get<cryptonote::txout_to_key>(td.m_tx.vout[td.m_internal_output_index].target).key; |