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

MemoryBuffer > 4096 bytes will truncate remaining bytes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1
    • Component/s: Ruby - Library
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: