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

Fix a encoding struct bug in the compact protocol implementation to lua

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • Lua - Library
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              2er0 zero
              2er0 zero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m