Skip to content

fix(NODE-6812): incorrect negative bigint handling #762

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Mar 5, 2025

Description

What is changing?

Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

⚠️ Fixed potential data corruption bug when useBigInt64 is enabled

After refactoring to improve deserialization performance in #649, we inadvertently introduced a bug that manifested when deserializing Long values with the useBigInt64 flag enabled. The bug would lead to negative Long values being deserialized as unsigned integers. This issue has been resolved here.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken
Copy link
Contributor Author

nbbeeken commented Mar 5, 2025

https://spruce.mongodb.com/version/67c8c805f207840007417f26

Some of the CI is failing but due to setups and version changes. node-16 and node-20 pass, and the perf which uses node-18 is also passing.

@nbbeeken nbbeeken changed the title fix(NODE-6812): incorrect negative bigint handling (#752) fix(NODE-6812): incorrect negative bigint handling Mar 5, 2025
@nbbeeken nbbeeken requested a review from baileympearson March 5, 2025 22:22
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Mar 5, 2025
@baileympearson baileympearson merged commit ce3e544 into v6.4.x Mar 5, 2025
1 check failed
@baileympearson baileympearson deleted the NODE-6812-fix-useBigInt64 branch March 5, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Primary Review In Review with primary reviewer, not yet ready for team's eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants