Parquet/parquet-mr — pull request #347 by tsdeng (2014-04-03 18:16:24+00:00)
Title: set reading length in ThriftBytesWriteSupport to avoid potential OOM cau...

Reduce the chance of OOM when data is corrupted. When readBinary is called on TBinaryProtocol, it reads the length of the binary first,
so if the data is corrupted, it could read a big integer as the length of the binary and therefore causes OOM to happen.
Currently this fix only applies to TBinaryProtocol which has the setReadLength defined.