Core neg smokes: Array OOB get/set tags (set accepts null), Map missing key; Bridge canonicalize diff test (opt-in) with mutated JSON dump; Selfhost: apply child_env OOB strict guard around VM exec; Core bridge supports dump-mut env.

This commit is contained in:
nyash-codex
2025-11-01 19:57:09 +09:00
parent 6279d93e9a
commit acdc4cbd84
6 changed files with 183 additions and 0 deletions

View File

@ -229,7 +229,12 @@ impl NyashRunner {
println!("Result: {}", code);
std::process::exit(code);
}
crate::runner::child_env::pre_run_reset_oob_if_strict();
self.execute_mir_module(&module);
if crate::config::env::oob_strict_fail() && crate::runtime::observe::oob_seen() {
eprintln!("[selfhost][oob-strict] Out-of-bounds observed → exit(1)");
std::process::exit(1);
}
return true;
}
Err(e) => {
@ -309,7 +314,12 @@ impl NyashRunner {
}
}
}
crate::runner::child_env::pre_run_reset_oob_if_strict();
self.execute_mir_module(&module);
if crate::config::env::oob_strict_fail() && crate::runtime::observe::oob_seen() {
eprintln!("[selfhost][oob-strict] Out-of-bounds observed → exit(1)");
std::process::exit(1);
}
return true;
} else {
return false;