Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONGOCRYPT-784 avoid passing over-aligned bson_iter_t by value in parameters #971

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

eramongodb
Copy link
Contributor

Resolves MONGOCRYPT-784.

Followup to #954, which introduced a by-value bson_iter_t parameter for find_collections_in_pipeline which triggers the following MSVC warning when ENABLE_EXTRA_ALIGNMENT is enabled for the bson library:

error C2719: 'pipeline_iter': formal parameter with requested alignment of 128 won't be aligned

@eramongodb eramongodb requested a review from kevinAlbs February 28, 2025 16:14
@eramongodb eramongodb self-assigned this Feb 28, 2025
Copy link
Contributor

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, and thank you for the fix!

As of #926, enabling extra alignment is not the default for the bundled libbson. But I expect this could be triggered if using a system install of an over-aligned libbson. I request backporting the merged commit to r1.13 for the next patch release.

@eramongodb eramongodb merged commit 7d799f5 into mongodb:master Feb 28, 2025
47 of 49 checks passed
@eramongodb eramongodb deleted the crypt-784 branch February 28, 2025 17:18
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