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

Fix dereference of empty Optional

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • 3

    Description

      As I built release/lithium on my windows box, I received a warning message complaining dereferencing of empty optional. Following the call stack, the violator is in Value+Dump.cc, l170,

      offset = *valueToOffset(dstPtr);

      Compared with MacOS/Clang, the empty optional yields 0.

       

      Attachments

        Issue Links

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

          Activity

            People

              blake.meike Blake Meike
              jianmin.zhao Jianmin Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty