Only in /var/lib/copr-rpmbuild/results/ripgrep-edit/upstream-unpacked/Source0/ripgrep-edit-0.3.13: .distro diff -U2 -r /var/lib/copr-rpmbuild/results/ripgrep-edit/upstream-unpacked/Source0/ripgrep-edit-0.3.13/src/gbnf.rs /var/lib/copr-rpmbuild/results/ripgrep-edit/srpm-unpacked/ripgrep-edit-0.3.13.tar.gz-extract/ripgrep-edit-0.3.13/src/gbnf.rs --- /var/lib/copr-rpmbuild/results/ripgrep-edit/upstream-unpacked/Source0/ripgrep-edit-0.3.13/src/gbnf.rs 2026-05-08 14:03:38.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/ripgrep-edit/srpm-unpacked/ripgrep-edit-0.3.13.tar.gz-extract/ripgrep-edit-0.3.13/src/gbnf.rs 2026-05-14 21:31:35.000000000 +0000 @@ -416,8 +416,18 @@ gbnf_content.push_str("root ::= \"```\\n\" ( "); gbnf_content.push_str(&file_rules.join(" |\n")); - gbnf_content.push_str(&format!( - " ){{1,{}}} \"```\"\n", - file_ranges.filenames.len() - )); + if false { + gbnf_content.push_str(&format!( + " ){{1,{}}} \"```\"\n", + file_ranges.filenames.len() + )); + } else { + /* + * The DoS fixes in llama.cpp + * 990e4d96980d0b016a2b07049cc9031642fb9903 rightfully had to + * enforce some limits for repetitions, while unlimited + * repetitions aren't bound. + */ + gbnf_content.push_str(" )+ \"```\"\n"); + } gbnf_content.push_str("prefix ::= \"");