Skip to content
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

v1 parsing can crash on invalid inputs #28

Open
howardjohn opened this issue Dec 4, 2024 · 0 comments
Open

v1 parsing can crash on invalid inputs #28

howardjohn opened this issue Dec 4, 2024 · 0 comments

Comments

@howardjohn
Copy link

Describe the bug
During some testing I found
ppp::HeaderResult::parse(&[116, 3, 18, 13]) will result in a panic due to an out-of-bounds array lookup here

let header = from_utf8(&input[..length])?;

Expected behavior
Should return an error, not panic

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

No branches or pull requests

1 participant