-
Notifications
You must be signed in to change notification settings - Fork 236
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
Unexpected Bang Since 0.23.1 #590
Labels
Comments
It seems that this bug is happened when /// Regression test for https://github.com/tafia/quick-xml/issues/590
#[test]
fn issue590() {
let mut reader = Reader::from_reader(BufReader::with_capacity(
16,
&b"<!DOCTYPE t [<!1><!2>]>"[..],
// 0 7 ^15 ^23
//[ ] = capacity
));
let mut buf = vec![];
loop {
match reader.read_event_into(&mut buf).unwrap() {
Event::Eof => break,
_ => (),
}
}
} |
Interesting though that this is dependent on the buffer which should be transparent to the xml reader. But indeed increasing the buffer size fixes the issue. |
This was referenced Sep 19, 2024
Duplicate of #533 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following file can't be parsed since 0.23.1 as it throws an UnexpectedBang(69) when parsing with the given example code. Simply ignoring the error causes the given example code not to parse anything at all. Version 0.22.0 worked fine
JMdict.zip
This is just a trimmed file of the JMdict file to demonstrate the issue. You can find the original file here.
Working v0.22.0 Code:
Broken v0.28.1 Code (same code, just migrated):
The text was updated successfully, but these errors were encountered: