diff options
| author | Kees Cook <[email protected]> | 2022-10-25 23:05:18 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-11-01 17:04:52 +0000 |
| commit | e9a40e1585d792751d3a122392695e5a53032809 (patch) | |
| tree | 2112765f2f0082dbe5b2a1743593a99948855c92 /lib/overflow_kunit.c | |
| parent | siphash: Convert selftest to KUnit (diff) | |
| download | kernel-e9a40e1585d792751d3a122392695e5a53032809.tar.gz kernel-e9a40e1585d792751d3a122392695e5a53032809.zip | |
fortify: Do not cast to "unsigned char"
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 <[email protected]>
Fixes: 3009f891bb9f ("fortify: Allow strlen() and strnlen() to pass compile-time known lengths")
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions
