Fix dereference of empty Optional

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.

 

Activity

Show:

Blake Meike March 2, 2023 at 7:43 PM

readable summary

CB robot January 5, 2022 at 4:30 AM

Build couchbase-lite-net-3.1.0-21 contains fleece commit 1e9d1ad with commit message:
fixing empty optinal warning by MSVC. (#130) (#131)

CB robot December 15, 2021 at 2:19 AM

Build couchbase-lite-java-3.1.0-77 contains fleece commit 1e9d1ad with commit message:
fixing empty optinal warning by MSVC. (#130) (#131)

CB robot December 15, 2021 at 2:19 AM

Build couchbase-lite-android-3.1.0-77 contains fleece commit 1e9d1ad with commit message:
fixing empty optinal warning by MSVC. (#130) (#131)

CB robot December 11, 2021 at 12:06 AM

Build couchbase-lite-c-3.1.0-60 contains fleece commit 1e9d1ad with commit message:
fixing empty optinal warning by MSVC. (#130) (#131)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created November 29, 2021 at 5:35 PM
Updated August 31, 2024 at 10:56 AM
Resolved March 2, 2023 at 7:43 PM
Instabug