From c63da264d7bbd17723f89069ca0da469e20f3494 Mon Sep 17 00:00:00 2001 From: SagePtr Date: Thu, 18 Aug 2016 13:46:12 +0200 Subject: [PATCH] Update geoipdatabase.cpp Updated MaxMind database limit from 10MB to 64MB. I hope it will be enough for few years. Fix for issue #5609 --- src/base/net/private/geoipdatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/net/private/geoipdatabase.cpp b/src/base/net/private/geoipdatabase.cpp index 52a147b24..57c9dc3e4 100644 --- a/src/base/net/private/geoipdatabase.cpp +++ b/src/base/net/private/geoipdatabase.cpp @@ -40,7 +40,7 @@ namespace { const quint32 __ENDIAN_TEST__ = 0x00000001; const bool __IS_LITTLE_ENDIAN__ = (reinterpret_cast(&__ENDIAN_TEST__)[0] == 0x01); - const int MAX_FILE_SIZE = 10485760; // 10MB + const quint32 MAX_FILE_SIZE = 67108864; // 64MB const char DB_TYPE[] = "GeoLite2-Country"; const quint32 MAX_METADATA_SIZE = 131072; // 128KB const char METADATA_BEGIN_MARK[] = "\xab\xcd\xefMaxMind.com";