diff options
author | Kees Cook <keescook@chromium.org> | 2022-02-08 14:53:47 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-02-13 16:50:07 -0800 |
commit | 0a2b782a00f33e7d06dc43d099fa071ae97bee77 (patch) | |
tree | 3fc7f4fcccd1b9bc99989f3ccef16d519e8cbe8c /include/linux/compiler_attributes.h | |
parent | 1c7f4e5c1b6c9d9b508007c141dca77cab9434b4 (diff) |
fortify: Make pointer arguments const
In preparation for using Clang's __pass_object_size attribute, make all
the pointer arguments to the fortified string functions const. Nothing
was changing their values anyway, so this added requirement (needed by
__pass_object_size) requires no code changes and has no impact on
the binary instruction output.
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20220208225350.1331628-6-keescook@chromium.org
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions