Skip to content

Conversation

kevinAlbs
Copy link
Collaborator

Applies changes from #2132 to r1.30 branch to include in 1.30.6 release.

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

…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 changed the title CDRIVER-6112 fix ownership transfer of mongoc_write_command_t (#2132) [r1.30] CDRIVER-6112 fix ownership transfer of mongoc_write_command_t (#2132) Oct 3, 2025
@kevinAlbs kevinAlbs marked this pull request as ready for review October 3, 2025 16:50
@kevinAlbs kevinAlbs requested a review from a team as a code owner October 3, 2025 16:50
@kevinAlbs kevinAlbs changed the title [r1.30] CDRIVER-6112 fix ownership transfer of mongoc_write_command_t (#2132) [r1.30] CDRIVER-6112 fix ownership transfer of mongoc_write_command_t Oct 3, 2025
@kevinAlbs kevinAlbs merged commit 27419be into mongodb:r1.30 Oct 6, 2025
1 check passed
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.

2 participants