diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:24:33 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:24:33 +0200 |
commit | b09f1bdb8f0acae225558203c4c64dc8d15828c8 (patch) | |
tree | 2833a1aa106099286073c6e97b995c425b70710c /src/wallet | |
parent | Merge pull request #5298 (diff) | |
parent | wallet_rpc_server: fix buffer read overflow in string assignment (diff) | |
download | monero-b09f1bdb8f0acae225558203c4c64dc8d15828c8.tar.xz |
Merge pull request #5299
4ee15655 wallet_rpc_server: fix buffer read overflow in string assignment (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index b5644ce99..3a216f68a 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -3522,7 +3522,7 @@ namespace tools er.message = "Failed to encode seed"; return false; } - res.seed = electrum_words.data(); + res.seed = std::string(electrum_words.data(), electrum_words.size()); if (!wal) { |