]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: super-intel fix bad shift
authorNigel Croxon <ncroxon@redhat.com>
Wed, 22 May 2024 20:53:22 +0000 (16:53 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 23 May 2024 10:36:01 +0000 (12:36 +0200)
commit5c30864146412fcdfdcfddcdd94c5c449d9ddbed
treede3dc3f5c5cf70f3792f1fa22b77842491f5c65e
parent49145d4f574b21a6c0612ce691f255732cb91832
mdadm: super-intel fix bad shift

In the expression "1 << i", left shifting by more than 31 bits has undefined behavior.
The shift amount, "i", is as much as 63. The operand has type "int" (32 bits) and will
be shifted as an "int". The fix is to change to a 64 bit int.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
super-intel.c