Skip to content

Conversation

kevinAlbs
Copy link
Collaborator

@kevinAlbs kevinAlbs commented Oct 10, 2025

[skip-ci] Tested with this patch build: https://spruce.mongodb.com/version/68e9597d5a19210007dc3e69

See CDRIVER-6125 for details and links to the original report.

Notably: a negative the length field does not trigger the same issue. But a check is added to error earlier. Otherwise a negative length triggers a later error in _mongoc_gridfs_bucket_read_chunk. This check could be reverted if it seems unnecessary.

@kevinAlbs kevinAlbs marked this pull request as ready for review October 10, 2025 20:00
@kevinAlbs kevinAlbs requested a review from a team as a code owner October 10, 2025 20:00
@kevinAlbs kevinAlbs requested a review from connorsmacd October 10, 2025 20:00
Copy link
Contributor

@connorsmacd connorsmacd left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinAlbs kevinAlbs merged commit ec39911 into mongodb:master Oct 16, 2025
1 check passed
kevinAlbs added a commit to kevinAlbs/mongo-c-driver that referenced this pull request Oct 16, 2025
* validate chunk size from server document
* test negative and zero length
* check for negative length
  * Not strictly needed. But gives an earlier error.
kevinAlbs added a commit that referenced this pull request Oct 16, 2025
* validate chunk size from server document
* test negative and zero length
* check for negative length
  * Not strictly needed. But gives an earlier error.
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