aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-15 18:29:59 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-15 19:36:13 +0000
commit4ee156556dfbb27fa460749bf7ae15a9df904ede (patch)
tree8c672f4c106078355230705f046c076eeff13a6a /src/wallet
parentMerge pull request #4977 (diff)
downloadmonero-4ee156556dfbb27fa460749bf7ae15a9df904ede.tar.xz
wallet_rpc_server: fix buffer read overflow in string assignment
Diffstat (limited to 'src/wallet')
-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 90afa91fd..a35e19cd3 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -3331,7 +3331,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)
{