From c199f4b2ed818cc4e8ea37ab132b87789ae29a21 Mon Sep 17 00:00:00 2001 From: jsing Date: Mon, 15 Apr 2024 14:36:16 +0000 Subject: [PATCH] Enable negative zero checks for BN_clear_bit() and BN_mask_bits(). --- regress/lib/libcrypto/bn/bn_bits.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/regress/lib/libcrypto/bn/bn_bits.c b/regress/lib/libcrypto/bn/bn_bits.c index 4ed13e424b2..e93fabfdd52 100644 --- a/regress/lib/libcrypto/bn/bn_bits.c +++ b/regress/lib/libcrypto/bn/bn_bits.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_bits.c,v 1.1 2024/04/09 14:59:57 jsing Exp $ */ +/* $OpenBSD: bn_bits.c,v 1.2 2024/04/15 14:36:16 jsing Exp $ */ /* * Copyright (c) 2024 Joel Sing * @@ -111,12 +111,10 @@ test_bn_clear_bit(void) fprintf(stderr, "FAIL: clear bit did not result in zero\n"); goto failure; } -#if 0 if (BN_is_negative(bn)) { fprintf(stderr, "FAIL: clear bit resulted in -0\n"); goto failure; } -#endif failed = 0; @@ -198,12 +196,10 @@ test_bn_mask_bits(void) fprintf(stderr, "FAIL: mask bits did not result in zero\n"); goto failure; } -#if 0 if (BN_is_negative(bn)) { fprintf(stderr, "FAIL: mask bits resulted in -0\n"); goto failure; } -#endif failed = 0; -- 2.20.1