From dev-return-56604-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Wed Aug 28 20:55:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id ABC38180181 for ; Wed, 28 Aug 2019 22:55:03 +0200 (CEST) Received: (qmail 35085 invoked by uid 500); 28 Aug 2019 20:55:02 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 35069 invoked by uid 99); 28 Aug 2019 20:55:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2019 20:55:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DE85CE2FE5 for ; Wed, 28 Aug 2019 20:55:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 96DC9782263 for ; Wed, 28 Aug 2019 20:55:00 +0000 (UTC) Date: Wed, 28 Aug 2019 20:55:00 +0000 (UTC) From: "Jens Geyer (Jira)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (THRIFT-4944) Field IDs > 255 fail with compact protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)