Uploaded image for project: 'Etch'
  1. Etch
  2. ETCH-288

Buffer Index is not updated after EtchFlexBuffer::put

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • binding-cpp
    • None
    • Linux and iOS

    Description

      EtchFlexBuffer::put doesn't not update index of a buffer passed as an argument.

      after copy of buffer's data, buffer's index has to be advanced by.
      e.g
      buffer.mIndex += buffer.getAvailableBytes()
      or
      buffer.mIndex += numBytes.

      When multiple packets are contained in EtchFlexBuffer, this bug causes SIG is corrupt in EtchPacketizer.cpp

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              allsea9 Shingyu Kang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: