From 96ad09dbfdb30a3f93528af45c81be668c399bfd Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Mon, 28 Aug 2023 09:40:18 +0200 Subject: [PATCH] lib: tests: 63-struct-cell: Avoid segfault by array overflow with gcc >= 10. * lib/tests/scaffold/63-struct-cell.c (g_functions]: Use size 3. --- lib/tests/scaffold/63-struct-cell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/scaffold/63-struct-cell.c b/lib/tests/scaffold/63-struct-cell.c index 2af86e0c..0f97d311 100644 --- a/lib/tests/scaffold/63-struct-cell.c +++ b/lib/tests/scaffold/63-struct-cell.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2017 Jan (janneke) Nieuwenhuizen + * Copyright © 2017,2023 Janneke Nieuwenhuizen * * This file is part of GNU Mes. * @@ -80,7 +80,7 @@ struct function g_bar = { &bar, 1, "bar" }; void *functions[2]; //int functions[2]; -struct function g_functions[2]; +struct function g_functions[3]; int g_function = 0; enum type_t