Bug#515662: Info on shifting 32 bit on a 32bit value

2009-02-19 Thread Simon Horman
On Thu, Feb 19, 2009 at 08:33:57AM +1100, Simon Horman wrote: > On Wed, Feb 18, 2009 at 07:30:08AM +0100, Philipp Kolmann wrote: > > Simon Horman wrote: > >>> --- IPv6addr.c_ORIG 2009-02-17 14:28:45.0 +0100 > >>> +++ IPv6addr.c2009-02-17 14:29:24.0 +0100 > >>> @@ -487,7 +4

Bug#515662: Info on shifting 32 bit on a 32bit value

2009-02-18 Thread Simon Horman
On Wed, Feb 18, 2009 at 07:30:08AM +0100, Philipp Kolmann wrote: > Simon Horman wrote: >>> --- IPv6addr.c_ORIG 2009-02-17 14:28:45.0 +0100 >>> +++ IPv6addr.c 2009-02-17 14:29:24.0 +0100 >>> @@ -487,7 +487,10 @@ >>> n = plen / 32; >>> mems

Bug#515662: Info on shifting 32 bit on a 32bit value

2009-02-17 Thread Philipp Kolmann
Simon Horman wrote: --- IPv6addr.c_ORIG 2009-02-17 14:28:45.0 +0100 +++ IPv6addr.c 2009-02-17 14:29:24.0 +0100 @@ -487,7 +487,10 @@ n = plen / 32; memset(mask.s6_addr32 + n + 1, 0, (3 - n) * 4); s = 32 -

Bug#515662: Info on shifting 32 bit on a 32bit value

2009-02-17 Thread Simon Horman
On Tue, Feb 17, 2009 at 03:12:05PM +0100, Philipp Kolmann wrote: > Hi, > > we found some discussion about this issue here: > > http://www.velocityreviews.com/forums/t283343-shifting-bits-shift-32-bits-on-32-bit-int.html > > In post #4 it reads: > The behaviour of shifts defined only if the value of

Bug#515662: Info on shifting 32 bit on a 32bit value

2009-02-17 Thread Philipp Kolmann
Hi, we found some discussion about this issue here: http://www.velocityreviews.com/forums/t283343-shifting-bits-shift-32-bits-on-32-bit-int.html In post #4 it reads: The behaviour of shifts defined only if the value of the right operand is less than the number of bits in the left operand. So s