Skip to content

MONGOCRYPT-909 reject large KMIP response length#1187

Open
kevinAlbs wants to merge 2 commits into
mongodb:masterfrom
kevinAlbs:M909
Open

MONGOCRYPT-909 reject large KMIP response length#1187
kevinAlbs wants to merge 2 commits into
mongodb:masterfrom
kevinAlbs:M909

Conversation

@kevinAlbs

Copy link
Copy Markdown
Collaborator

This PR uses the KMS_PARSER_MAX_RESPONSE_LEN length added in #1163 to address MONGOCRYPT-909 and put a 16 MiB limit on the reported length in a KMIP response.

A regression test is added, as well as cases for other bad lengths (0, and "too small").

@kevinAlbs kevinAlbs requested a review from rcsanchez97 June 8, 2026 15:37
@kevinAlbs kevinAlbs requested a review from a team as a code owner June 8, 2026 15:37
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.

1 participant