wwfixture: stop before capture ordinals wrap

This commit is contained in:
2026-08-09 04:04:34 +09:00
parent a85306e68f
commit 8f475affb3

View File

@@ -423,6 +423,10 @@ fn cancelall(handles: []exec.process) bool = {
}; };
fn runfixtures(opts: *options, c: *corpus, ids: []identity) int = { fn runfixtures(opts: *options, c: *corpus, ids: []identity) int = {
if (ids.len > 9999) {
fmt.errorln("wwfixture: selected matrix exceeds four-digit capture namespace");
return 1;
};
let runroot: str = strings.dup(temp.dir()); let runroot: str = strings.dup(temp.dir());
let rid: str = runid(runroot); let rid: str = runid(runroot);
let cells: []fixturecell; let cells: []fixturecell;