shithub: sl

Download patch

ref: a3378e0ea977db8be16e65f97ef5a173aa3cf0e1
parent: 2bfb708683daed9f1b038614ee016938f3c0ef7e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Mar 20 18:26:59 EDT 2025

slmain: fix longjmp clobbered false positive

--- a/src/slmain.c
+++ b/src/slmain.c
@@ -74,7 +74,7 @@
 slmain(const u8int *boot, int bootsz, int argc, char **argv)
 {
 	usize heapsize = HEAP_SIZE0, stacksize = STACK_SIZE0;
-	sl_v interactive = sl_nil;
+	static sl_v interactive = sl_nil;
 	char *e;
 
 	nan_init();