Skip to content
Commit 21a2c74b authored by Kees Cook's avatar Kees Cook
Browse files

fortify: Use const variables for __member_size tracking



The sizes reported by __member_size should never change in a given
function. Mark them as such.

Suggested-by: default avatarMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: linux-hardening@vger.kernel.org
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230407192717.636137-4-keescook@chromium.org
parent 3bf301e1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment