aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-01 17:24:33 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-01 17:24:33 +0200
commitb09f1bdb8f0acae225558203c4c64dc8d15828c8 (patch)
tree2833a1aa106099286073c6e97b995c425b70710c /src
parentMerge pull request #5298 (diff)
parentwallet_rpc_server: fix buffer read overflow in string assignment (diff)
downloadmonero-b09f1bdb8f0acae225558203c4c64dc8d15828c8.tar.xz
Merge pull request #5299
4ee15655 wallet_rpc_server: fix buffer read overflow in string assignment (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
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)
{