Skip to content

pako: pass Uint8Array input instead of number[] #13446

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mayant15
Copy link
Contributor

pako's expected input type is Uint8Array | ArrayBuffer | string. The driver currently passes a number[]. While this passes input validation, it hits shallow crashes like these (since subarray is not a function on number[]) and doesn't actually fuzz the library.

This PR passes in a Uint8Array instead.

Copy link

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

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