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

ruby: data corruption in thrift_native implementation of MemoryBufferTransport

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7, 0.8, 0.9
    • 0.9
    • Ruby - Library
    • Tested on Linux/Centos 6.0, with thrift_native.so installed

    • Patch Available

    Description

      Detected a failure when serializing, then deserializing a specific object
      (I think the object needs to be large enough, AND probably must have non zero data at a specific offset)

      $ /usr/bin/thrift --gen rb test.thrift && ruby test.rb
      Caught Thrift::ProtocolException exception: Invalid value of field x1!
      Trace:
      ./gen-rb/test_types.rb:34:in `validate'
      test.rb:15:in `read'
      test.rb:15

      Attachments

        1. test.thrift
          0.3 kB
          Nevo Hed
        2. test.rb
          0.3 kB
          Nevo Hed
        3. patch
          1 kB
          Nevo Hed

        Activity

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

          People

            nhed Nevo Hed
            nhed Nevo Hed
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment