thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-4944) Field IDs > 255 fail with compact protocol
Date Wed, 28 Aug 2019 20:55:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jens Geyer updated THRIFT-4944:
-------------------------------
    Description: 
The following struct cannot be read with Delphi's TCompactProtocol implementation, because
an 8 bit integer is used instead of a 16 bit integer for the field ID. Depending on the compiler
settings this leads to either a range check error or data loss.

{code:java}
struct Foo {
   500 : i64  field500;
  5000 : i64  field5000;
  20000 : i64  field20000;
}
{code}


  was:
The following struct cannot be read with Delphi's TCompactProtocol implementation, because
an 8 bit integer is used instead of a 16 bit integer. Depending on the compiler settings this
leads to either a range check error or data loss.

{code:java}
struct Foo {
   500 : i64  field500;
  5000 : i64  field5000;
  20000 : i64  field20000;
}
{code}



> Field IDs > 255 fail with compact protocol
> ------------------------------------------
>
>                 Key: THRIFT-4944
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4944
>             Project: Thrift
>          Issue Type: Bug
>          Components: Delphi - Library
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.13.0
>
>
> The following struct cannot be read with Delphi's TCompactProtocol implementation, because
an 8 bit integer is used instead of a 16 bit integer for the field ID. Depending on the compiler
settings this leads to either a range check error or data loss.
> {code:java}
> struct Foo {
>    500 : i64  field500;
>   5000 : i64  field5000;
>   20000 : i64  field20000;
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message