Re: [PATCH] atm: he: fix sign-extension overflow on large shift

2019-01-17 Thread David Miller
From: Colin King Date: Tue, 15 Jan 2019 18:03:38 + > From: Colin Ian King > > Shifting the 1 by exp by an int can lead to sign-extension overlow when > exp is 31 since 1 is an signed int and sign-extending this result to an > unsigned long long will set the upper 32 bits. Fix this by

Re: [PATCH] atm: he: fix sign-extension overflow on large shift

2019-01-16 Thread Dan Carpenter
On Tue, Jan 15, 2019 at 06:03:38PM +, Colin King wrote: > From: Colin Ian King > > Shifting the 1 by exp by an int can lead to sign-extension overlow when > exp is 31 since 1 is an signed int and sign-extending this result to an > unsigned long long will set the upper 32 bits. Fix this by