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

MemoryBuffer > 4096 bytes will truncate remaining bytes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.1
    • Ruby - Library
    • None

    Description

      There is a bug in the thrift_native implementation of MemoryBuffer. When the read index is >= 4096, we're supposed to chop that 4096 bytes off the buffer to save memory. Instead, it incorrectly nils out the entire buffer, effectively truncating the remaining buffer.

      Attachments

        1. thrift-402.patch
          0.5 kB
          Bryan Duxbury

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bryanduxbury Bryan Duxbury
            bryanduxbury Bryan Duxbury
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment