From bef5954b938a8ebbd216bc8d81aab621bcebd4e9 Mon Sep 17 00:00:00 2001 From: tonton th Date: Tue, 22 Dec 2020 22:39:00 +0100 Subject: [PATCH] molly guard --- Fonderie/filterstack.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Fonderie/filterstack.c b/Fonderie/filterstack.c index 07c8fa76..45d061a0 100644 --- a/Fonderie/filterstack.c +++ b/Fonderie/filterstack.c @@ -188,6 +188,10 @@ if (foo) { string... */ tmparg = alloca(strlen(argument) + 1); +if (NULL==tmparg) { + fprintf(stderr, "memory panic in %s:%s\n", __FILE__, __func__); + exit(1); + } strcpy(tmparg, argument); for (;;) { @@ -209,3 +213,5 @@ if (verbosity) filterstack_list(numid, __func__); return 0; } /* ----------------------------------------------------------- */ + +