We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee735e8 commit 52f2d41Copy full SHA for 52f2d41
src/tests.rs
@@ -603,6 +603,18 @@ fn unquoted_url(b: &mut Bencher) {
603
604
struct JsonParser;
605
606
+#[test]
607
+fn no_stack_overflow_multiple_nested_blocks() {
608
+ let mut input: String = "{{".into();
609
+ for _ in 0..30 {
610
+ let dup = input.clone();
611
+ input.push_str(&dup);
612
+ }
613
+ let mut input = Parser::new(&input);
614
+ while !input.is_exhausted() {
615
+ input.next().expect("What?");
616
617
+}
618
619
impl DeclarationParser for JsonParser {
620
type Declaration = Json;
0 commit comments