diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-15 18:29:59 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-15 19:36:13 +0000 |
commit | 4ee156556dfbb27fa460749bf7ae15a9df904ede (patch) | |
tree | 8c672f4c106078355230705f046c076eeff13a6a /src | |
parent | Merge pull request #4977 (diff) | |
download | monero-4ee156556dfbb27fa460749bf7ae15a9df904ede.tar.xz |
wallet_rpc_server: fix buffer read overflow in string assignment
Diffstat (limited to '')
-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 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) { |