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

Felipe Barriga Richards updated THRIFT-4568:
--------------------------------------------
    Description: 
On Lua, {{TBinaryProtocol}} and {{TCompactProtocol}} are using 
{{libluabpack.bunpack}} to pack/unpack double primitives.

The current implementation on {{luabpack.c}} is not handling the endianness of 
the doubles so when it interacts with implementations written on other 
languages it fails to convert the values.

 A patch has been attached to this ticket. Tests to check the fix are WIP.

  was:
On Lua, {{TBinaryProtocol}} and {{TCompactProtocol}} are using 
{{libluabpack.bunpack}} to pack/unpack double primitives.

The current implementation on {{luabpack.c}} is not handling the endianness of 
the doubles so when it interacts with implementations written on other 
languages it fails to convert the values.

 


> LUA: Missing double endianness conversion
> -----------------------------------------
>
>                 Key: THRIFT-4568
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4568
>             Project: Thrift
>          Issue Type: Bug
>          Components: Lua - Library
>            Reporter: Felipe Barriga Richards
>            Priority: Major
>              Labels: LUA
>         Attachments: 
> 0001-THRIFT-4568-LUA-Missing-double-endianness-conversion.patch
>
>
> On Lua, {{TBinaryProtocol}} and {{TCompactProtocol}} are using 
> {{libluabpack.bunpack}} to pack/unpack double primitives.
> The current implementation on {{luabpack.c}} is not handling the endianness 
> of the doubles so when it interacts with implementations written on other 
> languages it fails to convert the values.
>  A patch has been attached to this ticket. Tests to check the fix are WIP.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to