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

Jens Geyer resolved THRIFT-5262.
--------------------------------
    Fix Version/s: 0.14.0
         Assignee: zero
       Resolution: Fixed

Good catch!

> Fix a encoding struct bug in the compact protocol implementation to lua
> -----------------------------------------------------------------------
>
>                 Key: THRIFT-5262
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5262
>             Project: Thrift
>          Issue Type: Bug
>          Components: Lua - Library
>    Affects Versions: 0.13.0
>            Reporter: zero
>            Assignee: zero
>            Priority: Major
>             Fix For: 0.14.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> code in lib/lua/TCompactProtocol.lua as follow:
> function TCompactProtocol:writeStructBegin(name)
>   self.lastFieldIndex = self.lastFieldIndex + 1
>   self.lastField[self.lastFieldIndex] = self.lastFieldId
>   self.lastFieldId = 0
> end
> the lastFieldId is saved into the new lastFieldIndex pos and then is restored 
> mistakenly later.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to