Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-60

struct freed before rasied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.3
    • 1.1.2
    • library
    • Security Level: Public
    • None

    Description

      the ctx struct's freed before the exception ( exc ) is raised - so it references invalid memory

      ext/couchbase_ext/couchbase_ext.c- exc = ctx->exception; <----
      ext/couchbase_ext/couchbase_ext.c- extended = ctx->extended;
      ext/couchbase_ext/couchbase_ext.c: free(ctx); <------
      ext/couchbase_ext/couchbase_ext.c- if (exc != Qnil)

      { ext/couchbase_ext/couchbase_ext.c- rb_exc_raise(exc); <------ ext/couchbase_ext/couchbase_ext.c- }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            james.mauss James Mauss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty