Support deep TeX numeric scans with bounded stack growth
This commit is contained in:
1 parent
7070cc6b82
commit
dba73f1f47
9 files changed
+206
-47
No files matched your search
@@ -147,9 +147,10 @@ fn invalid_quantities_overflows_units_and_readonly_positions_fail() {
|
||||
"{source}"
|
||||
);
|
||||
}
|
||||
let over_budget = Limits::default().input_depth + 1;
|
||||
for source in [
|
||||
format!("\\number{}0", "\\count".repeat(130)),
|
||||
format!("\\number{}0", "\\dimen".repeat(130)),
|
||||
format!("\\number{}0", "\\count".repeat(over_budget)),
|
||||
format!("\\number{}0", "\\dimen".repeat(over_budget)),
|
||||
] {
|
||||
let error = Executor::default()
|
||||
.run(file(&source), &mut FontFiles)
|
||||
|
||||
Reference in new issue
Block a user