Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: Ruby - Library
    • Labels:
      None
    • Environment:

      Thrift 0.7.0dev (revision 1152979)
      Ruby 1.9.2
      OS X 10.6, Linux x86_64

    • Patch Info:
      Patch Available

      Description

      There is a segfault bug in the native Ruby deserializer that was introduced with THRIFT-1189. The @index variable of MemoryBufferTransport is not always correctly updated from native code when GARBAGE_BUFFER_SIZE is exceeded.

      Will attach the patch shortly.

        Activity

        Hide
        Hudson added a comment -

        Integrated in Thrift #206 (See https://builds.apache.org/job/Thrift/206/)
        THRIFT-1252 Segfault in Ruby deserializer
        Patch: Ilya Maykov

        roger : http://svn.apache.org/viewvc/?view=rev&rev=1153093
        Files :

        • /thrift/trunk/lib/rb/ext/memory_buffer.c
        • /thrift/trunk/lib/rb/lib/thrift/transport/memory_buffer_transport.rb
        Show
        Hudson added a comment - Integrated in Thrift #206 (See https://builds.apache.org/job/Thrift/206/ ) THRIFT-1252 Segfault in Ruby deserializer Patch: Ilya Maykov roger : http://svn.apache.org/viewvc/?view=rev&rev=1153093 Files : /thrift/trunk/lib/rb/ext/memory_buffer.c /thrift/trunk/lib/rb/lib/thrift/transport/memory_buffer_transport.rb
        Hide
        Roger Meier added a comment -

        committed

        Show
        Roger Meier added a comment - committed
        Hide
        Ilya Maykov added a comment -

        Attaching patch file.

        Show
        Ilya Maykov added a comment - Attaching patch file.

          People

          • Assignee:
            Ilya Maykov
            Reporter:
            Ilya Maykov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development