TBinaryProtocol.stringSizeLimit

If positive, limits the length of deserialized strings/binary data to the given number of bytes.

This is useful to avoid allocating excessive amounts of memory when broken data is received. If the limit is exceeded, a SIZE_LIMIT-type TProtocolException is thrown.

Defaults to zero (no limit).

class TBinaryProtocol(Transport = TTransport)
int stringSizeLimit;

Meta