Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4568

LUA: Missing double endianness conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Lua - Library
    • Patch Available
    • Patch

    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.

      Notes:

      • The fix is assuming that the size of double is 8 bytes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fbarriga Felipe Barriga Richards
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: