Files
linux-st/include/linux
Vincent BENAYOUN 84bc88688e inetdevice: fixed signed integer overflow
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>
2014-11-14 17:08:58 -05:00
..
2014-10-21 00:51:01 +02:00
2014-10-24 00:14:36 +02:00
2014-10-15 12:11:00 -04:00
2014-11-05 15:52:45 -05:00