Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-151

Cancellation of the HTTP request might lead to segfault or memory leaks

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      • request_valid() and lcb_cancel_http_request() must not dereference request pointer until it makes sure that the pointer is valid
      • lcb_cancel_http_request() must not remove the request from the hashset, because it will prevent it from destroying
      • on_data callback should check if the request has been cancelled and finish it without on_complete notification.
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Show
        avsej Sergey Avseyev added a comment - http://review.couchbase.org/23497

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            avsej Sergey Avseyev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes