mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Don't barf on a transaction over 12KB.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user