Files
kernel_amazon_mt8127-common/include/linux
Vincent BENAYOUN 07729b8d98 inetdevice: fixed signed integer overflow
[ Upstream commit 84bc88688e3f6ef843aa8803dbcd90168bb89faf ]

There could be a signed overflow in the following code.

The expression, (32-logmask) is comprised between 0 and 31 included.
It may be equal to 31.
In such a case the left shift will produce a signed integer overflow.
According to the C99 Standard, this is an undefined behavior.
A simple fix is to replace the signed int 1 with the unsigned int 1U.

Signed-off-by: Vincent BENAYOUN <vincent.benayoun@trust-in-soft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-12-06 15:05:46 -08:00
..
2013-05-17 14:31:05 -04:00
2013-12-04 10:56:22 -08:00
2013-12-08 07:29:27 -08:00
2014-10-30 09:35:12 -07:00
2014-11-14 08:47:55 -08:00
2013-07-28 16:30:11 -07:00
2013-10-13 16:08:28 -07:00
2014-04-03 12:01:05 -07:00
2014-06-26 15:12:38 -04:00
2013-07-28 16:30:05 -07:00
2013-10-13 16:08:35 -07:00
2013-07-21 18:21:29 -07:00
2014-01-15 15:28:47 -08:00
2014-02-13 13:47:59 -08:00
2013-08-20 08:43:02 -07:00
2013-07-28 16:29:55 -07:00