set reading length in ThriftBytesWriteSupport to avoid potential OOM caused by corrupted data
Merge pull request #347 from Parquet/check_read_length_avoid_oom

set reading length in ThriftBytesWriteSupport to avoid potential OOM caused by trying to allocate big byte arrays caused by corrupted thrift data.