Dr. Stephen Henson
953937bdc6
Fix a horrible BN bug in bn_expand2 which caused BN_add_word() et al to fail
...
when they cause the destination to expand.
To see how evil this is try this:
#include <pem.h>
main()
{
BIGNUM *bn = NULL;
int i;
bn = BN_new();
BN_hex2bn(&bn, "FFFFFFFF");
BN_add_word(bn, 1);
printf("Value %s\n", BN_bn2hex(bn));
}
This would typically fail before the patch.
It also screws up if you comment out the BN_hex2bn line above or in any
situation where BN_add_word() causes the number of BN_ULONGs in the result
to change (try doubling the number of FFs).
1999-04-15 23:07:00 +00:00
..
1999-04-12 17:23:57 +00:00
1999-04-06 15:22:55 +00:00
1999-04-14 21:43:02 +00:00
1999-04-15 23:07:00 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-14 20:17:23 +00:00
1999-04-12 17:23:57 +00:00
1999-04-12 17:23:57 +00:00
1999-04-12 17:23:57 +00:00
1999-04-12 17:23:57 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-10 10:36:19 +00:00
1999-04-12 19:58:17 +00:00
1999-03-31 12:38:27 +00:00
1999-04-12 17:23:57 +00:00
1999-04-12 17:23:57 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-06 15:22:55 +00:00
1999-04-01 12:34:33 +00:00
1999-04-01 12:34:33 +00:00
1999-04-12 17:23:57 +00:00
1999-04-01 12:34:33 +00:00
1999-04-12 17:23:57 +00:00
1998-12-22 15:04:48 +00:00
1999-04-01 12:34:33 +00:00
1999-04-13 23:56:39 +00:00
1999-04-14 23:44:41 +00:00
1999-01-03 13:17:47 +00:00
1998-12-21 11:00:56 +00:00
1998-12-21 10:56:39 +00:00
1998-12-21 11:00:56 +00:00
1998-12-22 15:04:48 +00:00
1998-12-21 10:56:39 +00:00
1998-12-21 10:56:39 +00:00
1999-04-10 10:36:19 +00:00
1999-03-22 12:22:14 +00:00
1998-12-21 11:00:56 +00:00
1998-12-21 10:52:47 +00:00
1999-04-01 12:34:33 +00:00
1999-04-10 10:36:19 +00:00
1999-04-01 11:58:28 +00:00
1998-12-21 11:00:56 +00:00
1998-12-21 11:00:56 +00:00