summaryrefslogtreecommitdiff
path: root/include/linux/start_kernel.h
diff options
context:
space:
mode:
authorJosh Law <objecting@objecting.org>2026-03-18 10:48:06 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-03-28 07:19:48 +0300
commit010d7d9846504f97da649595c61985137ca67cd4 (patch)
tree712e5272d9a2a6514020958f392fd16feac2d801 /include/linux/start_kernel.h
parentf42b510990030bbc0d6e4ba4486decbcd952b924 (diff)
downloadlinux-010d7d9846504f97da649595c61985137ca67cd4.tar.xz
lib/bch: fix signed shift overflow in build_mod8_tables
Cast loop variable to unsigned int before left-shifting to avoid undefined behavior when i >= 128 and b == 3 (i << 24 overflows signed int). Link: https://lkml.kernel.org/r/20260318074806.16527-3-objecting@objecting.org Signed-off-by: Josh Law <objecting@objecting.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Ivan Djelic <ivan.djelic@parrot.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions