aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-19 12:57:59 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-19 12:57:59 -0500
commit896512b2b6c68b032645c6e16654386fad8ef6e5 (patch)
tree89be8a90b2b35f354058ef5af94fb27eb74223da /src
parentcb130c759059e670fd30a10a436fb286fd556da4 (diff)
parent5a412b7a3f5b7c53d9777d58fe1e6bd11a205596 (diff)
downloadmonzero-core-896512b2b6c68b032645c6e16654386fad8ef6e5.tar.gz
monzero-core-896512b2b6c68b032645c6e16654386fad8ef6e5.tar.xz
monzero-core-896512b2b6c68b032645c6e16654386fad8ef6e5.zip
Merge pull request #3878
5a412b7 disable file size sanity check when loading the wallet cache (moneromooo-monero)
Diffstat (limited to 'src')
-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 617fb9a87..bb0953689 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3794,7 +3794,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