From 14fd87935eb4d730cf527fbf8ffc5fb64c856c7d Mon Sep 17 00:00:00 2001 From: ancavar Date: Tue, 12 May 2026 16:14:21 +0300 Subject: [PATCH 1/2] fix stack boundary error --- runtime/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/gc.c b/runtime/gc.c index a9d4d1775..050049d41 100644 --- a/runtime/gc.c +++ b/runtime/gc.c @@ -460,7 +460,7 @@ void update_references (memory_chunk *old_heap) { heap_next_obj_iterator(&it); } // fix pointers from stack - scan_and_fix_region(old_heap, (void *)__gc_stack_top + sizeof(size_t), (void *)__gc_stack_bottom + sizeof(size_t)); + scan_and_fix_region(old_heap, (void *)__gc_stack_top + sizeof(size_t), (void *)__gc_stack_bottom); // fix pointers from extra_roots scan_and_fix_region_roots(old_heap); From 6f7f87b6bb593e040189ec5293eef5c12c935a82 Mon Sep 17 00:00:00 2001 From: ancavar Date: Tue, 12 May 2026 16:14:35 +0300 Subject: [PATCH 2/2] fix readline errno error --- runtime/runtime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/runtime.c b/runtime/runtime.c index 60bd64694..956536d60 100644 --- a/runtime/runtime.c +++ b/runtime/runtime.c @@ -1186,6 +1186,8 @@ extern void Lfclose (FILE *f) { extern void *LreadLine () { char *buf; + errno = 0; + if (scanf("%m[^\n]", &buf) == 1) { void *s = Bstring((aint*)&buf);