Matt Caswell 726b5e7132 Reject negative shifts for BN_rshift and BN_lshift
The functions BN_rshift and BN_lshift shift their arguments to the right or
left by a specified number of bits. Unpredicatable results (including
crashes) can occur if a negative number is supplied for the shift value.

Thanks to Mateusz Kocielski (LogicalTrust), Marek Kroemeke and Filip Palian
for discovering and reporting this issue.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(cherry picked from commit 7cc18d8158b5fc2676393d99b51c30c135502107)

Conflicts:
	crypto/bn/bn.h
	crypto/bn/bn_err.c
2015-05-22 23:21:55 +01:00
..
2015-03-13 21:14:56 -07:00
2015-04-18 14:44:17 +01:00
2015-01-22 09:38:39 +00:00
2015-05-13 12:55:23 -04:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-04-30 23:27:07 +01:00
2015-03-25 12:45:17 +00:00
2015-05-20 22:23:28 +02:00
2015-04-16 13:51:51 -04:00
2015-04-16 13:51:51 -04:00
2015-03-25 15:19:20 +01:00
2012-06-08 09:18:47 +00:00
2015-04-16 13:51:51 -04:00
2015-04-30 23:27:07 +01:00
2015-04-16 13:51:51 -04:00
2015-03-19 13:38:37 +00:00
2015-04-16 13:51:51 -04:00
2015-01-22 09:38:39 +00:00
2011-08-12 12:31:08 +00:00
2015-02-09 13:01:28 +00:00
2015-04-22 17:24:47 +01:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-03-19 13:41:07 +00:00
2015-01-22 09:38:39 +00:00