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-15 20:31:05 +05:30
2014-11-10 15:22:02 +00:00
2014-10-19 12:29:23 -07:00
2014-10-21 13:46:03 -07:00
2014-10-19 12:50:44 -07:00
2014-10-18 18:11:04 -07:00
2014-10-28 17:26:19 -04:00
2014-10-24 11:21:43 -07:00
2014-10-22 16:14:03 -06:00
2014-10-18 11:53:51 -07:00
2014-11-02 14:39:35 -08:00
2014-11-13 16:17:06 -08:00
2014-10-22 16:14:03 -06:00
2014-10-27 13:00:55 +01:00
2014-10-28 11:03:40 +01:00
2014-10-28 11:03:40 +01:00
2014-10-21 00:51:01 +02:00
2014-10-21 00:51:01 +02:00
2014-10-22 16:14:04 -06:00
2014-10-15 07:23:49 +02:00
2014-10-18 18:11:04 -07:00
2014-10-31 06:33:26 -04:00
2014-10-15 21:31:27 +05:30
2014-11-14 17:08:58 -05:00
2014-10-15 07:23:49 +02:00
2014-10-23 14:45:09 -07:00
2014-10-22 16:14:04 -06:00
2014-10-29 16:33:14 -07:00
2014-10-24 13:30:47 +02:00
2014-10-29 16:33:15 -07:00
2014-10-22 16:14:04 -06:00
2014-10-29 16:33:14 -07:00
2014-11-13 16:17:05 -08:00
2014-10-24 00:14:36 +02:00
2014-10-15 12:11:00 -04:00
2014-10-18 11:53:51 -07:00
2014-10-29 16:33:14 -07:00
2014-11-04 10:19:48 +00:00
2014-10-21 23:44:21 +02:00
2014-11-13 16:17:05 -08:00
2014-11-05 13:06:16 -07:00
2014-10-19 20:22:32 +03:00
2014-10-28 18:25:17 -04:00
2014-11-10 16:45:43 -05:00
2014-10-30 19:58:30 -04:00
2014-11-05 15:52:45 -05:00
2014-10-24 12:33:32 -07:00
2014-10-22 16:14:04 -06:00
2014-10-20 20:46:25 +02:00