diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-03-12 17:09:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-03-12 17:09:46 +0000 |
commit | 7a0c01b41a08eeeba21f7eff4e9cdf1cf8922ef3 (patch) | |
tree | 81be5f6c72a8975aba841148d32a8c110f7cab31 /apps | |
parent | 6fe9c925d20165acdbde281ec06d84027d8bd679 (diff) |
PR: 1861
l must be > 0 or array will be accessed out of bounds.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/apps.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |