diff options
author | Christophe JAILLET <[email protected]> | 2023-10-07 16:32:34 +0200 |
---|---|---|
committer | Kees Cook <[email protected]> | 2023-12-01 09:51:43 -0800 |
commit | 97f3880a33cd4a0c916242fd296aed975ad512d3 (patch) | |
tree | c3efecbe9b3ad225c359503610ba8c631b4bb7ed /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | da2e08d4630ab04ee5b61515fe423c582b5c3be2 (diff) |
VMCI: Annotate struct vmci_handle_arr with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by
attribute. Flexible array members annotated with __counted_by can have
their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
(for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/56bef519d982218176b59bbba64a3a308d8733d5.1696689091.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions