thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Klucar (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (THRIFT-1448) TCompactProtocol.java incorrect type/version masks
Date Tue, 06 Dec 2011 17:13:39 GMT
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

        

Mime
View raw message