From f55e18693a903b73b2e870c16cc87155f361d553 Mon Sep 17 00:00:00 2001 From: iker-sr Date: Sat, 6 Dec 2025 15:17:40 +0100 Subject: [PATCH] Fix: possible null pointer dereference due to unchecked malloc --- repl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/repl.c b/repl.c index 5772883..91301de 100644 --- a/repl.c +++ b/repl.c @@ -29,6 +29,7 @@ static char *readline(const char *prompt) { } line = malloc(len + 1); + if (!line) return NULL; strcpy(line, buf); return line; }