Fixed
- Fix unconditionally-dangling references returned by
get_<type>()accessors forbsoncxx::v_noabi::types::bson_value::value.- The unusable
T const&reference return type is replaced with aTby-value return type to satisfy the API's documented behavior.
- The unusable
- Do not convert empty string-like BSON type values into null strings in v_noabi API.
- This occurred whenever the BSON type value was accessed as a
types::viewortypes::value, e.g. viaelement::get_*(). - This affected BSON type values: string, symbol, code, regex, dbpointer, and codewscope.
- This does not affect v1 API, where an empty string is always represented as a default-initialized string view.
- This occurred whenever the BSON type value was accessed as a
- Do not invoke undefined behavior when copying or assigning null string-like BSON type values in v1 API.
- This occurred on copy construction and copy assignment of
v1::types::valuegiven a null string-like BSON type value. - This affected BSON type values: string, symbol, code, dbpointer, and codewscope.
- This did not affect string-like values when set to a non-empty value.
- This occurred on copy construction and copy assignment of
Changed
- Bump the minimum required C Driver version to 2.5.8.
See the full list of changes in Jira.
Feedback
To report a bug or request a feature, please open a ticket in the MongoDB issue management tool Jira:
- Create an account and login.
- Navigate to the CXX project
- Click
Create.
Signature Verification
Release artifacts may be verified by using the accompanying detached signature (.asc) and the cpp-driver public key obtained from https://pgp.mongodb.com.