Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-5661

Invalidated context may be used in query observer callback

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.7
    • 3.1.6
    • C
    • Security Level: Public
    • None
    • C-iOS 130
    • 4

    Description

      After CBL-5631 was fixed in LiteCore, we have seen that if the change callback is called after the c4queryobserver is disabled and the context object passed to th c4queryobserver is released (freed), the already-freed context object will be used and cause the crash.

      The usage scenario that could cause the problem is when the query's listener token is removed at the same time that there is a new query's result change to be notified.

      Attachments

        Issue Links

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

          Activity

            People

              pasin Pasin Suriyentrakorn
              pasin Pasin Suriyentrakorn
              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