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

Verifying and fixing issue 1876 #1877

Merged
merged 2 commits into from
Jul 29, 2022
Merged

Verifying and fixing issue 1876 #1877

merged 2 commits into from
Jul 29, 2022

Conversation

lemire
Copy link
Member

@lemire lemire commented Jul 29, 2022

Calling count_fields on an empty document, and then instantiating an object over the document might currently be unsafe. Instantiating an object and then calling count_fields on it is safe, which is the recommended usage.

Users are commended to use count_fields sparingly.

Fixes #1876

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.

Calling count_fields on an empty document, and then instantiating an object over the document might be unsafe.
1 participant