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

Panic: unexpected end of input #6

Open
eduardosm opened this issue Aug 4, 2024 · 1 comment
Open

Panic: unexpected end of input #6

eduardosm opened this issue Aug 4, 2024 · 1 comment

Comments

@eduardosm
Copy link

Minimal reproducer:

let mut data: &[u8] = b"a: ''|\n 0";
let mut parser = libyaml_safer::Parser::new();
parser.set_input_string(&mut data);
let _ = libyaml_safer::Document::load(&mut parser);
@simonask
Copy link
Owner

It would be helpful to know if the behavior is different here from unsafe-libyaml. This library is intended to be "bug-for-bug" compatible, so that's important (but that doesn't mean we can't do something better, like 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

2 participants