From 7a0c01b41a08eeeba21f7eff4e9cdf1cf8922ef3 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 12 Mar 2009 17:09:46 +0000 Subject: [PATCH] PR: 1861 l must be > 0 or array will be accessed out of bounds. --- apps/apps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/apps.c b/apps/apps.c index 367eb177e1..498722a5a2 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2428,7 +2428,7 @@ static void readbn(BIGNUM **bn, BIO *bconn) int l; l = BIO_gets(bconn, buf, sizeof buf); - assert(l >= 0); + assert(l > 0); assert(buf[l-1] == '\n'); buf[l-1] = '\0'; BN_hex2bn(bn, buf); -- 2.25.1