Skip to content

CDRIVER-5897 Remove duplicated variable assignment in bson-decimal128.c #1860

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
Feb 18, 2025
Merged

CDRIVER-5897 Remove duplicated variable assignment in bson-decimal128.c #1860

merged 1 commit into from
Feb 18, 2025

Conversation

LinRaymond2006
Copy link
Contributor

first_digit is already cleared out on line 601.

@kevinAlbs kevinAlbs self-requested a review February 14, 2025 18:50
Copy link
Collaborator

@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.

Thank you for the PR @LinRaymond2006. Curious: was this detected by a static analysis tool?

@kevinAlbs kevinAlbs changed the title Remove duplicated variable assignment in bson-decimal128.c CDRIVER-5897 Remove duplicated variable assignment in bson-decimal128.c Feb 14, 2025
@LinRaymond2006
Copy link
Contributor Author

LinRaymond2006 commented Feb 15, 2025

Nope. I have been reviewing the code for a week, trying to find potential vulnerabilities, and notice the duplicated line.

@kevinAlbs kevinAlbs merged commit 8422cad into mongodb:master Feb 18, 2025
43 checks passed
@LinRaymond2006 LinRaymond2006 deleted the libbson branch February 19, 2025 19:46
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