diff options
author | tb <> | 2025-04-13 09:14:56 +0000 |
---|---|---|
committer | tb <> | 2025-04-13 09:14:56 +0000 |
commit | 2f02529bd535d07dafdda416d3a4e20587d17868 (patch) | |
tree | 93d7be219748bfd5905e0f59bc12c38616548e43 | |
parent | b29f0a30bd2eba662845091b60c127ea5cb4c6e3 (diff) | |
download | openbsd-2f02529bd535d07dafdda416d3a4e20587d17868.tar.gz openbsd-2f02529bd535d07dafdda416d3a4e20587d17868.tar.bz2 openbsd-2f02529bd535d07dafdda416d3a4e20587d17868.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libcrypto/mlkem/parse_test_file.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: parse_test_file.c,v 1.3 2024/12/27 11:17:48 tb Exp $ */ | 1 | /* $OpenBSD: parse_test_file.c,v 1.4 2025/04/13 09:14:56 tb Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> |
@@ -47,6 +47,8 @@ static void | |||
47 | line_data_clear(struct line_data *ld) | 47 | line_data_clear(struct line_data *ld) |
48 | { | 48 | { |
49 | freezero(ld->data, ld->data_len); | 49 | freezero(ld->data, ld->data_len); |
50 | /* The dereference isn't enough for silly old gcc 14. */ | ||
51 | assert(ld != NULL); | ||
50 | explicit_bzero(ld, sizeof(*ld)); | 52 | explicit_bzero(ld, sizeof(*ld)); |
51 | } | 53 | } |
52 | 54 | ||