[PATCH][next] afs: fix integer overflow when shifting 1 more than 32 places

David Howells dhowells at redhat.com
Wed Apr 11 09:03:48 PDT 2018


Dan Carpenter <dan.carpenter at oracle.com> wrote:

> Ideally static analyzers should know that nr_slots is 0-9, but right now
> that seems pretty tricky to figure out...

1-9, actually, but, yeah.  Maybe the addition of "assertions" that aren't
actually evaluated at runtime?

David



More information about the linux-afs mailing list