Skip to content

Commit 2731560

Browse files
adjust issue801 so that all angle brackets are read in different buffer
1 parent 23a5161 commit 2731560

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/issues.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,11 @@ fn issue776() {
498498
}
499499

500500
/// Regression test for https://github.com/tafia/quick-xml/issues/801
501+
/// Angle brackets are read in different buffer
501502
#[test]
502503
fn issue801() {
503-
let xml = b"<!DOCTYPE X [<!-- --><!ENTITY a \"a\">]>";
504-
let reader = BufReader::with_capacity(4, &xml[..]);
504+
let xml = b"<!DOCTYPE X [<!-- --> <!ENTITY a \"a\">]>";
505+
let reader = BufReader::with_capacity(2, &xml[..]);
505506
let mut reader = Reader::from_reader(reader);
506507
let mut buf = Vec::new();
507508
loop {

0 commit comments

Comments
 (0)