Commit 6178bb8f authored by Bodo Möller's avatar Bodo Möller
Browse files

Add bn_dup_expand() comment from the main branch explaining that

bn_dup_expand() is broken.

[No need to fix this in 0.9.7-stable, it is just an unused internal
function.]
parent 5b195b5a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -397,6 +397,12 @@ BIGNUM *bn_dup_expand(const BIGNUM *b, int words)
	{
	BIGNUM *r = NULL;

	/* This function does not work if
	 *      words <= b->dmax && top < words
	 * because BN_dup() does not preserve 'dmax'!
	 * (But bn_dup_expand() is not used anywhere yet.)
	 */
	
	if (words > b->dmax)
		{
		BN_ULONG *a = bn_expand_internal(b, words);