Files
linux-stable-mirror/include/linux
Kees CookandGreg Kroah-Hartman ed88147bfb fortify: Do not cast to "unsigned char"
[ Upstream commit e9a40e1585 ]

Do not cast to "unsigned char", as this needlessly creates type problems
when attempting builds without -Wno-pointer-sign[1]. The intent of the
cast is to drop possible "const" types.

[1] https://lore.kernel.org/lkml/CAHk-=wgz3Uba8w7kdXhsqR1qvfemYL+OFQdefJnkeqXG8qZ_pA@mail.gmail.com/

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 3009f891bb ("fortify: Allow strlen() and strnlen() to pass compile-time known lengths")
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:31 +01:00
..
2022-10-17 13:49:45 +02:00
2022-10-03 14:02:45 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 17:34:32 -07:00
2022-10-17 16:32:05 +02:00
2022-10-04 20:52:38 +02:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:58 -06:00
2022-09-29 15:20:29 +02:00
2022-10-07 09:32:40 -04:00
2022-11-10 12:03:36 -07:00