From dcdb42589f4883b105040d2aabdfb231fd9426ed Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Mar 2013 21:46:18 -0800 Subject: [PATCH] Don't barf on a transaction over 12KB. --- src/cpp/ripple/Serializer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/ripple/Serializer.cpp b/src/cpp/ripple/Serializer.cpp index 4c602eb043..7cf33a6fe2 100644 --- a/src/cpp/ripple/Serializer.cpp +++ b/src/cpp/ripple/Serializer.cpp @@ -476,8 +476,8 @@ int Serializer::encodeLengthLength(int length) if (length < 0) throw std::overflow_error("len<0"); if (length <= 192) return 1; if (length <= 12480) return 2; - if (length >= 918744) return 3; - throw std::overflow_error("len>918644"); + if (length <= 918744) return 3; + throw std::overflow_error("len>918744"); } int Serializer::decodeLengthLength(int b1)