aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 18:14:02 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 18:14:02 +0330
commit0953ba4c093b859f88bb45670d1edd5a37fa6b4d (patch)
treec02002028d9e96ae1edcaa530874c23faa50a6f3 /src/core
parentseed: regenerate after merging demo-fixes (image c079adab) (diff)
parentfix: bytes test read one byte past the fixed map into the heap (diff)
merge work/small-oob: bytes test out-of-bounds read
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 7d1b91e..d758cb6 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -382,6 +382,7 @@ static Cell hostcall(Cell op, Cell a, Cell b, Cell c)
}
if (a == 7 || a == 8) return stack_expand(a == 8, b, &cb_s, &cb_r);
if (a == 9) return code_reserve(b);
+ if (a == 10) return MW; /* where byte loads and stores stop: the host reservation, not memory_words */
return -1;
case 43: { /* clone an isolated execution context with a bidirectional channel */
#if !defined(_WIN32) && !defined(__wasm__)