Commit 7a0c01b4 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

PR: 1861

l must be > 0 or array will be accessed out of bounds.
parent 6fe9c925
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);