From 3fa2f542e321348e41a2573846af59b437d53ba5 Mon Sep 17 00:00:00 2001 From: jsing Date: Mon, 13 Feb 2023 04:00:39 +0000 Subject: [PATCH] Add currently failing negative zero check to BN_rshift() regress. --- regress/lib/libcrypto/bn/bn_shift.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/lib/libcrypto/bn/bn_shift.c b/regress/lib/libcrypto/bn/bn_shift.c index 15359db083b..88d0e65cba0 100644 --- a/regress/lib/libcrypto/bn/bn_shift.c +++ b/regress/lib/libcrypto/bn/bn_shift.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_shift.c,v 1.7 2023/01/07 14:30:57 jsing Exp $ */ +/* $OpenBSD: bn_shift.c,v 1.8 2023/02/13 04:00:39 jsing Exp $ */ /* * Copyright (c) 2022 Joel Sing * @@ -341,6 +341,10 @@ test_bn_rshift_to_zero(void) fprintf(stderr, "FAIL: BN is not zero\n"); goto failure; } + if (BN_is_negative(bn1)) { + fprintf(stderr, "FAIL: BN is negative zero\n"); + goto failure; + } failed = 0; -- 2.20.1