diff options
| author | 2026-10-13 20:31:46 +0000 | |
|---|---|---|
| committer | 2026-10-14 18:05:52 -0700 | |
| commit | 2f70a9b7e9c74b92a85a2584090f0f5c4cbaa4be (patch) | |
| tree | cb2bc10d9296610c9cb73e113b1542ef2aa9e54e /scripts/Makefile.thinlto | |
| parent | lkdtm: Make UNSET_SMEP built-in-only and unexport native_write_cr4() (diff) | |
overflow: Match arithmetic in both parts of __builtin_choose_expr
The two parts of '__builtin_choose_expr()' had different arithmetic
expressions. This patch corrects it so that both parts calculate:
COUNT * sizeof(*MEMBER) + __must_be_array(MEMBER)
In practice, '__must_be_array' is meant to assert if 'MEMBER' isn't an
array and return '0' otherwise. However, symmetry is less prone to
subtle errors (and far more satisfying).
Signed-off-by: Bill Wendling <morbo@google.com>
Link: https://patch.msgid.link/20261013203146.387344-1-morbo@google.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
