Matt Caswell 1a9499cf23 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:19:34 +01:00
..
2015-04-18 14:43:33 +01:00
2015-01-22 09:31:38 +00:00
2015-02-24 10:12:57 +01:00
2015-05-13 12:55:03 -04:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-04-16 13:50:01 -04:00
2015-04-30 23:21:53 +01:00
2015-03-25 12:41:28 +00:00
2015-05-20 22:19:34 +02:00
2015-04-16 13:50:01 -04:00
2015-04-08 17:59:41 +02:00
2015-04-16 13:50:01 -04:00
2015-01-22 14:11:04 +00:00
2015-02-24 10:12:57 +01:00
2015-04-16 13:50:01 -04:00
2015-04-30 23:21:53 +01:00
2015-04-16 13:50:01 -04:00
2015-03-17 13:48:04 +00:00
2015-04-16 13:50:01 -04:00
2015-01-22 09:31:38 +00:00
2011-08-12 12:31:08 +00:00
2014-06-10 23:20:55 +02:00
2015-02-09 13:01:15 +00:00
2015-04-22 17:20:38 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-03-19 13:34:56 +00:00
2013-05-20 00:16:18 +02:00
2015-01-22 09:31:38 +00:00