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

Invalidated context may be used in query observer callback

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Beryllium
    • Beryllium
    • iOS
    • Security Level: Public
    • None

    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

          Activity

            People

              The Lite The Lite
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty