From 2f02529bd535d07dafdda416d3a4e20587d17868 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 13 Apr 2025 09:14:56 +0000 Subject: parse_test_file() gcc 14 needs a hint that ld != NULL beyond the use of ld->data in the previous line. I guess aggressive inlining is becoming too aggressive. What a pile of junk. --- src/regress/lib/libcrypto/mlkem/parse_test_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/mlkem/parse_test_file.c b/src/regress/lib/libcrypto/mlkem/parse_test_file.c index 19f03439e2..b68dc50431 100644 --- a/src/regress/lib/libcrypto/mlkem/parse_test_file.c +++ b/src/regress/lib/libcrypto/mlkem/parse_test_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_test_file.c,v 1.3 2024/12/27 11:17:48 tb Exp $ */ +/* $OpenBSD: parse_test_file.c,v 1.4 2025/04/13 09:14:56 tb Exp $ */ /* * Copyright (c) 2024 Theo Buehler @@ -47,6 +47,8 @@ static void line_data_clear(struct line_data *ld) { freezero(ld->data, ld->data_len); + /* The dereference isn't enough for silly old gcc 14. */ + assert(ld != NULL); explicit_bzero(ld, sizeof(*ld)); } -- cgit v1.2.3-55-g6feb