From 2985758cd36ffa50ca68944be95a9a4c99f66b86 Mon Sep 17 00:00:00 2001 From: Marius Gerbershagen Date: Sat, 16 Jan 2021 19:08:50 +0100 Subject: [PATCH] bytecmp: don't leave c_env->lex_env uninitialized Was previously only initialized in si_eval_with_env. Due to the introduction of si_bc_compile_from_stream, it was used uninitialized in this new function, leading to segfaults. --- src/c/compiler.d | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c/compiler.d b/src/c/compiler.d index c68fead4..94c94ce5 100644 --- a/src/c/compiler.d +++ b/src/c/compiler.d @@ -547,6 +547,7 @@ c_new_env(cl_env_ptr the_env, cl_compiler_env_ptr new, cl_object env, ECL_NIL, /* displacement */ ECL_NIL); new->stepping = 0; + new->lex_env = ECL_NIL; new->lexical_level = 0; new->load_time_forms = ECL_NIL; new->ltf_being_created = ECL_NIL;