Re: drivers: random: Shift out-of-bounds in _mix_pool_bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 24, 2014 at 09:23:35AM -0400, Sasha Levin wrote:
> 
> i >> 32 may happen to be "i", but is there anything that prevents the compiler
> from returning, let's say, 42?

Not really, although gcc seems to opt for the 'sane' option and emit the
instruction and let the arch figure out how to deal with it. Hence the
'fun' difference between x86 and ARM.


--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux