From ca33228e0e1951042bb03e16cd92a05cd6e63da6 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 30 May 2026 20:18:41 +0100 Subject: [PATCH] runtime: scriptblock: fix use of uninitialised memory --- bshell.runtime/script-block.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bshell.runtime/script-block.c b/bshell.runtime/script-block.c index f359ba4..50d9c65 100644 --- a/bshell.runtime/script-block.c +++ b/bshell.runtime/script-block.c @@ -169,6 +169,8 @@ static unsigned long scriptblock_get_string( goto cleanup; } + memset(cache_entry, 0x0, sizeof *cache_entry); + str = fx_string_create_from_cstr(s); if (!str) { goto cleanup;