TupleProtocol#writeBitSet unintentionally writes a variable length byte array -----------------------------------------------------------------------------
Key: THRIFT-1365 URL: https://issues.apache.org/jira/browse/THRIFT-1365 Project: Thrift Issue Type: Bug Components: Java - Compiler, Java - Library Reporter: Bryan Duxbury Assignee: Bryan Duxbury Fix For: 0.8 BitSet.length() only returns the highest-set-bit, meaning that if you have more than 8 optional fields, and the 9+th optional field is unset, then only the first byte's worth of bits will be serialized. This leads to a problem on the read side, where the bit vector is assumed to be fixed width, and arbitrary deserialization occurs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira