Skip to content

Conversation

kevinAlbs
Copy link
Collaborator

Applies changes from #2132 to r2.1 branch to include in 2.1.2 release.

ac38749 was cherry-picked and manually fixed to match formatting on r2.1 (6ccc0ae changed formatting on master, and is not on r2.1).

…odb#2132)

* add regression test
* do not memcpy `bson_t` struct in array
  * `memcpy` does not correctly transfer ownership of `bson_t`. Instead: heap allocate `bson_t`.
* warn against using `bson_t` in `mongoc_array_t`
@kevinAlbs kevinAlbs marked this pull request as ready for review October 3, 2025 16:49
@kevinAlbs kevinAlbs requested a review from a team as a code owner October 3, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant