TCompactProtocol.java incorrect type/version masks
--------------------------------------------------

                 Key: THRIFT-1448
                 URL: https://issues.apache.org/jira/browse/THRIFT-1448
             Project: Thrift
          Issue Type: Bug
          Components: Java - Library
    Affects Versions: 0.8
            Reporter: Jim Klucar
            Priority: Minor


The type/version byte for TCompactProtocol isn't being properly decoded. In the 
readMessageBegin method, the type mask used is 0x03, however the type is 
represented by 3 bits, so the proper mask is 0x07.  Similarly in the getTType 
method, the type mask is 0x0f, but it should be 0x07 for a 3 bit mask.  I only 
looked in the Java file for this error, perhaps it exists in other libraries.

--
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

        

Reply via email to