thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Klucar (Created) (JIRA)" <>
Subject [jira] [Created] (THRIFT-1448) incorrect type/version masks
Date Tue, 06 Dec 2011 17:13:39 GMT incorrect type/version masks

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

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message