Skip to content

protobuf-js: pass a length to consumeString() #13447

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 2 commits into from
Jun 24, 2025

Conversation

mayant15
Copy link
Contributor

FuzzedDataProvider.consumeString() expects a length as its first argument. There are two calls in the driver that omit this argument and crash. Pass in a random length instead, consistent with other calls to consumeString() in the driver.

Copy link

mayant15 is a new contributor to projects/protobuf-js. The PR must be approved by known contributors before it can be merged. The past contributors are: 0xricksanchez

@oliverchang oliverchang merged commit a925975 into google:master Jun 24, 2025
15 checks passed
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