aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-28 14:55:09 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-28 14:58:22 +0100
commit5a412b7a3f5b7c53d9777d58fe1e6bd11a205596 (patch)
tree7983a712ea7aa775c3c7e452b3e58bdd5fa6742e /src/wallet
parentMerge pull request #3800 (diff)
downloadmonero-5a412b7a3f5b7c53d9777d58fe1e6bd11a205596.tar.xz
disable file size sanity check when loading the wallet cache
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index cd3ca3245..18136ec27 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3772,7 +3772,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
{
wallet2::cache_file_data cache_file_data;
std::string buf;
- bool r = epee::file_io_utils::load_file_to_string(m_wallet_file, buf);
+ bool r = epee::file_io_utils::load_file_to_string(m_wallet_file, buf, std::numeric_limits<size_t>::max());
THROW_WALLET_EXCEPTION_IF(!r, error::file_read_error, m_wallet_file);
// try to read it as an encrypted cache