gcc-plugins: randstruct: Update code comment in relayout_struct()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Sat, 25 Nov 2023 21:49:12 +0000 (15:49 -0600)
committerKees Cook <keescook@chromium.org>
Tue, 28 Nov 2023 00:30:05 +0000 (16:30 -0800)
commitd71f22365a9caca82d424f3a33445de46567e198
tree213b7b9bef4fd6e660eaa90b13e410d8b8862d38
parent4e86f32a13af1970d21be94f659cae56bbe487ee
gcc-plugins: randstruct: Update code comment in relayout_struct()

Update code comment to clarify that the only element whose layout is
not randomized is a proper C99 flexible-array member. This update is
complementary to commit 1ee60356c2dc ("gcc-plugins: randstruct: Only
warn about true flexible arrays")

Signed-off-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZWJr2MWDjXLHE8ap@work
Fixes: 1ee60356c2dc ("gcc-plugins: randstruct: Only warn about true flexible arrays")
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/randomize_layout_plugin.c