diff --git a/src/Serialization/BinaryInputStreamSerializer.cpp b/src/Serialization/BinaryInputStreamSerializer.cpp index 28b6ea55..eeb60f97 100644 --- a/src/Serialization/BinaryInputStreamSerializer.cpp +++ b/src/Serialization/BinaryInputStreamSerializer.cpp @@ -39,7 +39,7 @@ void BinaryInputStreamSerializer::endObject() { bool BinaryInputStreamSerializer::beginArray(size_t& size, Common::StringView name) { readVarintAs(stream, size); - if (size > 100 * 1024 * 1024) { + if (size > 10000 * 1024 * 1024) { throw std::runtime_error("array size is too big"); } @@ -93,7 +93,7 @@ bool BinaryInputStreamSerializer::operator()(std::string& value, Common::StringV uint64_t size; readVarint(stream, size); - if (size > 100 * 1024 * 1024) { + if (size > 10000 * 1024 * 1024) { throw std::runtime_error("string size is too big"); } else if (size > 0) { std::vector temp; diff --git a/src/Serialization/KVBinaryInputStreamSerializer.cpp b/src/Serialization/KVBinaryInputStreamSerializer.cpp index 67090b7a..5c576d32 100644 --- a/src/Serialization/KVBinaryInputStreamSerializer.cpp +++ b/src/Serialization/KVBinaryInputStreamSerializer.cpp @@ -70,7 +70,7 @@ size_t readVarint(Common::IInputStream& s) { std::string readString(Common::IInputStream& s) { auto size = readVarint(s); - if (size > 100 * 1024 * 1024) { + if (size > 10000 * 1024 * 1024) { throw std::runtime_error("string size is too big"); }